aclocal.m4 revision 05b261ec
105b261ecSmrg# generated automatically by aclocal 1.10.1 -*- Autoconf -*- 205b261ecSmrg 305b261ecSmrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 405b261ecSmrg# 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 505b261ecSmrg# This file is free software; the Free Software Foundation 605b261ecSmrg# gives unlimited permission to copy and/or distribute it, 705b261ecSmrg# with or without modifications, as long as this notice is preserved. 805b261ecSmrg 905b261ecSmrg# This program is distributed in the hope that it will be useful, 1005b261ecSmrg# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 1105b261ecSmrg# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 1205b261ecSmrg# PARTICULAR PURPOSE. 1305b261ecSmrg 1405b261ecSmrgm4_ifndef([AC_AUTOCONF_VERSION], 1505b261ecSmrg [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 1605b261ecSmrgm4_if(AC_AUTOCONF_VERSION, [2.61],, 1705b261ecSmrg[m4_warning([this file was generated for autoconf 2.61. 1805b261ecSmrgYou have another version of autoconf. It may work, but is not guaranteed to. 1905b261ecSmrgIf you have problems, you may need to regenerate the build system entirely. 2005b261ecSmrgTo do so, use the procedure documented by the package, typically `autoreconf'.])]) 2105b261ecSmrg 2205b261ecSmrg# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 2305b261ecSmrg 2405b261ecSmrg# serial 52 Debian 1.5.26-4 AC_PROG_LIBTOOL 2505b261ecSmrg 2605b261ecSmrg 2705b261ecSmrg# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) 2805b261ecSmrg# ----------------------------------------------------------- 2905b261ecSmrg# If this macro is not defined by Autoconf, define it here. 3005b261ecSmrgm4_ifdef([AC_PROVIDE_IFELSE], 3105b261ecSmrg [], 3205b261ecSmrg [m4_define([AC_PROVIDE_IFELSE], 3305b261ecSmrg [m4_ifdef([AC_PROVIDE_$1], 3405b261ecSmrg [$2], [$3])])]) 3505b261ecSmrg 3605b261ecSmrg 3705b261ecSmrg# AC_PROG_LIBTOOL 3805b261ecSmrg# --------------- 3905b261ecSmrgAC_DEFUN([AC_PROG_LIBTOOL], 4005b261ecSmrg[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl 4105b261ecSmrgdnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX 4205b261ecSmrgdnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. 4305b261ecSmrg AC_PROVIDE_IFELSE([AC_PROG_CXX], 4405b261ecSmrg [AC_LIBTOOL_CXX], 4505b261ecSmrg [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX 4605b261ecSmrg ])]) 4705b261ecSmrgdnl And a similar setup for Fortran 77 support 4805b261ecSmrg AC_PROVIDE_IFELSE([AC_PROG_F77], 4905b261ecSmrg [AC_LIBTOOL_F77], 5005b261ecSmrg [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 5105b261ecSmrg])]) 5205b261ecSmrg 5305b261ecSmrgdnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. 5405b261ecSmrgdnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run 5505b261ecSmrgdnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. 5605b261ecSmrg AC_PROVIDE_IFELSE([AC_PROG_GCJ], 5705b261ecSmrg [AC_LIBTOOL_GCJ], 5805b261ecSmrg [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], 5905b261ecSmrg [AC_LIBTOOL_GCJ], 6005b261ecSmrg [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], 6105b261ecSmrg [AC_LIBTOOL_GCJ], 6205b261ecSmrg [ifdef([AC_PROG_GCJ], 6305b261ecSmrg [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) 6405b261ecSmrg ifdef([A][M_PROG_GCJ], 6505b261ecSmrg [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) 6605b261ecSmrg ifdef([LT_AC_PROG_GCJ], 6705b261ecSmrg [define([LT_AC_PROG_GCJ], 6805b261ecSmrg defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) 6905b261ecSmrg])])# AC_PROG_LIBTOOL 7005b261ecSmrg 7105b261ecSmrg 7205b261ecSmrg# _AC_PROG_LIBTOOL 7305b261ecSmrg# ---------------- 7405b261ecSmrgAC_DEFUN([_AC_PROG_LIBTOOL], 7505b261ecSmrg[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl 7605b261ecSmrgAC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl 7705b261ecSmrgAC_BEFORE([$0],[AC_LIBTOOL_F77])dnl 7805b261ecSmrgAC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl 7905b261ecSmrg 8005b261ecSmrg# This can be used to rebuild libtool when needed 8105b261ecSmrgLIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 8205b261ecSmrg 8305b261ecSmrg# Always use our own libtool. 8405b261ecSmrgLIBTOOL='$(SHELL) $(top_builddir)/libtool' 8505b261ecSmrgAC_SUBST(LIBTOOL)dnl 8605b261ecSmrg 8705b261ecSmrg# Prevent multiple expansion 8805b261ecSmrgdefine([AC_PROG_LIBTOOL], []) 8905b261ecSmrg])# _AC_PROG_LIBTOOL 9005b261ecSmrg 9105b261ecSmrg 9205b261ecSmrg# AC_LIBTOOL_SETUP 9305b261ecSmrg# ---------------- 9405b261ecSmrgAC_DEFUN([AC_LIBTOOL_SETUP], 9505b261ecSmrg[AC_PREREQ(2.50)dnl 9605b261ecSmrgAC_REQUIRE([AC_ENABLE_SHARED])dnl 9705b261ecSmrgAC_REQUIRE([AC_ENABLE_STATIC])dnl 9805b261ecSmrgAC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl 9905b261ecSmrgAC_REQUIRE([AC_CANONICAL_HOST])dnl 10005b261ecSmrgAC_REQUIRE([AC_CANONICAL_BUILD])dnl 10105b261ecSmrgAC_REQUIRE([AC_PROG_CC])dnl 10205b261ecSmrgAC_REQUIRE([AC_PROG_LD])dnl 10305b261ecSmrgAC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl 10405b261ecSmrgAC_REQUIRE([AC_PROG_NM])dnl 10505b261ecSmrg 10605b261ecSmrgAC_REQUIRE([AC_PROG_LN_S])dnl 10705b261ecSmrgAC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl 10805b261ecSmrg# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 10905b261ecSmrgAC_REQUIRE([AC_OBJEXT])dnl 11005b261ecSmrgAC_REQUIRE([AC_EXEEXT])dnl 11105b261ecSmrgdnl 11205b261ecSmrgAC_LIBTOOL_SYS_MAX_CMD_LEN 11305b261ecSmrgAC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 11405b261ecSmrgAC_LIBTOOL_OBJDIR 11505b261ecSmrg 11605b261ecSmrgAC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 11705b261ecSmrg_LT_AC_PROG_ECHO_BACKSLASH 11805b261ecSmrg 11905b261ecSmrgcase $host_os in 12005b261ecSmrgaix3*) 12105b261ecSmrg # AIX sometimes has problems with the GCC collect2 program. For some 12205b261ecSmrg # reason, if we set the COLLECT_NAMES environment variable, the problems 12305b261ecSmrg # vanish in a puff of smoke. 12405b261ecSmrg if test "X${COLLECT_NAMES+set}" != Xset; then 12505b261ecSmrg COLLECT_NAMES= 12605b261ecSmrg export COLLECT_NAMES 12705b261ecSmrg fi 12805b261ecSmrg ;; 12905b261ecSmrgesac 13005b261ecSmrg 13105b261ecSmrg# Sed substitution that helps us do robust quoting. It backslashifies 13205b261ecSmrg# metacharacters that are still active within double-quoted strings. 13305b261ecSmrgXsed='sed -e 1s/^X//' 13405b261ecSmrg[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] 13505b261ecSmrg 13605b261ecSmrg# Same as above, but do not quote variable references. 13705b261ecSmrg[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] 13805b261ecSmrg 13905b261ecSmrg# Sed substitution to delay expansion of an escaped shell variable in a 14005b261ecSmrg# double_quote_subst'ed string. 14105b261ecSmrgdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 14205b261ecSmrg 14305b261ecSmrg# Sed substitution to avoid accidental globbing in evaled expressions 14405b261ecSmrgno_glob_subst='s/\*/\\\*/g' 14505b261ecSmrg 14605b261ecSmrg# Constants: 14705b261ecSmrgrm="rm -f" 14805b261ecSmrg 14905b261ecSmrg# Global variables: 15005b261ecSmrgdefault_ofile=libtool 15105b261ecSmrgcan_build_shared=yes 15205b261ecSmrg 15305b261ecSmrg# All known linkers require a `.a' archive for static linking (except MSVC, 15405b261ecSmrg# which needs '.lib'). 15505b261ecSmrglibext=a 15605b261ecSmrgltmain="$ac_aux_dir/ltmain.sh" 15705b261ecSmrgofile="$default_ofile" 15805b261ecSmrgwith_gnu_ld="$lt_cv_prog_gnu_ld" 15905b261ecSmrg 16005b261ecSmrgAC_CHECK_TOOL(AR, ar, false) 16105b261ecSmrgAC_CHECK_TOOL(RANLIB, ranlib, :) 16205b261ecSmrgAC_CHECK_TOOL(STRIP, strip, :) 16305b261ecSmrg 16405b261ecSmrgold_CC="$CC" 16505b261ecSmrgold_CFLAGS="$CFLAGS" 16605b261ecSmrg 16705b261ecSmrg# Set sane defaults for various variables 16805b261ecSmrgtest -z "$AR" && AR=ar 16905b261ecSmrgtest -z "$AR_FLAGS" && AR_FLAGS=cru 17005b261ecSmrgtest -z "$AS" && AS=as 17105b261ecSmrgtest -z "$CC" && CC=cc 17205b261ecSmrgtest -z "$LTCC" && LTCC=$CC 17305b261ecSmrgtest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 17405b261ecSmrgtest -z "$DLLTOOL" && DLLTOOL=dlltool 17505b261ecSmrgtest -z "$LD" && LD=ld 17605b261ecSmrgtest -z "$LN_S" && LN_S="ln -s" 17705b261ecSmrgtest -z "$MAGIC_CMD" && MAGIC_CMD=file 17805b261ecSmrgtest -z "$NM" && NM=nm 17905b261ecSmrgtest -z "$SED" && SED=sed 18005b261ecSmrgtest -z "$OBJDUMP" && OBJDUMP=objdump 18105b261ecSmrgtest -z "$RANLIB" && RANLIB=: 18205b261ecSmrgtest -z "$STRIP" && STRIP=: 18305b261ecSmrgtest -z "$ac_objext" && ac_objext=o 18405b261ecSmrg 18505b261ecSmrg# Determine commands to create old-style static archives. 18605b261ecSmrgold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 18705b261ecSmrgold_postinstall_cmds='chmod 644 $oldlib' 18805b261ecSmrgold_postuninstall_cmds= 18905b261ecSmrg 19005b261ecSmrgif test -n "$RANLIB"; then 19105b261ecSmrg case $host_os in 19205b261ecSmrg openbsd*) 19305b261ecSmrg old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 19405b261ecSmrg ;; 19505b261ecSmrg *) 19605b261ecSmrg old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 19705b261ecSmrg ;; 19805b261ecSmrg esac 19905b261ecSmrg old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 20005b261ecSmrgfi 20105b261ecSmrg 20205b261ecSmrg_LT_CC_BASENAME([$compiler]) 20305b261ecSmrg 20405b261ecSmrg# Only perform the check for file, if the check method requires it 20505b261ecSmrgcase $deplibs_check_method in 20605b261ecSmrgfile_magic*) 20705b261ecSmrg if test "$file_magic_cmd" = '$MAGIC_CMD'; then 20805b261ecSmrg AC_PATH_MAGIC 20905b261ecSmrg fi 21005b261ecSmrg ;; 21105b261ecSmrgesac 21205b261ecSmrg 21305b261ecSmrg_LT_REQUIRED_DARWIN_CHECKS 21405b261ecSmrg 21505b261ecSmrgAC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) 21605b261ecSmrgAC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], 21705b261ecSmrgenable_win32_dll=yes, enable_win32_dll=no) 21805b261ecSmrg 21905b261ecSmrgAC_ARG_ENABLE([libtool-lock], 22005b261ecSmrg [AC_HELP_STRING([--disable-libtool-lock], 22105b261ecSmrg [avoid locking (might break parallel builds)])]) 22205b261ecSmrgtest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 22305b261ecSmrg 22405b261ecSmrgAC_ARG_WITH([pic], 22505b261ecSmrg [AC_HELP_STRING([--with-pic], 22605b261ecSmrg [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 22705b261ecSmrg [pic_mode="$withval"], 22805b261ecSmrg [pic_mode=default]) 22905b261ecSmrgtest -z "$pic_mode" && pic_mode=default 23005b261ecSmrg 23105b261ecSmrg# Use C for the default configuration in the libtool script 23205b261ecSmrgtagname= 23305b261ecSmrgAC_LIBTOOL_LANG_C_CONFIG 23405b261ecSmrg_LT_AC_TAGCONFIG 23505b261ecSmrg])# AC_LIBTOOL_SETUP 23605b261ecSmrg 23705b261ecSmrg 23805b261ecSmrg# _LT_AC_SYS_COMPILER 23905b261ecSmrg# ------------------- 24005b261ecSmrgAC_DEFUN([_LT_AC_SYS_COMPILER], 24105b261ecSmrg[AC_REQUIRE([AC_PROG_CC])dnl 24205b261ecSmrg 24305b261ecSmrg# If no C compiler was specified, use CC. 24405b261ecSmrgLTCC=${LTCC-"$CC"} 24505b261ecSmrg 24605b261ecSmrg# If no C compiler flags were specified, use CFLAGS. 24705b261ecSmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"} 24805b261ecSmrg 24905b261ecSmrg# Allow CC to be a program name with arguments. 25005b261ecSmrgcompiler=$CC 25105b261ecSmrg])# _LT_AC_SYS_COMPILER 25205b261ecSmrg 25305b261ecSmrg 25405b261ecSmrg# _LT_CC_BASENAME(CC) 25505b261ecSmrg# ------------------- 25605b261ecSmrg# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 25705b261ecSmrgAC_DEFUN([_LT_CC_BASENAME], 25805b261ecSmrg[for cc_temp in $1""; do 25905b261ecSmrg case $cc_temp in 26005b261ecSmrg compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 26105b261ecSmrg distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 26205b261ecSmrg \-*) ;; 26305b261ecSmrg *) break;; 26405b261ecSmrg esac 26505b261ecSmrgdone 26605b261ecSmrgcc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 26705b261ecSmrg]) 26805b261ecSmrg 26905b261ecSmrg 27005b261ecSmrg# _LT_COMPILER_BOILERPLATE 27105b261ecSmrg# ------------------------ 27205b261ecSmrg# Check for compiler boilerplate output or warnings with 27305b261ecSmrg# the simple compiler test code. 27405b261ecSmrgAC_DEFUN([_LT_COMPILER_BOILERPLATE], 27505b261ecSmrg[AC_REQUIRE([LT_AC_PROG_SED])dnl 27605b261ecSmrgac_outfile=conftest.$ac_objext 27705b261ecSmrgecho "$lt_simple_compile_test_code" >conftest.$ac_ext 27805b261ecSmrgeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 27905b261ecSmrg_lt_compiler_boilerplate=`cat conftest.err` 28005b261ecSmrg$rm conftest* 28105b261ecSmrg])# _LT_COMPILER_BOILERPLATE 28205b261ecSmrg 28305b261ecSmrg 28405b261ecSmrg# _LT_LINKER_BOILERPLATE 28505b261ecSmrg# ---------------------- 28605b261ecSmrg# Check for linker boilerplate output or warnings with 28705b261ecSmrg# the simple link test code. 28805b261ecSmrgAC_DEFUN([_LT_LINKER_BOILERPLATE], 28905b261ecSmrg[AC_REQUIRE([LT_AC_PROG_SED])dnl 29005b261ecSmrgac_outfile=conftest.$ac_objext 29105b261ecSmrgecho "$lt_simple_link_test_code" >conftest.$ac_ext 29205b261ecSmrgeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 29305b261ecSmrg_lt_linker_boilerplate=`cat conftest.err` 29405b261ecSmrg$rm -r conftest* 29505b261ecSmrg])# _LT_LINKER_BOILERPLATE 29605b261ecSmrg 29705b261ecSmrg# _LT_REQUIRED_DARWIN_CHECKS 29805b261ecSmrg# -------------------------- 29905b261ecSmrg# Check for some things on darwin 30005b261ecSmrgAC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[ 30105b261ecSmrg case $host_os in 30205b261ecSmrg rhapsody* | darwin*) 30305b261ecSmrg AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) 30405b261ecSmrg AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) 30505b261ecSmrg 30605b261ecSmrg AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], 30705b261ecSmrg [lt_cv_apple_cc_single_mod=no 30805b261ecSmrg if test -z "${LT_MULTI_MODULE}"; then 30905b261ecSmrg # By default we will add the -single_module flag. You can override 31005b261ecSmrg # by either setting the environment variable LT_MULTI_MODULE 31105b261ecSmrg # non-empty at configure time, or by adding -multi_module to the 31205b261ecSmrg # link flags. 31305b261ecSmrg echo "int foo(void){return 1;}" > conftest.c 31405b261ecSmrg $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 31505b261ecSmrg -dynamiclib ${wl}-single_module conftest.c 31605b261ecSmrg if test -f libconftest.dylib; then 31705b261ecSmrg lt_cv_apple_cc_single_mod=yes 31805b261ecSmrg rm -rf libconftest.dylib* 31905b261ecSmrg fi 32005b261ecSmrg rm conftest.c 32105b261ecSmrg fi]) 32205b261ecSmrg AC_CACHE_CHECK([for -exported_symbols_list linker flag], 32305b261ecSmrg [lt_cv_ld_exported_symbols_list], 32405b261ecSmrg [lt_cv_ld_exported_symbols_list=no 32505b261ecSmrg save_LDFLAGS=$LDFLAGS 32605b261ecSmrg echo "_main" > conftest.sym 32705b261ecSmrg LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 32805b261ecSmrg AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 32905b261ecSmrg [lt_cv_ld_exported_symbols_list=yes], 33005b261ecSmrg [lt_cv_ld_exported_symbols_list=no]) 33105b261ecSmrg LDFLAGS="$save_LDFLAGS" 33205b261ecSmrg ]) 33305b261ecSmrg case $host_os in 33405b261ecSmrg rhapsody* | darwin1.[[0123]]) 33505b261ecSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 33605b261ecSmrg darwin1.*) 33705b261ecSmrg _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 33805b261ecSmrg darwin*) 33905b261ecSmrg # if running on 10.5 or later, the deployment target defaults 34005b261ecSmrg # to the OS version, if on x86, and 10.4, the deployment 34105b261ecSmrg # target defaults to 10.4. Don't you love it? 34205b261ecSmrg case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 34305b261ecSmrg 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) 34405b261ecSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 34505b261ecSmrg 10.[[012]]*) 34605b261ecSmrg _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 34705b261ecSmrg 10.*) 34805b261ecSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 34905b261ecSmrg esac 35005b261ecSmrg ;; 35105b261ecSmrg esac 35205b261ecSmrg if test "$lt_cv_apple_cc_single_mod" = "yes"; then 35305b261ecSmrg _lt_dar_single_mod='$single_module' 35405b261ecSmrg fi 35505b261ecSmrg if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 35605b261ecSmrg _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 35705b261ecSmrg else 35805b261ecSmrg _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" 35905b261ecSmrg fi 36005b261ecSmrg if test "$DSYMUTIL" != ":"; then 36105b261ecSmrg _lt_dsymutil="~$DSYMUTIL \$lib || :" 36205b261ecSmrg else 36305b261ecSmrg _lt_dsymutil= 36405b261ecSmrg fi 36505b261ecSmrg ;; 36605b261ecSmrg esac 36705b261ecSmrg]) 36805b261ecSmrg 36905b261ecSmrg# _LT_AC_SYS_LIBPATH_AIX 37005b261ecSmrg# ---------------------- 37105b261ecSmrg# Links a minimal program and checks the executable 37205b261ecSmrg# for the system default hardcoded library path. In most cases, 37305b261ecSmrg# this is /usr/lib:/lib, but when the MPI compilers are used 37405b261ecSmrg# the location of the communication and MPI libs are included too. 37505b261ecSmrg# If we don't find anything, use the default library path according 37605b261ecSmrg# to the aix ld manual. 37705b261ecSmrgAC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], 37805b261ecSmrg[AC_REQUIRE([LT_AC_PROG_SED])dnl 37905b261ecSmrgAC_LINK_IFELSE(AC_LANG_PROGRAM,[ 38005b261ecSmrglt_aix_libpath_sed=' 38105b261ecSmrg /Import File Strings/,/^$/ { 38205b261ecSmrg /^0/ { 38305b261ecSmrg s/^0 *\(.*\)$/\1/ 38405b261ecSmrg p 38505b261ecSmrg } 38605b261ecSmrg }' 38705b261ecSmrgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 38805b261ecSmrg# Check for a 64-bit object if we didn't find anything. 38905b261ecSmrgif test -z "$aix_libpath"; then 39005b261ecSmrg aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 39105b261ecSmrgfi],[]) 39205b261ecSmrgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 39305b261ecSmrg])# _LT_AC_SYS_LIBPATH_AIX 39405b261ecSmrg 39505b261ecSmrg 39605b261ecSmrg# _LT_AC_SHELL_INIT(ARG) 39705b261ecSmrg# ---------------------- 39805b261ecSmrgAC_DEFUN([_LT_AC_SHELL_INIT], 39905b261ecSmrg[ifdef([AC_DIVERSION_NOTICE], 40005b261ecSmrg [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], 40105b261ecSmrg [AC_DIVERT_PUSH(NOTICE)]) 40205b261ecSmrg$1 40305b261ecSmrgAC_DIVERT_POP 40405b261ecSmrg])# _LT_AC_SHELL_INIT 40505b261ecSmrg 40605b261ecSmrg 40705b261ecSmrg# _LT_AC_PROG_ECHO_BACKSLASH 40805b261ecSmrg# -------------------------- 40905b261ecSmrg# Add some code to the start of the generated configure script which 41005b261ecSmrg# will find an echo command which doesn't interpret backslashes. 41105b261ecSmrgAC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], 41205b261ecSmrg[_LT_AC_SHELL_INIT([ 41305b261ecSmrg# Check that we are running under the correct shell. 41405b261ecSmrgSHELL=${CONFIG_SHELL-/bin/sh} 41505b261ecSmrg 41605b261ecSmrgcase X$ECHO in 41705b261ecSmrgX*--fallback-echo) 41805b261ecSmrg # Remove one level of quotation (which was required for Make). 41905b261ecSmrg ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` 42005b261ecSmrg ;; 42105b261ecSmrgesac 42205b261ecSmrg 42305b261ecSmrgecho=${ECHO-echo} 42405b261ecSmrgif test "X[$]1" = X--no-reexec; then 42505b261ecSmrg # Discard the --no-reexec flag, and continue. 42605b261ecSmrg shift 42705b261ecSmrgelif test "X[$]1" = X--fallback-echo; then 42805b261ecSmrg # Avoid inline document here, it may be left over 42905b261ecSmrg : 43005b261ecSmrgelif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 43105b261ecSmrg # Yippee, $echo works! 43205b261ecSmrg : 43305b261ecSmrgelse 43405b261ecSmrg # Restart under the correct shell. 43505b261ecSmrg exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} 43605b261ecSmrgfi 43705b261ecSmrg 43805b261ecSmrgif test "X[$]1" = X--fallback-echo; then 43905b261ecSmrg # used as fallback echo 44005b261ecSmrg shift 44105b261ecSmrg cat <<EOF 44205b261ecSmrg[$]* 44305b261ecSmrgEOF 44405b261ecSmrg exit 0 44505b261ecSmrgfi 44605b261ecSmrg 44705b261ecSmrg# The HP-UX ksh and POSIX shell print the target directory to stdout 44805b261ecSmrg# if CDPATH is set. 44905b261ecSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 45005b261ecSmrg 45105b261ecSmrgif test -z "$ECHO"; then 45205b261ecSmrgif test "X${echo_test_string+set}" != Xset; then 45305b261ecSmrg# find a string as large as possible, as long as the shell can cope with it 45405b261ecSmrg for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do 45505b261ecSmrg # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 45605b261ecSmrg if (echo_test_string=`eval $cmd`) 2>/dev/null && 45705b261ecSmrg echo_test_string=`eval $cmd` && 45805b261ecSmrg (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 45905b261ecSmrg then 46005b261ecSmrg break 46105b261ecSmrg fi 46205b261ecSmrg done 46305b261ecSmrgfi 46405b261ecSmrg 46505b261ecSmrgif test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 46605b261ecSmrg echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 46705b261ecSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 46805b261ecSmrg : 46905b261ecSmrgelse 47005b261ecSmrg # The Solaris, AIX, and Digital Unix default echo programs unquote 47105b261ecSmrg # backslashes. This makes it impossible to quote backslashes using 47205b261ecSmrg # echo "$something" | sed 's/\\/\\\\/g' 47305b261ecSmrg # 47405b261ecSmrg # So, first we look for a working echo in the user's PATH. 47505b261ecSmrg 47605b261ecSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 47705b261ecSmrg for dir in $PATH /usr/ucb; do 47805b261ecSmrg IFS="$lt_save_ifs" 47905b261ecSmrg if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 48005b261ecSmrg test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 48105b261ecSmrg echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 48205b261ecSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 48305b261ecSmrg echo="$dir/echo" 48405b261ecSmrg break 48505b261ecSmrg fi 48605b261ecSmrg done 48705b261ecSmrg IFS="$lt_save_ifs" 48805b261ecSmrg 48905b261ecSmrg if test "X$echo" = Xecho; then 49005b261ecSmrg # We didn't find a better echo, so look for alternatives. 49105b261ecSmrg if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 49205b261ecSmrg echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 49305b261ecSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 49405b261ecSmrg # This shell has a builtin print -r that does the trick. 49505b261ecSmrg echo='print -r' 49605b261ecSmrg elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 49705b261ecSmrg test "X$CONFIG_SHELL" != X/bin/ksh; then 49805b261ecSmrg # If we have ksh, try running configure again with it. 49905b261ecSmrg ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 50005b261ecSmrg export ORIGINAL_CONFIG_SHELL 50105b261ecSmrg CONFIG_SHELL=/bin/ksh 50205b261ecSmrg export CONFIG_SHELL 50305b261ecSmrg exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} 50405b261ecSmrg else 50505b261ecSmrg # Try using printf. 50605b261ecSmrg echo='printf %s\n' 50705b261ecSmrg if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 50805b261ecSmrg echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 50905b261ecSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 51005b261ecSmrg # Cool, printf works 51105b261ecSmrg : 51205b261ecSmrg elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 51305b261ecSmrg test "X$echo_testing_string" = 'X\t' && 51405b261ecSmrg echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 51505b261ecSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 51605b261ecSmrg CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 51705b261ecSmrg export CONFIG_SHELL 51805b261ecSmrg SHELL="$CONFIG_SHELL" 51905b261ecSmrg export SHELL 52005b261ecSmrg echo="$CONFIG_SHELL [$]0 --fallback-echo" 52105b261ecSmrg elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 52205b261ecSmrg test "X$echo_testing_string" = 'X\t' && 52305b261ecSmrg echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 52405b261ecSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 52505b261ecSmrg echo="$CONFIG_SHELL [$]0 --fallback-echo" 52605b261ecSmrg else 52705b261ecSmrg # maybe with a smaller string... 52805b261ecSmrg prev=: 52905b261ecSmrg 53005b261ecSmrg for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do 53105b261ecSmrg if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 53205b261ecSmrg then 53305b261ecSmrg break 53405b261ecSmrg fi 53505b261ecSmrg prev="$cmd" 53605b261ecSmrg done 53705b261ecSmrg 53805b261ecSmrg if test "$prev" != 'sed 50q "[$]0"'; then 53905b261ecSmrg echo_test_string=`eval $prev` 54005b261ecSmrg export echo_test_string 54105b261ecSmrg exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} 54205b261ecSmrg else 54305b261ecSmrg # Oops. We lost completely, so just stick with echo. 54405b261ecSmrg echo=echo 54505b261ecSmrg fi 54605b261ecSmrg fi 54705b261ecSmrg fi 54805b261ecSmrg fi 54905b261ecSmrgfi 55005b261ecSmrgfi 55105b261ecSmrg 55205b261ecSmrg# Copy echo and quote the copy suitably for passing to libtool from 55305b261ecSmrg# the Makefile, instead of quoting the original, which is used later. 55405b261ecSmrgECHO=$echo 55505b261ecSmrgif test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then 55605b261ecSmrg ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" 55705b261ecSmrgfi 55805b261ecSmrg 55905b261ecSmrgAC_SUBST(ECHO) 56005b261ecSmrg])])# _LT_AC_PROG_ECHO_BACKSLASH 56105b261ecSmrg 56205b261ecSmrg 56305b261ecSmrg# _LT_AC_LOCK 56405b261ecSmrg# ----------- 56505b261ecSmrgAC_DEFUN([_LT_AC_LOCK], 56605b261ecSmrg[AC_ARG_ENABLE([libtool-lock], 56705b261ecSmrg [AC_HELP_STRING([--disable-libtool-lock], 56805b261ecSmrg [avoid locking (might break parallel builds)])]) 56905b261ecSmrgtest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 57005b261ecSmrg 57105b261ecSmrg# Some flags need to be propagated to the compiler or linker for good 57205b261ecSmrg# libtool support. 57305b261ecSmrgcase $host in 57405b261ecSmrgia64-*-hpux*) 57505b261ecSmrg # Find out which ABI we are using. 57605b261ecSmrg echo 'int i;' > conftest.$ac_ext 57705b261ecSmrg if AC_TRY_EVAL(ac_compile); then 57805b261ecSmrg case `/usr/bin/file conftest.$ac_objext` in 57905b261ecSmrg *ELF-32*) 58005b261ecSmrg HPUX_IA64_MODE="32" 58105b261ecSmrg ;; 58205b261ecSmrg *ELF-64*) 58305b261ecSmrg HPUX_IA64_MODE="64" 58405b261ecSmrg ;; 58505b261ecSmrg esac 58605b261ecSmrg fi 58705b261ecSmrg rm -rf conftest* 58805b261ecSmrg ;; 58905b261ecSmrg*-*-irix6*) 59005b261ecSmrg # Find out which ABI we are using. 59105b261ecSmrg echo '[#]line __oline__ "configure"' > conftest.$ac_ext 59205b261ecSmrg if AC_TRY_EVAL(ac_compile); then 59305b261ecSmrg if test "$lt_cv_prog_gnu_ld" = yes; then 59405b261ecSmrg case `/usr/bin/file conftest.$ac_objext` in 59505b261ecSmrg *32-bit*) 59605b261ecSmrg LD="${LD-ld} -melf32bsmip" 59705b261ecSmrg ;; 59805b261ecSmrg *N32*) 59905b261ecSmrg LD="${LD-ld} -melf32bmipn32" 60005b261ecSmrg ;; 60105b261ecSmrg *64-bit*) 60205b261ecSmrg LD="${LD-ld} -melf64bmip" 60305b261ecSmrg ;; 60405b261ecSmrg esac 60505b261ecSmrg else 60605b261ecSmrg case `/usr/bin/file conftest.$ac_objext` in 60705b261ecSmrg *32-bit*) 60805b261ecSmrg LD="${LD-ld} -32" 60905b261ecSmrg ;; 61005b261ecSmrg *N32*) 61105b261ecSmrg LD="${LD-ld} -n32" 61205b261ecSmrg ;; 61305b261ecSmrg *64-bit*) 61405b261ecSmrg LD="${LD-ld} -64" 61505b261ecSmrg ;; 61605b261ecSmrg esac 61705b261ecSmrg fi 61805b261ecSmrg fi 61905b261ecSmrg rm -rf conftest* 62005b261ecSmrg ;; 62105b261ecSmrg 62205b261ecSmrgx86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 62305b261ecSmrgs390*-*linux*|sparc*-*linux*) 62405b261ecSmrg # Find out which ABI we are using. 62505b261ecSmrg echo 'int i;' > conftest.$ac_ext 62605b261ecSmrg if AC_TRY_EVAL(ac_compile); then 62705b261ecSmrg case `/usr/bin/file conftest.o` in 62805b261ecSmrg *32-bit*) 62905b261ecSmrg case $host in 63005b261ecSmrg x86_64-*kfreebsd*-gnu) 63105b261ecSmrg LD="${LD-ld} -m elf_i386_fbsd" 63205b261ecSmrg ;; 63305b261ecSmrg x86_64-*linux*) 63405b261ecSmrg LD="${LD-ld} -m elf_i386" 63505b261ecSmrg ;; 63605b261ecSmrg ppc64-*linux*|powerpc64-*linux*) 63705b261ecSmrg LD="${LD-ld} -m elf32ppclinux" 63805b261ecSmrg ;; 63905b261ecSmrg s390x-*linux*) 64005b261ecSmrg LD="${LD-ld} -m elf_s390" 64105b261ecSmrg ;; 64205b261ecSmrg sparc64-*linux*) 64305b261ecSmrg LD="${LD-ld} -m elf32_sparc" 64405b261ecSmrg ;; 64505b261ecSmrg esac 64605b261ecSmrg ;; 64705b261ecSmrg *64-bit*) 64805b261ecSmrg case $host in 64905b261ecSmrg x86_64-*kfreebsd*-gnu) 65005b261ecSmrg LD="${LD-ld} -m elf_x86_64_fbsd" 65105b261ecSmrg ;; 65205b261ecSmrg x86_64-*linux*) 65305b261ecSmrg LD="${LD-ld} -m elf_x86_64" 65405b261ecSmrg ;; 65505b261ecSmrg ppc*-*linux*|powerpc*-*linux*) 65605b261ecSmrg LD="${LD-ld} -m elf64ppc" 65705b261ecSmrg ;; 65805b261ecSmrg s390*-*linux*) 65905b261ecSmrg LD="${LD-ld} -m elf64_s390" 66005b261ecSmrg ;; 66105b261ecSmrg sparc*-*linux*) 66205b261ecSmrg LD="${LD-ld} -m elf64_sparc" 66305b261ecSmrg ;; 66405b261ecSmrg esac 66505b261ecSmrg ;; 66605b261ecSmrg esac 66705b261ecSmrg fi 66805b261ecSmrg rm -rf conftest* 66905b261ecSmrg ;; 67005b261ecSmrg 67105b261ecSmrg*-*-sco3.2v5*) 67205b261ecSmrg # On SCO OpenServer 5, we need -belf to get full-featured binaries. 67305b261ecSmrg SAVE_CFLAGS="$CFLAGS" 67405b261ecSmrg CFLAGS="$CFLAGS -belf" 67505b261ecSmrg AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 67605b261ecSmrg [AC_LANG_PUSH(C) 67705b261ecSmrg AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 67805b261ecSmrg AC_LANG_POP]) 67905b261ecSmrg if test x"$lt_cv_cc_needs_belf" != x"yes"; then 68005b261ecSmrg # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 68105b261ecSmrg CFLAGS="$SAVE_CFLAGS" 68205b261ecSmrg fi 68305b261ecSmrg ;; 68405b261ecSmrgsparc*-*solaris*) 68505b261ecSmrg # Find out which ABI we are using. 68605b261ecSmrg echo 'int i;' > conftest.$ac_ext 68705b261ecSmrg if AC_TRY_EVAL(ac_compile); then 68805b261ecSmrg case `/usr/bin/file conftest.o` in 68905b261ecSmrg *64-bit*) 69005b261ecSmrg case $lt_cv_prog_gnu_ld in 69105b261ecSmrg yes*) LD="${LD-ld} -m elf64_sparc" ;; 69205b261ecSmrg *) 69305b261ecSmrg if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 69405b261ecSmrg LD="${LD-ld} -64" 69505b261ecSmrg fi 69605b261ecSmrg ;; 69705b261ecSmrg esac 69805b261ecSmrg ;; 69905b261ecSmrg esac 70005b261ecSmrg fi 70105b261ecSmrg rm -rf conftest* 70205b261ecSmrg ;; 70305b261ecSmrg 70405b261ecSmrgAC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], 70505b261ecSmrg[*-*-cygwin* | *-*-mingw* | *-*-pw32*) 70605b261ecSmrg AC_CHECK_TOOL(DLLTOOL, dlltool, false) 70705b261ecSmrg AC_CHECK_TOOL(AS, as, false) 70805b261ecSmrg AC_CHECK_TOOL(OBJDUMP, objdump, false) 70905b261ecSmrg ;; 71005b261ecSmrg ]) 71105b261ecSmrgesac 71205b261ecSmrg 71305b261ecSmrgneed_locks="$enable_libtool_lock" 71405b261ecSmrg 71505b261ecSmrg])# _LT_AC_LOCK 71605b261ecSmrg 71705b261ecSmrg 71805b261ecSmrg# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 71905b261ecSmrg# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 72005b261ecSmrg# ---------------------------------------------------------------- 72105b261ecSmrg# Check whether the given compiler option works 72205b261ecSmrgAC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], 72305b261ecSmrg[AC_REQUIRE([LT_AC_PROG_SED]) 72405b261ecSmrgAC_CACHE_CHECK([$1], [$2], 72505b261ecSmrg [$2=no 72605b261ecSmrg ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 72705b261ecSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 72805b261ecSmrg lt_compiler_flag="$3" 72905b261ecSmrg # Insert the option either (1) after the last *FLAGS variable, or 73005b261ecSmrg # (2) before a word containing "conftest.", or (3) at the end. 73105b261ecSmrg # Note that $ac_compile itself does not contain backslashes and begins 73205b261ecSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 73305b261ecSmrg # The option is referenced via a variable to avoid confusing sed. 73405b261ecSmrg lt_compile=`echo "$ac_compile" | $SED \ 73505b261ecSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 73605b261ecSmrg -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 73705b261ecSmrg -e 's:$: $lt_compiler_flag:'` 73805b261ecSmrg (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 73905b261ecSmrg (eval "$lt_compile" 2>conftest.err) 74005b261ecSmrg ac_status=$? 74105b261ecSmrg cat conftest.err >&AS_MESSAGE_LOG_FD 74205b261ecSmrg echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 74305b261ecSmrg if (exit $ac_status) && test -s "$ac_outfile"; then 74405b261ecSmrg # The compiler can only warn and ignore the option if not recognized 74505b261ecSmrg # So say no if there are warnings other than the usual output. 74605b261ecSmrg $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 74705b261ecSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 74805b261ecSmrg if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 74905b261ecSmrg $2=yes 75005b261ecSmrg fi 75105b261ecSmrg fi 75205b261ecSmrg $rm conftest* 75305b261ecSmrg]) 75405b261ecSmrg 75505b261ecSmrgif test x"[$]$2" = xyes; then 75605b261ecSmrg ifelse([$5], , :, [$5]) 75705b261ecSmrgelse 75805b261ecSmrg ifelse([$6], , :, [$6]) 75905b261ecSmrgfi 76005b261ecSmrg])# AC_LIBTOOL_COMPILER_OPTION 76105b261ecSmrg 76205b261ecSmrg 76305b261ecSmrg# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 76405b261ecSmrg# [ACTION-SUCCESS], [ACTION-FAILURE]) 76505b261ecSmrg# ------------------------------------------------------------ 76605b261ecSmrg# Check whether the given compiler option works 76705b261ecSmrgAC_DEFUN([AC_LIBTOOL_LINKER_OPTION], 76805b261ecSmrg[AC_REQUIRE([LT_AC_PROG_SED])dnl 76905b261ecSmrgAC_CACHE_CHECK([$1], [$2], 77005b261ecSmrg [$2=no 77105b261ecSmrg save_LDFLAGS="$LDFLAGS" 77205b261ecSmrg LDFLAGS="$LDFLAGS $3" 77305b261ecSmrg echo "$lt_simple_link_test_code" > conftest.$ac_ext 77405b261ecSmrg if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 77505b261ecSmrg # The linker can only warn and ignore the option if not recognized 77605b261ecSmrg # So say no if there are warnings 77705b261ecSmrg if test -s conftest.err; then 77805b261ecSmrg # Append any errors to the config.log. 77905b261ecSmrg cat conftest.err 1>&AS_MESSAGE_LOG_FD 78005b261ecSmrg $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 78105b261ecSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 78205b261ecSmrg if diff conftest.exp conftest.er2 >/dev/null; then 78305b261ecSmrg $2=yes 78405b261ecSmrg fi 78505b261ecSmrg else 78605b261ecSmrg $2=yes 78705b261ecSmrg fi 78805b261ecSmrg fi 78905b261ecSmrg $rm -r conftest* 79005b261ecSmrg LDFLAGS="$save_LDFLAGS" 79105b261ecSmrg]) 79205b261ecSmrg 79305b261ecSmrgif test x"[$]$2" = xyes; then 79405b261ecSmrg ifelse([$4], , :, [$4]) 79505b261ecSmrgelse 79605b261ecSmrg ifelse([$5], , :, [$5]) 79705b261ecSmrgfi 79805b261ecSmrg])# AC_LIBTOOL_LINKER_OPTION 79905b261ecSmrg 80005b261ecSmrg 80105b261ecSmrg# AC_LIBTOOL_SYS_MAX_CMD_LEN 80205b261ecSmrg# -------------------------- 80305b261ecSmrgAC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], 80405b261ecSmrg[# find the maximum length of command line arguments 80505b261ecSmrgAC_MSG_CHECKING([the maximum length of command line arguments]) 80605b261ecSmrgAC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 80705b261ecSmrg i=0 80805b261ecSmrg teststring="ABCD" 80905b261ecSmrg 81005b261ecSmrg case $build_os in 81105b261ecSmrg msdosdjgpp*) 81205b261ecSmrg # On DJGPP, this test can blow up pretty badly due to problems in libc 81305b261ecSmrg # (any single argument exceeding 2000 bytes causes a buffer overrun 81405b261ecSmrg # during glob expansion). Even if it were fixed, the result of this 81505b261ecSmrg # check would be larger than it should be. 81605b261ecSmrg lt_cv_sys_max_cmd_len=12288; # 12K is about right 81705b261ecSmrg ;; 81805b261ecSmrg 81905b261ecSmrg gnu*) 82005b261ecSmrg # Under GNU Hurd, this test is not required because there is 82105b261ecSmrg # no limit to the length of command line arguments. 82205b261ecSmrg # Libtool will interpret -1 as no limit whatsoever 82305b261ecSmrg lt_cv_sys_max_cmd_len=-1; 82405b261ecSmrg ;; 82505b261ecSmrg 82605b261ecSmrg cygwin* | mingw*) 82705b261ecSmrg # On Win9x/ME, this test blows up -- it succeeds, but takes 82805b261ecSmrg # about 5 minutes as the teststring grows exponentially. 82905b261ecSmrg # Worse, since 9x/ME are not pre-emptively multitasking, 83005b261ecSmrg # you end up with a "frozen" computer, even though with patience 83105b261ecSmrg # the test eventually succeeds (with a max line length of 256k). 83205b261ecSmrg # Instead, let's just punt: use the minimum linelength reported by 83305b261ecSmrg # all of the supported platforms: 8192 (on NT/2K/XP). 83405b261ecSmrg lt_cv_sys_max_cmd_len=8192; 83505b261ecSmrg ;; 83605b261ecSmrg 83705b261ecSmrg amigaos*) 83805b261ecSmrg # On AmigaOS with pdksh, this test takes hours, literally. 83905b261ecSmrg # So we just punt and use a minimum line length of 8192. 84005b261ecSmrg lt_cv_sys_max_cmd_len=8192; 84105b261ecSmrg ;; 84205b261ecSmrg 84305b261ecSmrg netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 84405b261ecSmrg # This has been around since 386BSD, at least. Likely further. 84505b261ecSmrg if test -x /sbin/sysctl; then 84605b261ecSmrg lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 84705b261ecSmrg elif test -x /usr/sbin/sysctl; then 84805b261ecSmrg lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 84905b261ecSmrg else 85005b261ecSmrg lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 85105b261ecSmrg fi 85205b261ecSmrg # And add a safety zone 85305b261ecSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 85405b261ecSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 85505b261ecSmrg ;; 85605b261ecSmrg 85705b261ecSmrg interix*) 85805b261ecSmrg # We know the value 262144 and hardcode it with a safety zone (like BSD) 85905b261ecSmrg lt_cv_sys_max_cmd_len=196608 86005b261ecSmrg ;; 86105b261ecSmrg 86205b261ecSmrg osf*) 86305b261ecSmrg # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 86405b261ecSmrg # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 86505b261ecSmrg # nice to cause kernel panics so lets avoid the loop below. 86605b261ecSmrg # First set a reasonable default. 86705b261ecSmrg lt_cv_sys_max_cmd_len=16384 86805b261ecSmrg # 86905b261ecSmrg if test -x /sbin/sysconfig; then 87005b261ecSmrg case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 87105b261ecSmrg *1*) lt_cv_sys_max_cmd_len=-1 ;; 87205b261ecSmrg esac 87305b261ecSmrg fi 87405b261ecSmrg ;; 87505b261ecSmrg sco3.2v5*) 87605b261ecSmrg lt_cv_sys_max_cmd_len=102400 87705b261ecSmrg ;; 87805b261ecSmrg sysv5* | sco5v6* | sysv4.2uw2*) 87905b261ecSmrg kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 88005b261ecSmrg if test -n "$kargmax"; then 88105b261ecSmrg lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` 88205b261ecSmrg else 88305b261ecSmrg lt_cv_sys_max_cmd_len=32768 88405b261ecSmrg fi 88505b261ecSmrg ;; 88605b261ecSmrg *) 88705b261ecSmrg lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 88805b261ecSmrg if test -n "$lt_cv_sys_max_cmd_len"; then 88905b261ecSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 89005b261ecSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 89105b261ecSmrg else 89205b261ecSmrg SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 89305b261ecSmrg while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ 89405b261ecSmrg = "XX$teststring") >/dev/null 2>&1 && 89505b261ecSmrg new_result=`expr "X$teststring" : ".*" 2>&1` && 89605b261ecSmrg lt_cv_sys_max_cmd_len=$new_result && 89705b261ecSmrg test $i != 17 # 1/2 MB should be enough 89805b261ecSmrg do 89905b261ecSmrg i=`expr $i + 1` 90005b261ecSmrg teststring=$teststring$teststring 90105b261ecSmrg done 90205b261ecSmrg teststring= 90305b261ecSmrg # Add a significant safety factor because C++ compilers can tack on massive 90405b261ecSmrg # amounts of additional arguments before passing them to the linker. 90505b261ecSmrg # It appears as though 1/2 is a usable value. 90605b261ecSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 90705b261ecSmrg fi 90805b261ecSmrg ;; 90905b261ecSmrg esac 91005b261ecSmrg]) 91105b261ecSmrgif test -n $lt_cv_sys_max_cmd_len ; then 91205b261ecSmrg AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 91305b261ecSmrgelse 91405b261ecSmrg AC_MSG_RESULT(none) 91505b261ecSmrgfi 91605b261ecSmrg])# AC_LIBTOOL_SYS_MAX_CMD_LEN 91705b261ecSmrg 91805b261ecSmrg 91905b261ecSmrg# _LT_AC_CHECK_DLFCN 92005b261ecSmrg# ------------------ 92105b261ecSmrgAC_DEFUN([_LT_AC_CHECK_DLFCN], 92205b261ecSmrg[AC_CHECK_HEADERS(dlfcn.h)dnl 92305b261ecSmrg])# _LT_AC_CHECK_DLFCN 92405b261ecSmrg 92505b261ecSmrg 92605b261ecSmrg# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 92705b261ecSmrg# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 92805b261ecSmrg# --------------------------------------------------------------------- 92905b261ecSmrgAC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], 93005b261ecSmrg[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 93105b261ecSmrgif test "$cross_compiling" = yes; then : 93205b261ecSmrg [$4] 93305b261ecSmrgelse 93405b261ecSmrg lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 93505b261ecSmrg lt_status=$lt_dlunknown 93605b261ecSmrg cat > conftest.$ac_ext <<EOF 93705b261ecSmrg[#line __oline__ "configure" 93805b261ecSmrg#include "confdefs.h" 93905b261ecSmrg 94005b261ecSmrg#if HAVE_DLFCN_H 94105b261ecSmrg#include <dlfcn.h> 94205b261ecSmrg#endif 94305b261ecSmrg 94405b261ecSmrg#include <stdio.h> 94505b261ecSmrg 94605b261ecSmrg#ifdef RTLD_GLOBAL 94705b261ecSmrg# define LT_DLGLOBAL RTLD_GLOBAL 94805b261ecSmrg#else 94905b261ecSmrg# ifdef DL_GLOBAL 95005b261ecSmrg# define LT_DLGLOBAL DL_GLOBAL 95105b261ecSmrg# else 95205b261ecSmrg# define LT_DLGLOBAL 0 95305b261ecSmrg# endif 95405b261ecSmrg#endif 95505b261ecSmrg 95605b261ecSmrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 95705b261ecSmrg find out it does not work in some platform. */ 95805b261ecSmrg#ifndef LT_DLLAZY_OR_NOW 95905b261ecSmrg# ifdef RTLD_LAZY 96005b261ecSmrg# define LT_DLLAZY_OR_NOW RTLD_LAZY 96105b261ecSmrg# else 96205b261ecSmrg# ifdef DL_LAZY 96305b261ecSmrg# define LT_DLLAZY_OR_NOW DL_LAZY 96405b261ecSmrg# else 96505b261ecSmrg# ifdef RTLD_NOW 96605b261ecSmrg# define LT_DLLAZY_OR_NOW RTLD_NOW 96705b261ecSmrg# else 96805b261ecSmrg# ifdef DL_NOW 96905b261ecSmrg# define LT_DLLAZY_OR_NOW DL_NOW 97005b261ecSmrg# else 97105b261ecSmrg# define LT_DLLAZY_OR_NOW 0 97205b261ecSmrg# endif 97305b261ecSmrg# endif 97405b261ecSmrg# endif 97505b261ecSmrg# endif 97605b261ecSmrg#endif 97705b261ecSmrg 97805b261ecSmrg#ifdef __cplusplus 97905b261ecSmrgextern "C" void exit (int); 98005b261ecSmrg#endif 98105b261ecSmrg 98205b261ecSmrgvoid fnord() { int i=42;} 98305b261ecSmrgint main () 98405b261ecSmrg{ 98505b261ecSmrg void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 98605b261ecSmrg int status = $lt_dlunknown; 98705b261ecSmrg 98805b261ecSmrg if (self) 98905b261ecSmrg { 99005b261ecSmrg if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 99105b261ecSmrg else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 99205b261ecSmrg /* dlclose (self); */ 99305b261ecSmrg } 99405b261ecSmrg else 99505b261ecSmrg puts (dlerror ()); 99605b261ecSmrg 99705b261ecSmrg exit (status); 99805b261ecSmrg}] 99905b261ecSmrgEOF 100005b261ecSmrg if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then 100105b261ecSmrg (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 100205b261ecSmrg lt_status=$? 100305b261ecSmrg case x$lt_status in 100405b261ecSmrg x$lt_dlno_uscore) $1 ;; 100505b261ecSmrg x$lt_dlneed_uscore) $2 ;; 100605b261ecSmrg x$lt_dlunknown|x*) $3 ;; 100705b261ecSmrg esac 100805b261ecSmrg else : 100905b261ecSmrg # compilation failed 101005b261ecSmrg $3 101105b261ecSmrg fi 101205b261ecSmrgfi 101305b261ecSmrgrm -fr conftest* 101405b261ecSmrg])# _LT_AC_TRY_DLOPEN_SELF 101505b261ecSmrg 101605b261ecSmrg 101705b261ecSmrg# AC_LIBTOOL_DLOPEN_SELF 101805b261ecSmrg# ---------------------- 101905b261ecSmrgAC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], 102005b261ecSmrg[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 102105b261ecSmrgif test "x$enable_dlopen" != xyes; then 102205b261ecSmrg enable_dlopen=unknown 102305b261ecSmrg enable_dlopen_self=unknown 102405b261ecSmrg enable_dlopen_self_static=unknown 102505b261ecSmrgelse 102605b261ecSmrg lt_cv_dlopen=no 102705b261ecSmrg lt_cv_dlopen_libs= 102805b261ecSmrg 102905b261ecSmrg case $host_os in 103005b261ecSmrg beos*) 103105b261ecSmrg lt_cv_dlopen="load_add_on" 103205b261ecSmrg lt_cv_dlopen_libs= 103305b261ecSmrg lt_cv_dlopen_self=yes 103405b261ecSmrg ;; 103505b261ecSmrg 103605b261ecSmrg mingw* | pw32*) 103705b261ecSmrg lt_cv_dlopen="LoadLibrary" 103805b261ecSmrg lt_cv_dlopen_libs= 103905b261ecSmrg ;; 104005b261ecSmrg 104105b261ecSmrg cygwin*) 104205b261ecSmrg lt_cv_dlopen="dlopen" 104305b261ecSmrg lt_cv_dlopen_libs= 104405b261ecSmrg ;; 104505b261ecSmrg 104605b261ecSmrg darwin*) 104705b261ecSmrg # if libdl is installed we need to link against it 104805b261ecSmrg AC_CHECK_LIB([dl], [dlopen], 104905b261ecSmrg [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ 105005b261ecSmrg lt_cv_dlopen="dyld" 105105b261ecSmrg lt_cv_dlopen_libs= 105205b261ecSmrg lt_cv_dlopen_self=yes 105305b261ecSmrg ]) 105405b261ecSmrg ;; 105505b261ecSmrg 105605b261ecSmrg *) 105705b261ecSmrg AC_CHECK_FUNC([shl_load], 105805b261ecSmrg [lt_cv_dlopen="shl_load"], 105905b261ecSmrg [AC_CHECK_LIB([dld], [shl_load], 106005b261ecSmrg [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], 106105b261ecSmrg [AC_CHECK_FUNC([dlopen], 106205b261ecSmrg [lt_cv_dlopen="dlopen"], 106305b261ecSmrg [AC_CHECK_LIB([dl], [dlopen], 106405b261ecSmrg [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], 106505b261ecSmrg [AC_CHECK_LIB([svld], [dlopen], 106605b261ecSmrg [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], 106705b261ecSmrg [AC_CHECK_LIB([dld], [dld_link], 106805b261ecSmrg [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) 106905b261ecSmrg ]) 107005b261ecSmrg ]) 107105b261ecSmrg ]) 107205b261ecSmrg ]) 107305b261ecSmrg ]) 107405b261ecSmrg ;; 107505b261ecSmrg esac 107605b261ecSmrg 107705b261ecSmrg if test "x$lt_cv_dlopen" != xno; then 107805b261ecSmrg enable_dlopen=yes 107905b261ecSmrg else 108005b261ecSmrg enable_dlopen=no 108105b261ecSmrg fi 108205b261ecSmrg 108305b261ecSmrg case $lt_cv_dlopen in 108405b261ecSmrg dlopen) 108505b261ecSmrg save_CPPFLAGS="$CPPFLAGS" 108605b261ecSmrg test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 108705b261ecSmrg 108805b261ecSmrg save_LDFLAGS="$LDFLAGS" 108905b261ecSmrg wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 109005b261ecSmrg 109105b261ecSmrg save_LIBS="$LIBS" 109205b261ecSmrg LIBS="$lt_cv_dlopen_libs $LIBS" 109305b261ecSmrg 109405b261ecSmrg AC_CACHE_CHECK([whether a program can dlopen itself], 109505b261ecSmrg lt_cv_dlopen_self, [dnl 109605b261ecSmrg _LT_AC_TRY_DLOPEN_SELF( 109705b261ecSmrg lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 109805b261ecSmrg lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 109905b261ecSmrg ]) 110005b261ecSmrg 110105b261ecSmrg if test "x$lt_cv_dlopen_self" = xyes; then 110205b261ecSmrg wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 110305b261ecSmrg AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 110405b261ecSmrg lt_cv_dlopen_self_static, [dnl 110505b261ecSmrg _LT_AC_TRY_DLOPEN_SELF( 110605b261ecSmrg lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 110705b261ecSmrg lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 110805b261ecSmrg ]) 110905b261ecSmrg fi 111005b261ecSmrg 111105b261ecSmrg CPPFLAGS="$save_CPPFLAGS" 111205b261ecSmrg LDFLAGS="$save_LDFLAGS" 111305b261ecSmrg LIBS="$save_LIBS" 111405b261ecSmrg ;; 111505b261ecSmrg esac 111605b261ecSmrg 111705b261ecSmrg case $lt_cv_dlopen_self in 111805b261ecSmrg yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 111905b261ecSmrg *) enable_dlopen_self=unknown ;; 112005b261ecSmrg esac 112105b261ecSmrg 112205b261ecSmrg case $lt_cv_dlopen_self_static in 112305b261ecSmrg yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 112405b261ecSmrg *) enable_dlopen_self_static=unknown ;; 112505b261ecSmrg esac 112605b261ecSmrgfi 112705b261ecSmrg])# AC_LIBTOOL_DLOPEN_SELF 112805b261ecSmrg 112905b261ecSmrg 113005b261ecSmrg# AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) 113105b261ecSmrg# --------------------------------- 113205b261ecSmrg# Check to see if options -c and -o are simultaneously supported by compiler 113305b261ecSmrgAC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], 113405b261ecSmrg[AC_REQUIRE([LT_AC_PROG_SED])dnl 113505b261ecSmrgAC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 113605b261ecSmrgAC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 113705b261ecSmrg [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], 113805b261ecSmrg [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no 113905b261ecSmrg $rm -r conftest 2>/dev/null 114005b261ecSmrg mkdir conftest 114105b261ecSmrg cd conftest 114205b261ecSmrg mkdir out 114305b261ecSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 114405b261ecSmrg 114505b261ecSmrg lt_compiler_flag="-o out/conftest2.$ac_objext" 114605b261ecSmrg # Insert the option either (1) after the last *FLAGS variable, or 114705b261ecSmrg # (2) before a word containing "conftest.", or (3) at the end. 114805b261ecSmrg # Note that $ac_compile itself does not contain backslashes and begins 114905b261ecSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 115005b261ecSmrg lt_compile=`echo "$ac_compile" | $SED \ 115105b261ecSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 115205b261ecSmrg -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 115305b261ecSmrg -e 's:$: $lt_compiler_flag:'` 115405b261ecSmrg (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 115505b261ecSmrg (eval "$lt_compile" 2>out/conftest.err) 115605b261ecSmrg ac_status=$? 115705b261ecSmrg cat out/conftest.err >&AS_MESSAGE_LOG_FD 115805b261ecSmrg echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 115905b261ecSmrg if (exit $ac_status) && test -s out/conftest2.$ac_objext 116005b261ecSmrg then 116105b261ecSmrg # The compiler can only warn and ignore the option if not recognized 116205b261ecSmrg # So say no if there are warnings 116305b261ecSmrg $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 116405b261ecSmrg $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 116505b261ecSmrg if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 116605b261ecSmrg _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 116705b261ecSmrg fi 116805b261ecSmrg fi 116905b261ecSmrg chmod u+w . 2>&AS_MESSAGE_LOG_FD 117005b261ecSmrg $rm conftest* 117105b261ecSmrg # SGI C++ compiler will create directory out/ii_files/ for 117205b261ecSmrg # template instantiation 117305b261ecSmrg test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 117405b261ecSmrg $rm out/* && rmdir out 117505b261ecSmrg cd .. 117605b261ecSmrg rmdir conftest 117705b261ecSmrg $rm conftest* 117805b261ecSmrg]) 117905b261ecSmrg])# AC_LIBTOOL_PROG_CC_C_O 118005b261ecSmrg 118105b261ecSmrg 118205b261ecSmrg# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) 118305b261ecSmrg# ----------------------------------------- 118405b261ecSmrg# Check to see if we can do hard links to lock some files if needed 118505b261ecSmrgAC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], 118605b261ecSmrg[AC_REQUIRE([_LT_AC_LOCK])dnl 118705b261ecSmrg 118805b261ecSmrghard_links="nottested" 118905b261ecSmrgif test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then 119005b261ecSmrg # do not overwrite the value of need_locks provided by the user 119105b261ecSmrg AC_MSG_CHECKING([if we can lock with hard links]) 119205b261ecSmrg hard_links=yes 119305b261ecSmrg $rm conftest* 119405b261ecSmrg ln conftest.a conftest.b 2>/dev/null && hard_links=no 119505b261ecSmrg touch conftest.a 119605b261ecSmrg ln conftest.a conftest.b 2>&5 || hard_links=no 119705b261ecSmrg ln conftest.a conftest.b 2>/dev/null && hard_links=no 119805b261ecSmrg AC_MSG_RESULT([$hard_links]) 119905b261ecSmrg if test "$hard_links" = no; then 120005b261ecSmrg AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) 120105b261ecSmrg need_locks=warn 120205b261ecSmrg fi 120305b261ecSmrgelse 120405b261ecSmrg need_locks=no 120505b261ecSmrgfi 120605b261ecSmrg])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS 120705b261ecSmrg 120805b261ecSmrg 120905b261ecSmrg# AC_LIBTOOL_OBJDIR 121005b261ecSmrg# ----------------- 121105b261ecSmrgAC_DEFUN([AC_LIBTOOL_OBJDIR], 121205b261ecSmrg[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], 121305b261ecSmrg[rm -f .libs 2>/dev/null 121405b261ecSmrgmkdir .libs 2>/dev/null 121505b261ecSmrgif test -d .libs; then 121605b261ecSmrg lt_cv_objdir=.libs 121705b261ecSmrgelse 121805b261ecSmrg # MS-DOS does not allow filenames that begin with a dot. 121905b261ecSmrg lt_cv_objdir=_libs 122005b261ecSmrgfi 122105b261ecSmrgrmdir .libs 2>/dev/null]) 122205b261ecSmrgobjdir=$lt_cv_objdir 122305b261ecSmrg])# AC_LIBTOOL_OBJDIR 122405b261ecSmrg 122505b261ecSmrg 122605b261ecSmrg# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) 122705b261ecSmrg# ---------------------------------------------- 122805b261ecSmrg# Check hardcoding attributes. 122905b261ecSmrgAC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], 123005b261ecSmrg[AC_MSG_CHECKING([how to hardcode library paths into programs]) 123105b261ecSmrg_LT_AC_TAGVAR(hardcode_action, $1)= 123205b261ecSmrgif test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ 123305b261ecSmrg test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ 123405b261ecSmrg test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then 123505b261ecSmrg 123605b261ecSmrg # We can hardcode non-existant directories. 123705b261ecSmrg if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && 123805b261ecSmrg # If the only mechanism to avoid hardcoding is shlibpath_var, we 123905b261ecSmrg # have to relink, otherwise we might link with an installed library 124005b261ecSmrg # when we should be linking with a yet-to-be-installed one 124105b261ecSmrg ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && 124205b261ecSmrg test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then 124305b261ecSmrg # Linking always hardcodes the temporary library directory. 124405b261ecSmrg _LT_AC_TAGVAR(hardcode_action, $1)=relink 124505b261ecSmrg else 124605b261ecSmrg # We can link without hardcoding, and we can hardcode nonexisting dirs. 124705b261ecSmrg _LT_AC_TAGVAR(hardcode_action, $1)=immediate 124805b261ecSmrg fi 124905b261ecSmrgelse 125005b261ecSmrg # We cannot hardcode anything, or else we can only hardcode existing 125105b261ecSmrg # directories. 125205b261ecSmrg _LT_AC_TAGVAR(hardcode_action, $1)=unsupported 125305b261ecSmrgfi 125405b261ecSmrgAC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) 125505b261ecSmrg 125605b261ecSmrgif test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then 125705b261ecSmrg # Fast installation is not supported 125805b261ecSmrg enable_fast_install=no 125905b261ecSmrgelif test "$shlibpath_overrides_runpath" = yes || 126005b261ecSmrg test "$enable_shared" = no; then 126105b261ecSmrg # Fast installation is not necessary 126205b261ecSmrg enable_fast_install=needless 126305b261ecSmrgfi 126405b261ecSmrg])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH 126505b261ecSmrg 126605b261ecSmrg 126705b261ecSmrg# AC_LIBTOOL_SYS_LIB_STRIP 126805b261ecSmrg# ------------------------ 126905b261ecSmrgAC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], 127005b261ecSmrg[striplib= 127105b261ecSmrgold_striplib= 127205b261ecSmrgAC_MSG_CHECKING([whether stripping libraries is possible]) 127305b261ecSmrgif test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 127405b261ecSmrg test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 127505b261ecSmrg test -z "$striplib" && striplib="$STRIP --strip-unneeded" 127605b261ecSmrg AC_MSG_RESULT([yes]) 127705b261ecSmrgelse 127805b261ecSmrg# FIXME - insert some real tests, host_os isn't really good enough 127905b261ecSmrg case $host_os in 128005b261ecSmrg darwin*) 128105b261ecSmrg if test -n "$STRIP" ; then 128205b261ecSmrg striplib="$STRIP -x" 128305b261ecSmrg old_striplib="$STRIP -S" 128405b261ecSmrg AC_MSG_RESULT([yes]) 128505b261ecSmrg else 128605b261ecSmrg AC_MSG_RESULT([no]) 128705b261ecSmrgfi 128805b261ecSmrg ;; 128905b261ecSmrg *) 129005b261ecSmrg AC_MSG_RESULT([no]) 129105b261ecSmrg ;; 129205b261ecSmrg esac 129305b261ecSmrgfi 129405b261ecSmrg])# AC_LIBTOOL_SYS_LIB_STRIP 129505b261ecSmrg 129605b261ecSmrg 129705b261ecSmrg# AC_LIBTOOL_SYS_DYNAMIC_LINKER 129805b261ecSmrg# ----------------------------- 129905b261ecSmrg# PORTME Fill in your ld.so characteristics 130005b261ecSmrgAC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], 130105b261ecSmrg[AC_REQUIRE([LT_AC_PROG_SED])dnl 130205b261ecSmrgAC_MSG_CHECKING([dynamic linker characteristics]) 130305b261ecSmrglibrary_names_spec= 130405b261ecSmrglibname_spec='lib$name' 130505b261ecSmrgsoname_spec= 130605b261ecSmrgshrext_cmds=".so" 130705b261ecSmrgpostinstall_cmds= 130805b261ecSmrgpostuninstall_cmds= 130905b261ecSmrgfinish_cmds= 131005b261ecSmrgfinish_eval= 131105b261ecSmrgshlibpath_var= 131205b261ecSmrgshlibpath_overrides_runpath=unknown 131305b261ecSmrgversion_type=none 131405b261ecSmrgdynamic_linker="$host_os ld.so" 131505b261ecSmrgsys_lib_dlsearch_path_spec="/lib /usr/lib" 131605b261ecSmrgm4_if($1,[],[ 131705b261ecSmrgif test "$GCC" = yes; then 131805b261ecSmrg case $host_os in 131905b261ecSmrg darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 132005b261ecSmrg *) lt_awk_arg="/^libraries:/" ;; 132105b261ecSmrg esac 132205b261ecSmrg lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 132305b261ecSmrg if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 132405b261ecSmrg # if the path contains ";" then we assume it to be the separator 132505b261ecSmrg # otherwise default to the standard path separator (i.e. ":") - it is 132605b261ecSmrg # assumed that no part of a normal pathname contains ";" but that should 132705b261ecSmrg # okay in the real world where ";" in dirpaths is itself problematic. 132805b261ecSmrg lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 132905b261ecSmrg else 133005b261ecSmrg lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 133105b261ecSmrg fi 133205b261ecSmrg # Ok, now we have the path, separated by spaces, we can step through it 133305b261ecSmrg # and add multilib dir if necessary. 133405b261ecSmrg lt_tmp_lt_search_path_spec= 133505b261ecSmrg lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 133605b261ecSmrg for lt_sys_path in $lt_search_path_spec; do 133705b261ecSmrg if test -d "$lt_sys_path/$lt_multi_os_dir"; then 133805b261ecSmrg lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 133905b261ecSmrg else 134005b261ecSmrg test -d "$lt_sys_path" && \ 134105b261ecSmrg lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 134205b261ecSmrg fi 134305b261ecSmrg done 134405b261ecSmrg lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 134505b261ecSmrgBEGIN {RS=" "; FS="/|\n";} { 134605b261ecSmrg lt_foo=""; 134705b261ecSmrg lt_count=0; 134805b261ecSmrg for (lt_i = NF; lt_i > 0; lt_i--) { 134905b261ecSmrg if ($lt_i != "" && $lt_i != ".") { 135005b261ecSmrg if ($lt_i == "..") { 135105b261ecSmrg lt_count++; 135205b261ecSmrg } else { 135305b261ecSmrg if (lt_count == 0) { 135405b261ecSmrg lt_foo="/" $lt_i lt_foo; 135505b261ecSmrg } else { 135605b261ecSmrg lt_count--; 135705b261ecSmrg } 135805b261ecSmrg } 135905b261ecSmrg } 136005b261ecSmrg } 136105b261ecSmrg if (lt_foo != "") { lt_freq[[lt_foo]]++; } 136205b261ecSmrg if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 136305b261ecSmrg}'` 136405b261ecSmrg sys_lib_search_path_spec=`echo $lt_search_path_spec` 136505b261ecSmrgelse 136605b261ecSmrg sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 136705b261ecSmrgfi]) 136805b261ecSmrgneed_lib_prefix=unknown 136905b261ecSmrghardcode_into_libs=no 137005b261ecSmrg 137105b261ecSmrg# when you set need_version to no, make sure it does not cause -set_version 137205b261ecSmrg# flags to be left without arguments 137305b261ecSmrgneed_version=unknown 137405b261ecSmrg 137505b261ecSmrgcase $host_os in 137605b261ecSmrgaix3*) 137705b261ecSmrg version_type=linux 137805b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 137905b261ecSmrg shlibpath_var=LIBPATH 138005b261ecSmrg 138105b261ecSmrg # AIX 3 has no versioning support, so we append a major version to the name. 138205b261ecSmrg soname_spec='${libname}${release}${shared_ext}$major' 138305b261ecSmrg ;; 138405b261ecSmrg 138505b261ecSmrgaix[[4-9]]*) 138605b261ecSmrg version_type=linux 138705b261ecSmrg need_lib_prefix=no 138805b261ecSmrg need_version=no 138905b261ecSmrg hardcode_into_libs=yes 139005b261ecSmrg if test "$host_cpu" = ia64; then 139105b261ecSmrg # AIX 5 supports IA64 139205b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 139305b261ecSmrg shlibpath_var=LD_LIBRARY_PATH 139405b261ecSmrg else 139505b261ecSmrg # With GCC up to 2.95.x, collect2 would create an import file 139605b261ecSmrg # for dependence libraries. The import file would start with 139705b261ecSmrg # the line `#! .'. This would cause the generated library to 139805b261ecSmrg # depend on `.', always an invalid library. This was fixed in 139905b261ecSmrg # development snapshots of GCC prior to 3.0. 140005b261ecSmrg case $host_os in 140105b261ecSmrg aix4 | aix4.[[01]] | aix4.[[01]].*) 140205b261ecSmrg if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 140305b261ecSmrg echo ' yes ' 140405b261ecSmrg echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 140505b261ecSmrg : 140605b261ecSmrg else 140705b261ecSmrg can_build_shared=no 140805b261ecSmrg fi 140905b261ecSmrg ;; 141005b261ecSmrg esac 141105b261ecSmrg # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 141205b261ecSmrg # soname into executable. Probably we can add versioning support to 141305b261ecSmrg # collect2, so additional links can be useful in future. 141405b261ecSmrg if test "$aix_use_runtimelinking" = yes; then 141505b261ecSmrg # If using run time linking (on AIX 4.2 or later) use lib<name>.so 141605b261ecSmrg # instead of lib<name>.a to let people know that these are not 141705b261ecSmrg # typical AIX shared libraries. 141805b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 141905b261ecSmrg else 142005b261ecSmrg # We preserve .a as extension for shared libraries through AIX4.2 142105b261ecSmrg # and later when we are not doing run time linking. 142205b261ecSmrg library_names_spec='${libname}${release}.a $libname.a' 142305b261ecSmrg soname_spec='${libname}${release}${shared_ext}$major' 142405b261ecSmrg fi 142505b261ecSmrg shlibpath_var=LIBPATH 142605b261ecSmrg fi 142705b261ecSmrg ;; 142805b261ecSmrg 142905b261ecSmrgamigaos*) 143005b261ecSmrg library_names_spec='$libname.ixlibrary $libname.a' 143105b261ecSmrg # Create ${libname}_ixlibrary.a entries in /sys/libs. 143205b261ecSmrg 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' 143305b261ecSmrg ;; 143405b261ecSmrg 143505b261ecSmrgbeos*) 143605b261ecSmrg library_names_spec='${libname}${shared_ext}' 143705b261ecSmrg dynamic_linker="$host_os ld.so" 143805b261ecSmrg shlibpath_var=LIBRARY_PATH 143905b261ecSmrg ;; 144005b261ecSmrg 144105b261ecSmrgbsdi[[45]]*) 144205b261ecSmrg version_type=linux 144305b261ecSmrg need_version=no 144405b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 144505b261ecSmrg soname_spec='${libname}${release}${shared_ext}$major' 144605b261ecSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 144705b261ecSmrg shlibpath_var=LD_LIBRARY_PATH 144805b261ecSmrg sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 144905b261ecSmrg sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 145005b261ecSmrg # the default ld.so.conf also contains /usr/contrib/lib and 145105b261ecSmrg # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 145205b261ecSmrg # libtool to hard-code these into programs 145305b261ecSmrg ;; 145405b261ecSmrg 145505b261ecSmrgcygwin* | mingw* | pw32*) 145605b261ecSmrg version_type=windows 145705b261ecSmrg shrext_cmds=".dll" 145805b261ecSmrg need_version=no 145905b261ecSmrg need_lib_prefix=no 146005b261ecSmrg 146105b261ecSmrg case $GCC,$host_os in 146205b261ecSmrg yes,cygwin* | yes,mingw* | yes,pw32*) 146305b261ecSmrg library_names_spec='$libname.dll.a' 146405b261ecSmrg # DLL is installed to $(libdir)/../bin by postinstall_cmds 146505b261ecSmrg postinstall_cmds='base_file=`basename \${file}`~ 146605b261ecSmrg dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 146705b261ecSmrg dldir=$destdir/`dirname \$dlpath`~ 146805b261ecSmrg test -d \$dldir || mkdir -p \$dldir~ 146905b261ecSmrg $install_prog $dir/$dlname \$dldir/$dlname~ 147005b261ecSmrg chmod a+x \$dldir/$dlname' 147105b261ecSmrg postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 147205b261ecSmrg dlpath=$dir/\$dldll~ 147305b261ecSmrg $rm \$dlpath' 147405b261ecSmrg shlibpath_overrides_runpath=yes 147505b261ecSmrg 147605b261ecSmrg case $host_os in 147705b261ecSmrg cygwin*) 147805b261ecSmrg # Cygwin DLLs use 'cyg' prefix rather than 'lib' 147905b261ecSmrg soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 148005b261ecSmrg sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 148105b261ecSmrg ;; 148205b261ecSmrg mingw*) 148305b261ecSmrg # MinGW DLLs use traditional 'lib' prefix 148405b261ecSmrg soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 148505b261ecSmrg sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 148605b261ecSmrg if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then 148705b261ecSmrg # It is most probably a Windows format PATH printed by 148805b261ecSmrg # mingw gcc, but we are running on Cygwin. Gcc prints its search 148905b261ecSmrg # path with ; separators, and with drive letters. We can handle the 149005b261ecSmrg # drive letters (cygwin fileutils understands them), so leave them, 149105b261ecSmrg # especially as we might pass files found there to a mingw objdump, 149205b261ecSmrg # which wouldn't understand a cygwinified path. Ahh. 149305b261ecSmrg sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 149405b261ecSmrg else 149505b261ecSmrg sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 149605b261ecSmrg fi 149705b261ecSmrg ;; 149805b261ecSmrg pw32*) 149905b261ecSmrg # pw32 DLLs use 'pw' prefix rather than 'lib' 150005b261ecSmrg library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 150105b261ecSmrg ;; 150205b261ecSmrg esac 150305b261ecSmrg ;; 150405b261ecSmrg 150505b261ecSmrg *) 150605b261ecSmrg library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' 150705b261ecSmrg ;; 150805b261ecSmrg esac 150905b261ecSmrg dynamic_linker='Win32 ld.exe' 151005b261ecSmrg # FIXME: first we should search . and the directory the executable is in 151105b261ecSmrg shlibpath_var=PATH 151205b261ecSmrg ;; 151305b261ecSmrg 151405b261ecSmrgdarwin* | rhapsody*) 151505b261ecSmrg dynamic_linker="$host_os dyld" 151605b261ecSmrg version_type=darwin 151705b261ecSmrg need_lib_prefix=no 151805b261ecSmrg need_version=no 151905b261ecSmrg library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 152005b261ecSmrg soname_spec='${libname}${release}${major}$shared_ext' 152105b261ecSmrg shlibpath_overrides_runpath=yes 152205b261ecSmrg shlibpath_var=DYLD_LIBRARY_PATH 152305b261ecSmrg shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 152405b261ecSmrg m4_if([$1], [],[ 152505b261ecSmrg sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 152605b261ecSmrg sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 152705b261ecSmrg ;; 152805b261ecSmrg 152905b261ecSmrgdgux*) 153005b261ecSmrg version_type=linux 153105b261ecSmrg need_lib_prefix=no 153205b261ecSmrg need_version=no 153305b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 153405b261ecSmrg soname_spec='${libname}${release}${shared_ext}$major' 153505b261ecSmrg shlibpath_var=LD_LIBRARY_PATH 153605b261ecSmrg ;; 153705b261ecSmrg 153805b261ecSmrgfreebsd1*) 153905b261ecSmrg dynamic_linker=no 154005b261ecSmrg ;; 154105b261ecSmrg 154205b261ecSmrgfreebsd* | dragonfly*) 154305b261ecSmrg # DragonFly does not have aout. When/if they implement a new 154405b261ecSmrg # versioning mechanism, adjust this. 154505b261ecSmrg if test -x /usr/bin/objformat; then 154605b261ecSmrg objformat=`/usr/bin/objformat` 154705b261ecSmrg else 154805b261ecSmrg case $host_os in 154905b261ecSmrg freebsd[[123]]*) objformat=aout ;; 155005b261ecSmrg *) objformat=elf ;; 155105b261ecSmrg esac 155205b261ecSmrg fi 155305b261ecSmrg version_type=freebsd-$objformat 155405b261ecSmrg case $version_type in 155505b261ecSmrg freebsd-elf*) 155605b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 155705b261ecSmrg need_version=no 155805b261ecSmrg need_lib_prefix=no 155905b261ecSmrg ;; 156005b261ecSmrg freebsd-*) 156105b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 156205b261ecSmrg need_version=yes 156305b261ecSmrg ;; 156405b261ecSmrg esac 156505b261ecSmrg shlibpath_var=LD_LIBRARY_PATH 156605b261ecSmrg case $host_os in 156705b261ecSmrg freebsd2*) 156805b261ecSmrg shlibpath_overrides_runpath=yes 156905b261ecSmrg ;; 157005b261ecSmrg freebsd3.[[01]]* | freebsdelf3.[[01]]*) 157105b261ecSmrg shlibpath_overrides_runpath=yes 157205b261ecSmrg hardcode_into_libs=yes 157305b261ecSmrg ;; 157405b261ecSmrg freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ 157505b261ecSmrg freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) 157605b261ecSmrg shlibpath_overrides_runpath=no 157705b261ecSmrg hardcode_into_libs=yes 157805b261ecSmrg ;; 157905b261ecSmrg *) # from 4.6 on, and DragonFly 158005b261ecSmrg shlibpath_overrides_runpath=yes 158105b261ecSmrg hardcode_into_libs=yes 158205b261ecSmrg ;; 158305b261ecSmrg esac 158405b261ecSmrg ;; 158505b261ecSmrg 158605b261ecSmrggnu*) 158705b261ecSmrg version_type=linux 158805b261ecSmrg need_lib_prefix=no 158905b261ecSmrg need_version=no 159005b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 159105b261ecSmrg soname_spec='${libname}${release}${shared_ext}$major' 159205b261ecSmrg shlibpath_var=LD_LIBRARY_PATH 159305b261ecSmrg hardcode_into_libs=yes 159405b261ecSmrg ;; 159505b261ecSmrg 159605b261ecSmrghpux9* | hpux10* | hpux11*) 159705b261ecSmrg # Give a soname corresponding to the major version so that dld.sl refuses to 159805b261ecSmrg # link against other versions. 159905b261ecSmrg version_type=sunos 160005b261ecSmrg need_lib_prefix=no 160105b261ecSmrg need_version=no 160205b261ecSmrg case $host_cpu in 160305b261ecSmrg ia64*) 160405b261ecSmrg shrext_cmds='.so' 160505b261ecSmrg hardcode_into_libs=yes 160605b261ecSmrg dynamic_linker="$host_os dld.so" 160705b261ecSmrg shlibpath_var=LD_LIBRARY_PATH 160805b261ecSmrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 160905b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 161005b261ecSmrg soname_spec='${libname}${release}${shared_ext}$major' 161105b261ecSmrg if test "X$HPUX_IA64_MODE" = X32; then 161205b261ecSmrg sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 161305b261ecSmrg else 161405b261ecSmrg sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 161505b261ecSmrg fi 161605b261ecSmrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 161705b261ecSmrg ;; 161805b261ecSmrg hppa*64*) 161905b261ecSmrg shrext_cmds='.sl' 162005b261ecSmrg hardcode_into_libs=yes 162105b261ecSmrg dynamic_linker="$host_os dld.sl" 162205b261ecSmrg shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 162305b261ecSmrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 162405b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 162505b261ecSmrg soname_spec='${libname}${release}${shared_ext}$major' 162605b261ecSmrg sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 162705b261ecSmrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 162805b261ecSmrg ;; 162905b261ecSmrg *) 163005b261ecSmrg shrext_cmds='.sl' 163105b261ecSmrg dynamic_linker="$host_os dld.sl" 163205b261ecSmrg shlibpath_var=SHLIB_PATH 163305b261ecSmrg shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 163405b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 163505b261ecSmrg soname_spec='${libname}${release}${shared_ext}$major' 163605b261ecSmrg ;; 163705b261ecSmrg esac 163805b261ecSmrg # HP-UX runs *really* slowly unless shared libraries are mode 555. 163905b261ecSmrg postinstall_cmds='chmod 555 $lib' 164005b261ecSmrg ;; 164105b261ecSmrg 164205b261ecSmrginterix[[3-9]]*) 164305b261ecSmrg version_type=linux 164405b261ecSmrg need_lib_prefix=no 164505b261ecSmrg need_version=no 164605b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 164705b261ecSmrg soname_spec='${libname}${release}${shared_ext}$major' 164805b261ecSmrg dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 164905b261ecSmrg shlibpath_var=LD_LIBRARY_PATH 165005b261ecSmrg shlibpath_overrides_runpath=no 165105b261ecSmrg hardcode_into_libs=yes 165205b261ecSmrg ;; 165305b261ecSmrg 165405b261ecSmrgirix5* | irix6* | nonstopux*) 165505b261ecSmrg case $host_os in 165605b261ecSmrg nonstopux*) version_type=nonstopux ;; 165705b261ecSmrg *) 165805b261ecSmrg if test "$lt_cv_prog_gnu_ld" = yes; then 165905b261ecSmrg version_type=linux 166005b261ecSmrg else 166105b261ecSmrg version_type=irix 166205b261ecSmrg fi ;; 166305b261ecSmrg esac 166405b261ecSmrg need_lib_prefix=no 166505b261ecSmrg need_version=no 166605b261ecSmrg soname_spec='${libname}${release}${shared_ext}$major' 166705b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 166805b261ecSmrg case $host_os in 166905b261ecSmrg irix5* | nonstopux*) 167005b261ecSmrg libsuff= shlibsuff= 167105b261ecSmrg ;; 167205b261ecSmrg *) 167305b261ecSmrg case $LD in # libtool.m4 will add one of these switches to LD 167405b261ecSmrg *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 167505b261ecSmrg libsuff= shlibsuff= libmagic=32-bit;; 167605b261ecSmrg *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 167705b261ecSmrg libsuff=32 shlibsuff=N32 libmagic=N32;; 167805b261ecSmrg *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 167905b261ecSmrg libsuff=64 shlibsuff=64 libmagic=64-bit;; 168005b261ecSmrg *) libsuff= shlibsuff= libmagic=never-match;; 168105b261ecSmrg esac 168205b261ecSmrg ;; 168305b261ecSmrg esac 168405b261ecSmrg shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 168505b261ecSmrg shlibpath_overrides_runpath=no 168605b261ecSmrg sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 168705b261ecSmrg sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 168805b261ecSmrg hardcode_into_libs=yes 168905b261ecSmrg ;; 169005b261ecSmrg 169105b261ecSmrg# No shared lib support for Linux oldld, aout, or coff. 169205b261ecSmrglinux*oldld* | linux*aout* | linux*coff*) 169305b261ecSmrg dynamic_linker=no 169405b261ecSmrg ;; 169505b261ecSmrg 169605b261ecSmrg# This must be Linux ELF. 169705b261ecSmrglinux* | k*bsd*-gnu) 169805b261ecSmrg version_type=linux 169905b261ecSmrg need_lib_prefix=no 170005b261ecSmrg need_version=no 170105b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 170205b261ecSmrg soname_spec='${libname}${release}${shared_ext}$major' 170305b261ecSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 170405b261ecSmrg shlibpath_var=LD_LIBRARY_PATH 170505b261ecSmrg shlibpath_overrides_runpath=no 170605b261ecSmrg # This implies no fast_install, which is unacceptable. 170705b261ecSmrg # Some rework will be needed to allow for fast_install 170805b261ecSmrg # before this can be enabled. 170905b261ecSmrg hardcode_into_libs=yes 171005b261ecSmrg 171105b261ecSmrg # Append ld.so.conf contents to the search path 171205b261ecSmrg if test -f /etc/ld.so.conf; then 171305b261ecSmrg 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' ' '` 171405b261ecSmrg sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 171505b261ecSmrg fi 171605b261ecSmrg 171705b261ecSmrg # We used to test for /lib/ld.so.1 and disable shared libraries on 171805b261ecSmrg # powerpc, because MkLinux only supported shared libraries with the 171905b261ecSmrg # GNU dynamic linker. Since this was broken with cross compilers, 172005b261ecSmrg # most powerpc-linux boxes support dynamic linking these days and 172105b261ecSmrg # people can always --disable-shared, the test was removed, and we 172205b261ecSmrg # assume the GNU/Linux dynamic linker is in use. 172305b261ecSmrg dynamic_linker='GNU/Linux ld.so' 172405b261ecSmrg ;; 172505b261ecSmrg 172605b261ecSmrgnetbsdelf*-gnu) 172705b261ecSmrg version_type=linux 172805b261ecSmrg need_lib_prefix=no 172905b261ecSmrg need_version=no 173005b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 173105b261ecSmrg soname_spec='${libname}${release}${shared_ext}$major' 173205b261ecSmrg shlibpath_var=LD_LIBRARY_PATH 173305b261ecSmrg shlibpath_overrides_runpath=no 173405b261ecSmrg hardcode_into_libs=yes 173505b261ecSmrg dynamic_linker='NetBSD ld.elf_so' 173605b261ecSmrg ;; 173705b261ecSmrg 173805b261ecSmrgnetbsd*) 173905b261ecSmrg version_type=sunos 174005b261ecSmrg need_lib_prefix=no 174105b261ecSmrg need_version=no 174205b261ecSmrg if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 174305b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 174405b261ecSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 174505b261ecSmrg dynamic_linker='NetBSD (a.out) ld.so' 174605b261ecSmrg else 174705b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 174805b261ecSmrg soname_spec='${libname}${release}${shared_ext}$major' 174905b261ecSmrg dynamic_linker='NetBSD ld.elf_so' 175005b261ecSmrg fi 175105b261ecSmrg shlibpath_var=LD_LIBRARY_PATH 175205b261ecSmrg shlibpath_overrides_runpath=yes 175305b261ecSmrg hardcode_into_libs=yes 175405b261ecSmrg ;; 175505b261ecSmrg 175605b261ecSmrgnewsos6) 175705b261ecSmrg version_type=linux 175805b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 175905b261ecSmrg shlibpath_var=LD_LIBRARY_PATH 176005b261ecSmrg shlibpath_overrides_runpath=yes 176105b261ecSmrg ;; 176205b261ecSmrg 176305b261ecSmrgnto-qnx*) 176405b261ecSmrg version_type=linux 176505b261ecSmrg need_lib_prefix=no 176605b261ecSmrg need_version=no 176705b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 176805b261ecSmrg soname_spec='${libname}${release}${shared_ext}$major' 176905b261ecSmrg shlibpath_var=LD_LIBRARY_PATH 177005b261ecSmrg shlibpath_overrides_runpath=yes 177105b261ecSmrg ;; 177205b261ecSmrg 177305b261ecSmrgopenbsd*) 177405b261ecSmrg version_type=sunos 177505b261ecSmrg sys_lib_dlsearch_path_spec="/usr/lib" 177605b261ecSmrg need_lib_prefix=no 177705b261ecSmrg # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 177805b261ecSmrg case $host_os in 177905b261ecSmrg openbsd3.3 | openbsd3.3.*) need_version=yes ;; 178005b261ecSmrg *) need_version=no ;; 178105b261ecSmrg esac 178205b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 178305b261ecSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 178405b261ecSmrg shlibpath_var=LD_LIBRARY_PATH 178505b261ecSmrg if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 178605b261ecSmrg case $host_os in 178705b261ecSmrg openbsd2.[[89]] | openbsd2.[[89]].*) 178805b261ecSmrg shlibpath_overrides_runpath=no 178905b261ecSmrg ;; 179005b261ecSmrg *) 179105b261ecSmrg shlibpath_overrides_runpath=yes 179205b261ecSmrg ;; 179305b261ecSmrg esac 179405b261ecSmrg else 179505b261ecSmrg shlibpath_overrides_runpath=yes 179605b261ecSmrg fi 179705b261ecSmrg ;; 179805b261ecSmrg 179905b261ecSmrgos2*) 180005b261ecSmrg libname_spec='$name' 180105b261ecSmrg shrext_cmds=".dll" 180205b261ecSmrg need_lib_prefix=no 180305b261ecSmrg library_names_spec='$libname${shared_ext} $libname.a' 180405b261ecSmrg dynamic_linker='OS/2 ld.exe' 180505b261ecSmrg shlibpath_var=LIBPATH 180605b261ecSmrg ;; 180705b261ecSmrg 180805b261ecSmrgosf3* | osf4* | osf5*) 180905b261ecSmrg version_type=osf 181005b261ecSmrg need_lib_prefix=no 181105b261ecSmrg need_version=no 181205b261ecSmrg soname_spec='${libname}${release}${shared_ext}$major' 181305b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 181405b261ecSmrg shlibpath_var=LD_LIBRARY_PATH 181505b261ecSmrg sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 181605b261ecSmrg sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 181705b261ecSmrg ;; 181805b261ecSmrg 181905b261ecSmrgrdos*) 182005b261ecSmrg dynamic_linker=no 182105b261ecSmrg ;; 182205b261ecSmrg 182305b261ecSmrgsolaris*) 182405b261ecSmrg version_type=linux 182505b261ecSmrg need_lib_prefix=no 182605b261ecSmrg need_version=no 182705b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 182805b261ecSmrg soname_spec='${libname}${release}${shared_ext}$major' 182905b261ecSmrg shlibpath_var=LD_LIBRARY_PATH 183005b261ecSmrg shlibpath_overrides_runpath=yes 183105b261ecSmrg hardcode_into_libs=yes 183205b261ecSmrg # ldd complains unless libraries are executable 183305b261ecSmrg postinstall_cmds='chmod +x $lib' 183405b261ecSmrg ;; 183505b261ecSmrg 183605b261ecSmrgsunos4*) 183705b261ecSmrg version_type=sunos 183805b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 183905b261ecSmrg finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 184005b261ecSmrg shlibpath_var=LD_LIBRARY_PATH 184105b261ecSmrg shlibpath_overrides_runpath=yes 184205b261ecSmrg if test "$with_gnu_ld" = yes; then 184305b261ecSmrg need_lib_prefix=no 184405b261ecSmrg fi 184505b261ecSmrg need_version=yes 184605b261ecSmrg ;; 184705b261ecSmrg 184805b261ecSmrgsysv4 | sysv4.3*) 184905b261ecSmrg version_type=linux 185005b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 185105b261ecSmrg soname_spec='${libname}${release}${shared_ext}$major' 185205b261ecSmrg shlibpath_var=LD_LIBRARY_PATH 185305b261ecSmrg case $host_vendor in 185405b261ecSmrg sni) 185505b261ecSmrg shlibpath_overrides_runpath=no 185605b261ecSmrg need_lib_prefix=no 185705b261ecSmrg export_dynamic_flag_spec='${wl}-Blargedynsym' 185805b261ecSmrg runpath_var=LD_RUN_PATH 185905b261ecSmrg ;; 186005b261ecSmrg siemens) 186105b261ecSmrg need_lib_prefix=no 186205b261ecSmrg ;; 186305b261ecSmrg motorola) 186405b261ecSmrg need_lib_prefix=no 186505b261ecSmrg need_version=no 186605b261ecSmrg shlibpath_overrides_runpath=no 186705b261ecSmrg sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 186805b261ecSmrg ;; 186905b261ecSmrg esac 187005b261ecSmrg ;; 187105b261ecSmrg 187205b261ecSmrgsysv4*MP*) 187305b261ecSmrg if test -d /usr/nec ;then 187405b261ecSmrg version_type=linux 187505b261ecSmrg library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 187605b261ecSmrg soname_spec='$libname${shared_ext}.$major' 187705b261ecSmrg shlibpath_var=LD_LIBRARY_PATH 187805b261ecSmrg fi 187905b261ecSmrg ;; 188005b261ecSmrg 188105b261ecSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 188205b261ecSmrg version_type=freebsd-elf 188305b261ecSmrg need_lib_prefix=no 188405b261ecSmrg need_version=no 188505b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 188605b261ecSmrg soname_spec='${libname}${release}${shared_ext}$major' 188705b261ecSmrg shlibpath_var=LD_LIBRARY_PATH 188805b261ecSmrg hardcode_into_libs=yes 188905b261ecSmrg if test "$with_gnu_ld" = yes; then 189005b261ecSmrg sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 189105b261ecSmrg shlibpath_overrides_runpath=no 189205b261ecSmrg else 189305b261ecSmrg sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 189405b261ecSmrg shlibpath_overrides_runpath=yes 189505b261ecSmrg case $host_os in 189605b261ecSmrg sco3.2v5*) 189705b261ecSmrg sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 189805b261ecSmrg ;; 189905b261ecSmrg esac 190005b261ecSmrg fi 190105b261ecSmrg sys_lib_dlsearch_path_spec='/usr/lib' 190205b261ecSmrg ;; 190305b261ecSmrg 190405b261ecSmrguts4*) 190505b261ecSmrg version_type=linux 190605b261ecSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 190705b261ecSmrg soname_spec='${libname}${release}${shared_ext}$major' 190805b261ecSmrg shlibpath_var=LD_LIBRARY_PATH 190905b261ecSmrg ;; 191005b261ecSmrg 191105b261ecSmrg*) 191205b261ecSmrg dynamic_linker=no 191305b261ecSmrg ;; 191405b261ecSmrgesac 191505b261ecSmrgAC_MSG_RESULT([$dynamic_linker]) 191605b261ecSmrgtest "$dynamic_linker" = no && can_build_shared=no 191705b261ecSmrg 191805b261ecSmrgAC_CACHE_VAL([lt_cv_sys_lib_search_path_spec], 191905b261ecSmrg[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"]) 192005b261ecSmrgsys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 192105b261ecSmrgAC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec], 192205b261ecSmrg[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"]) 192305b261ecSmrgsys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 192405b261ecSmrg 192505b261ecSmrgvariables_saved_for_relink="PATH $shlibpath_var $runpath_var" 192605b261ecSmrgif test "$GCC" = yes; then 192705b261ecSmrg variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 192805b261ecSmrgfi 192905b261ecSmrg])# AC_LIBTOOL_SYS_DYNAMIC_LINKER 193005b261ecSmrg 193105b261ecSmrg 193205b261ecSmrg# _LT_AC_TAGCONFIG 193305b261ecSmrg# ---------------- 193405b261ecSmrgAC_DEFUN([_LT_AC_TAGCONFIG], 193505b261ecSmrg[AC_REQUIRE([LT_AC_PROG_SED])dnl 193605b261ecSmrgAC_ARG_WITH([tags], 193705b261ecSmrg [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], 193805b261ecSmrg [include additional configurations @<:@automatic@:>@])], 193905b261ecSmrg [tagnames="$withval"]) 194005b261ecSmrg 194105b261ecSmrgif test -f "$ltmain" && test -n "$tagnames"; then 194205b261ecSmrg if test ! -f "${ofile}"; then 194305b261ecSmrg AC_MSG_WARN([output file `$ofile' does not exist]) 194405b261ecSmrg fi 194505b261ecSmrg 194605b261ecSmrg if test -z "$LTCC"; then 194705b261ecSmrg eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 194805b261ecSmrg if test -z "$LTCC"; then 194905b261ecSmrg AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) 195005b261ecSmrg else 195105b261ecSmrg AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) 195205b261ecSmrg fi 195305b261ecSmrg fi 195405b261ecSmrg if test -z "$LTCFLAGS"; then 195505b261ecSmrg eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 195605b261ecSmrg fi 195705b261ecSmrg 195805b261ecSmrg # Extract list of available tagged configurations in $ofile. 195905b261ecSmrg # Note that this assumes the entire list is on one line. 196005b261ecSmrg available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 196105b261ecSmrg 196205b261ecSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 196305b261ecSmrg for tagname in $tagnames; do 196405b261ecSmrg IFS="$lt_save_ifs" 196505b261ecSmrg # Check whether tagname contains only valid characters 196605b261ecSmrg case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in 196705b261ecSmrg "") ;; 196805b261ecSmrg *) AC_MSG_ERROR([invalid tag name: $tagname]) 196905b261ecSmrg ;; 197005b261ecSmrg esac 197105b261ecSmrg 197205b261ecSmrg if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 197305b261ecSmrg then 197405b261ecSmrg AC_MSG_ERROR([tag name \"$tagname\" already exists]) 197505b261ecSmrg fi 197605b261ecSmrg 197705b261ecSmrg # Update the list of available tags. 197805b261ecSmrg if test -n "$tagname"; then 197905b261ecSmrg echo appending configuration tag \"$tagname\" to $ofile 198005b261ecSmrg 198105b261ecSmrg case $tagname in 198205b261ecSmrg CXX) 198305b261ecSmrg if test -n "$CXX" && ( test "X$CXX" != "Xno" && 198405b261ecSmrg ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 198505b261ecSmrg (test "X$CXX" != "Xg++"))) ; then 198605b261ecSmrg AC_LIBTOOL_LANG_CXX_CONFIG 198705b261ecSmrg else 198805b261ecSmrg tagname="" 198905b261ecSmrg fi 199005b261ecSmrg ;; 199105b261ecSmrg 199205b261ecSmrg F77) 199305b261ecSmrg if test -n "$F77" && test "X$F77" != "Xno"; then 199405b261ecSmrg AC_LIBTOOL_LANG_F77_CONFIG 199505b261ecSmrg else 199605b261ecSmrg tagname="" 199705b261ecSmrg fi 199805b261ecSmrg ;; 199905b261ecSmrg 200005b261ecSmrg GCJ) 200105b261ecSmrg if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 200205b261ecSmrg AC_LIBTOOL_LANG_GCJ_CONFIG 200305b261ecSmrg else 200405b261ecSmrg tagname="" 200505b261ecSmrg fi 200605b261ecSmrg ;; 200705b261ecSmrg 200805b261ecSmrg RC) 200905b261ecSmrg AC_LIBTOOL_LANG_RC_CONFIG 201005b261ecSmrg ;; 201105b261ecSmrg 201205b261ecSmrg *) 201305b261ecSmrg AC_MSG_ERROR([Unsupported tag name: $tagname]) 201405b261ecSmrg ;; 201505b261ecSmrg esac 201605b261ecSmrg 201705b261ecSmrg # Append the new tag name to the list of available tags. 201805b261ecSmrg if test -n "$tagname" ; then 201905b261ecSmrg available_tags="$available_tags $tagname" 202005b261ecSmrg fi 202105b261ecSmrg fi 202205b261ecSmrg done 202305b261ecSmrg IFS="$lt_save_ifs" 202405b261ecSmrg 202505b261ecSmrg # Now substitute the updated list of available tags. 202605b261ecSmrg if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 202705b261ecSmrg mv "${ofile}T" "$ofile" 202805b261ecSmrg chmod +x "$ofile" 202905b261ecSmrg else 203005b261ecSmrg rm -f "${ofile}T" 203105b261ecSmrg AC_MSG_ERROR([unable to update list of available tagged configurations.]) 203205b261ecSmrg fi 203305b261ecSmrgfi 203405b261ecSmrg])# _LT_AC_TAGCONFIG 203505b261ecSmrg 203605b261ecSmrg 203705b261ecSmrg# AC_LIBTOOL_DLOPEN 203805b261ecSmrg# ----------------- 203905b261ecSmrg# enable checks for dlopen support 204005b261ecSmrgAC_DEFUN([AC_LIBTOOL_DLOPEN], 204105b261ecSmrg [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) 204205b261ecSmrg])# AC_LIBTOOL_DLOPEN 204305b261ecSmrg 204405b261ecSmrg 204505b261ecSmrg# AC_LIBTOOL_WIN32_DLL 204605b261ecSmrg# -------------------- 204705b261ecSmrg# declare package support for building win32 DLLs 204805b261ecSmrgAC_DEFUN([AC_LIBTOOL_WIN32_DLL], 204905b261ecSmrg[AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) 205005b261ecSmrg])# AC_LIBTOOL_WIN32_DLL 205105b261ecSmrg 205205b261ecSmrg 205305b261ecSmrg# AC_ENABLE_SHARED([DEFAULT]) 205405b261ecSmrg# --------------------------- 205505b261ecSmrg# implement the --enable-shared flag 205605b261ecSmrg# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 205705b261ecSmrgAC_DEFUN([AC_ENABLE_SHARED], 205805b261ecSmrg[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl 205905b261ecSmrgAC_ARG_ENABLE([shared], 206005b261ecSmrg [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], 206105b261ecSmrg [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], 206205b261ecSmrg [p=${PACKAGE-default} 206305b261ecSmrg case $enableval in 206405b261ecSmrg yes) enable_shared=yes ;; 206505b261ecSmrg no) enable_shared=no ;; 206605b261ecSmrg *) 206705b261ecSmrg enable_shared=no 206805b261ecSmrg # Look at the argument we got. We use all the common list separators. 206905b261ecSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 207005b261ecSmrg for pkg in $enableval; do 207105b261ecSmrg IFS="$lt_save_ifs" 207205b261ecSmrg if test "X$pkg" = "X$p"; then 207305b261ecSmrg enable_shared=yes 207405b261ecSmrg fi 207505b261ecSmrg done 207605b261ecSmrg IFS="$lt_save_ifs" 207705b261ecSmrg ;; 207805b261ecSmrg esac], 207905b261ecSmrg [enable_shared=]AC_ENABLE_SHARED_DEFAULT) 208005b261ecSmrg])# AC_ENABLE_SHARED 208105b261ecSmrg 208205b261ecSmrg 208305b261ecSmrg# AC_DISABLE_SHARED 208405b261ecSmrg# ----------------- 208505b261ecSmrg# set the default shared flag to --disable-shared 208605b261ecSmrgAC_DEFUN([AC_DISABLE_SHARED], 208705b261ecSmrg[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 208805b261ecSmrgAC_ENABLE_SHARED(no) 208905b261ecSmrg])# AC_DISABLE_SHARED 209005b261ecSmrg 209105b261ecSmrg 209205b261ecSmrg# AC_ENABLE_STATIC([DEFAULT]) 209305b261ecSmrg# --------------------------- 209405b261ecSmrg# implement the --enable-static flag 209505b261ecSmrg# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 209605b261ecSmrgAC_DEFUN([AC_ENABLE_STATIC], 209705b261ecSmrg[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl 209805b261ecSmrgAC_ARG_ENABLE([static], 209905b261ecSmrg [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], 210005b261ecSmrg [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], 210105b261ecSmrg [p=${PACKAGE-default} 210205b261ecSmrg case $enableval in 210305b261ecSmrg yes) enable_static=yes ;; 210405b261ecSmrg no) enable_static=no ;; 210505b261ecSmrg *) 210605b261ecSmrg enable_static=no 210705b261ecSmrg # Look at the argument we got. We use all the common list separators. 210805b261ecSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 210905b261ecSmrg for pkg in $enableval; do 211005b261ecSmrg IFS="$lt_save_ifs" 211105b261ecSmrg if test "X$pkg" = "X$p"; then 211205b261ecSmrg enable_static=yes 211305b261ecSmrg fi 211405b261ecSmrg done 211505b261ecSmrg IFS="$lt_save_ifs" 211605b261ecSmrg ;; 211705b261ecSmrg esac], 211805b261ecSmrg [enable_static=]AC_ENABLE_STATIC_DEFAULT) 211905b261ecSmrg])# AC_ENABLE_STATIC 212005b261ecSmrg 212105b261ecSmrg 212205b261ecSmrg# AC_DISABLE_STATIC 212305b261ecSmrg# ----------------- 212405b261ecSmrg# set the default static flag to --disable-static 212505b261ecSmrgAC_DEFUN([AC_DISABLE_STATIC], 212605b261ecSmrg[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 212705b261ecSmrgAC_ENABLE_STATIC(no) 212805b261ecSmrg])# AC_DISABLE_STATIC 212905b261ecSmrg 213005b261ecSmrg 213105b261ecSmrg# AC_ENABLE_FAST_INSTALL([DEFAULT]) 213205b261ecSmrg# --------------------------------- 213305b261ecSmrg# implement the --enable-fast-install flag 213405b261ecSmrg# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 213505b261ecSmrgAC_DEFUN([AC_ENABLE_FAST_INSTALL], 213605b261ecSmrg[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl 213705b261ecSmrgAC_ARG_ENABLE([fast-install], 213805b261ecSmrg [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], 213905b261ecSmrg [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], 214005b261ecSmrg [p=${PACKAGE-default} 214105b261ecSmrg case $enableval in 214205b261ecSmrg yes) enable_fast_install=yes ;; 214305b261ecSmrg no) enable_fast_install=no ;; 214405b261ecSmrg *) 214505b261ecSmrg enable_fast_install=no 214605b261ecSmrg # Look at the argument we got. We use all the common list separators. 214705b261ecSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 214805b261ecSmrg for pkg in $enableval; do 214905b261ecSmrg IFS="$lt_save_ifs" 215005b261ecSmrg if test "X$pkg" = "X$p"; then 215105b261ecSmrg enable_fast_install=yes 215205b261ecSmrg fi 215305b261ecSmrg done 215405b261ecSmrg IFS="$lt_save_ifs" 215505b261ecSmrg ;; 215605b261ecSmrg esac], 215705b261ecSmrg [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) 215805b261ecSmrg])# AC_ENABLE_FAST_INSTALL 215905b261ecSmrg 216005b261ecSmrg 216105b261ecSmrg# AC_DISABLE_FAST_INSTALL 216205b261ecSmrg# ----------------------- 216305b261ecSmrg# set the default to --disable-fast-install 216405b261ecSmrgAC_DEFUN([AC_DISABLE_FAST_INSTALL], 216505b261ecSmrg[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 216605b261ecSmrgAC_ENABLE_FAST_INSTALL(no) 216705b261ecSmrg])# AC_DISABLE_FAST_INSTALL 216805b261ecSmrg 216905b261ecSmrg 217005b261ecSmrg# AC_LIBTOOL_PICMODE([MODE]) 217105b261ecSmrg# -------------------------- 217205b261ecSmrg# implement the --with-pic flag 217305b261ecSmrg# MODE is either `yes' or `no'. If omitted, it defaults to `both'. 217405b261ecSmrgAC_DEFUN([AC_LIBTOOL_PICMODE], 217505b261ecSmrg[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 217605b261ecSmrgpic_mode=ifelse($#,1,$1,default) 217705b261ecSmrg])# AC_LIBTOOL_PICMODE 217805b261ecSmrg 217905b261ecSmrg 218005b261ecSmrg# AC_PROG_EGREP 218105b261ecSmrg# ------------- 218205b261ecSmrg# This is predefined starting with Autoconf 2.54, so this conditional 218305b261ecSmrg# definition can be removed once we require Autoconf 2.54 or later. 218405b261ecSmrgm4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], 218505b261ecSmrg[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], 218605b261ecSmrg [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 218705b261ecSmrg then ac_cv_prog_egrep='grep -E' 218805b261ecSmrg else ac_cv_prog_egrep='egrep' 218905b261ecSmrg fi]) 219005b261ecSmrg EGREP=$ac_cv_prog_egrep 219105b261ecSmrg AC_SUBST([EGREP]) 219205b261ecSmrg])]) 219305b261ecSmrg 219405b261ecSmrg 219505b261ecSmrg# AC_PATH_TOOL_PREFIX 219605b261ecSmrg# ------------------- 219705b261ecSmrg# find a file program which can recognize shared library 219805b261ecSmrgAC_DEFUN([AC_PATH_TOOL_PREFIX], 219905b261ecSmrg[AC_REQUIRE([AC_PROG_EGREP])dnl 220005b261ecSmrgAC_MSG_CHECKING([for $1]) 220105b261ecSmrgAC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 220205b261ecSmrg[case $MAGIC_CMD in 220305b261ecSmrg[[\\/*] | ?:[\\/]*]) 220405b261ecSmrg lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 220505b261ecSmrg ;; 220605b261ecSmrg*) 220705b261ecSmrg lt_save_MAGIC_CMD="$MAGIC_CMD" 220805b261ecSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 220905b261ecSmrgdnl $ac_dummy forces splitting on constant user-supplied paths. 221005b261ecSmrgdnl POSIX.2 word splitting is done only on the output of word expansions, 221105b261ecSmrgdnl not every word. This closes a longstanding sh security hole. 221205b261ecSmrg ac_dummy="ifelse([$2], , $PATH, [$2])" 221305b261ecSmrg for ac_dir in $ac_dummy; do 221405b261ecSmrg IFS="$lt_save_ifs" 221505b261ecSmrg test -z "$ac_dir" && ac_dir=. 221605b261ecSmrg if test -f $ac_dir/$1; then 221705b261ecSmrg lt_cv_path_MAGIC_CMD="$ac_dir/$1" 221805b261ecSmrg if test -n "$file_magic_test_file"; then 221905b261ecSmrg case $deplibs_check_method in 222005b261ecSmrg "file_magic "*) 222105b261ecSmrg file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 222205b261ecSmrg MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 222305b261ecSmrg if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 222405b261ecSmrg $EGREP "$file_magic_regex" > /dev/null; then 222505b261ecSmrg : 222605b261ecSmrg else 222705b261ecSmrg cat <<EOF 1>&2 222805b261ecSmrg 222905b261ecSmrg*** Warning: the command libtool uses to detect shared libraries, 223005b261ecSmrg*** $file_magic_cmd, produces output that libtool cannot recognize. 223105b261ecSmrg*** The result is that libtool may fail to recognize shared libraries 223205b261ecSmrg*** as such. This will affect the creation of libtool libraries that 223305b261ecSmrg*** depend on shared libraries, but programs linked with such libtool 223405b261ecSmrg*** libraries will work regardless of this problem. Nevertheless, you 223505b261ecSmrg*** may want to report the problem to your system manager and/or to 223605b261ecSmrg*** bug-libtool@gnu.org 223705b261ecSmrg 223805b261ecSmrgEOF 223905b261ecSmrg fi ;; 224005b261ecSmrg esac 224105b261ecSmrg fi 224205b261ecSmrg break 224305b261ecSmrg fi 224405b261ecSmrg done 224505b261ecSmrg IFS="$lt_save_ifs" 224605b261ecSmrg MAGIC_CMD="$lt_save_MAGIC_CMD" 224705b261ecSmrg ;; 224805b261ecSmrgesac]) 224905b261ecSmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD" 225005b261ecSmrgif test -n "$MAGIC_CMD"; then 225105b261ecSmrg AC_MSG_RESULT($MAGIC_CMD) 225205b261ecSmrgelse 225305b261ecSmrg AC_MSG_RESULT(no) 225405b261ecSmrgfi 225505b261ecSmrg])# AC_PATH_TOOL_PREFIX 225605b261ecSmrg 225705b261ecSmrg 225805b261ecSmrg# AC_PATH_MAGIC 225905b261ecSmrg# ------------- 226005b261ecSmrg# find a file program which can recognize a shared library 226105b261ecSmrgAC_DEFUN([AC_PATH_MAGIC], 226205b261ecSmrg[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 226305b261ecSmrgif test -z "$lt_cv_path_MAGIC_CMD"; then 226405b261ecSmrg if test -n "$ac_tool_prefix"; then 226505b261ecSmrg AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) 226605b261ecSmrg else 226705b261ecSmrg MAGIC_CMD=: 226805b261ecSmrg fi 226905b261ecSmrgfi 227005b261ecSmrg])# AC_PATH_MAGIC 227105b261ecSmrg 227205b261ecSmrg 227305b261ecSmrg# AC_PROG_LD 227405b261ecSmrg# ---------- 227505b261ecSmrg# find the pathname to the GNU or non-GNU linker 227605b261ecSmrgAC_DEFUN([AC_PROG_LD], 227705b261ecSmrg[AC_ARG_WITH([gnu-ld], 227805b261ecSmrg [AC_HELP_STRING([--with-gnu-ld], 227905b261ecSmrg [assume the C compiler uses GNU ld @<:@default=no@:>@])], 228005b261ecSmrg [test "$withval" = no || with_gnu_ld=yes], 228105b261ecSmrg [with_gnu_ld=no]) 228205b261ecSmrgAC_REQUIRE([LT_AC_PROG_SED])dnl 228305b261ecSmrgAC_REQUIRE([AC_PROG_CC])dnl 228405b261ecSmrgAC_REQUIRE([AC_CANONICAL_HOST])dnl 228505b261ecSmrgAC_REQUIRE([AC_CANONICAL_BUILD])dnl 228605b261ecSmrgac_prog=ld 228705b261ecSmrgif test "$GCC" = yes; then 228805b261ecSmrg # Check if gcc -print-prog-name=ld gives a path. 228905b261ecSmrg AC_MSG_CHECKING([for ld used by $CC]) 229005b261ecSmrg case $host in 229105b261ecSmrg *-*-mingw*) 229205b261ecSmrg # gcc leaves a trailing carriage return which upsets mingw 229305b261ecSmrg ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 229405b261ecSmrg *) 229505b261ecSmrg ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 229605b261ecSmrg esac 229705b261ecSmrg case $ac_prog in 229805b261ecSmrg # Accept absolute paths. 229905b261ecSmrg [[\\/]]* | ?:[[\\/]]*) 230005b261ecSmrg re_direlt='/[[^/]][[^/]]*/\.\./' 230105b261ecSmrg # Canonicalize the pathname of ld 230205b261ecSmrg ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 230305b261ecSmrg while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 230405b261ecSmrg ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 230505b261ecSmrg done 230605b261ecSmrg test -z "$LD" && LD="$ac_prog" 230705b261ecSmrg ;; 230805b261ecSmrg "") 230905b261ecSmrg # If it fails, then pretend we aren't using GCC. 231005b261ecSmrg ac_prog=ld 231105b261ecSmrg ;; 231205b261ecSmrg *) 231305b261ecSmrg # If it is relative, then search for the first ld in PATH. 231405b261ecSmrg with_gnu_ld=unknown 231505b261ecSmrg ;; 231605b261ecSmrg esac 231705b261ecSmrgelif test "$with_gnu_ld" = yes; then 231805b261ecSmrg AC_MSG_CHECKING([for GNU ld]) 231905b261ecSmrgelse 232005b261ecSmrg AC_MSG_CHECKING([for non-GNU ld]) 232105b261ecSmrgfi 232205b261ecSmrgAC_CACHE_VAL(lt_cv_path_LD, 232305b261ecSmrg[if test -z "$LD"; then 232405b261ecSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 232505b261ecSmrg for ac_dir in $PATH; do 232605b261ecSmrg IFS="$lt_save_ifs" 232705b261ecSmrg test -z "$ac_dir" && ac_dir=. 232805b261ecSmrg if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 232905b261ecSmrg lt_cv_path_LD="$ac_dir/$ac_prog" 233005b261ecSmrg # Check to see if the program is GNU ld. I'd rather use --version, 233105b261ecSmrg # but apparently some variants of GNU ld only accept -v. 233205b261ecSmrg # Break only if it was the GNU/non-GNU ld that we prefer. 233305b261ecSmrg case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 233405b261ecSmrg *GNU* | *'with BFD'*) 233505b261ecSmrg test "$with_gnu_ld" != no && break 233605b261ecSmrg ;; 233705b261ecSmrg *) 233805b261ecSmrg test "$with_gnu_ld" != yes && break 233905b261ecSmrg ;; 234005b261ecSmrg esac 234105b261ecSmrg fi 234205b261ecSmrg done 234305b261ecSmrg IFS="$lt_save_ifs" 234405b261ecSmrgelse 234505b261ecSmrg lt_cv_path_LD="$LD" # Let the user override the test with a path. 234605b261ecSmrgfi]) 234705b261ecSmrgLD="$lt_cv_path_LD" 234805b261ecSmrgif test -n "$LD"; then 234905b261ecSmrg AC_MSG_RESULT($LD) 235005b261ecSmrgelse 235105b261ecSmrg AC_MSG_RESULT(no) 235205b261ecSmrgfi 235305b261ecSmrgtest -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 235405b261ecSmrgAC_PROG_LD_GNU 235505b261ecSmrg])# AC_PROG_LD 235605b261ecSmrg 235705b261ecSmrg 235805b261ecSmrg# AC_PROG_LD_GNU 235905b261ecSmrg# -------------- 236005b261ecSmrgAC_DEFUN([AC_PROG_LD_GNU], 236105b261ecSmrg[AC_REQUIRE([AC_PROG_EGREP])dnl 236205b261ecSmrgAC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 236305b261ecSmrg[# I'd rather use --version here, but apparently some GNU lds only accept -v. 236405b261ecSmrgcase `$LD -v 2>&1 </dev/null` in 236505b261ecSmrg*GNU* | *'with BFD'*) 236605b261ecSmrg lt_cv_prog_gnu_ld=yes 236705b261ecSmrg ;; 236805b261ecSmrg*) 236905b261ecSmrg lt_cv_prog_gnu_ld=no 237005b261ecSmrg ;; 237105b261ecSmrgesac]) 237205b261ecSmrgwith_gnu_ld=$lt_cv_prog_gnu_ld 237305b261ecSmrg])# AC_PROG_LD_GNU 237405b261ecSmrg 237505b261ecSmrg 237605b261ecSmrg# AC_PROG_LD_RELOAD_FLAG 237705b261ecSmrg# ---------------------- 237805b261ecSmrg# find reload flag for linker 237905b261ecSmrg# -- PORTME Some linkers may need a different reload flag. 238005b261ecSmrgAC_DEFUN([AC_PROG_LD_RELOAD_FLAG], 238105b261ecSmrg[AC_CACHE_CHECK([for $LD option to reload object files], 238205b261ecSmrg lt_cv_ld_reload_flag, 238305b261ecSmrg [lt_cv_ld_reload_flag='-r']) 238405b261ecSmrgreload_flag=$lt_cv_ld_reload_flag 238505b261ecSmrgcase $reload_flag in 238605b261ecSmrg"" | " "*) ;; 238705b261ecSmrg*) reload_flag=" $reload_flag" ;; 238805b261ecSmrgesac 238905b261ecSmrgreload_cmds='$LD$reload_flag -o $output$reload_objs' 239005b261ecSmrgcase $host_os in 239105b261ecSmrg darwin*) 239205b261ecSmrg if test "$GCC" = yes; then 239305b261ecSmrg reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 239405b261ecSmrg else 239505b261ecSmrg reload_cmds='$LD$reload_flag -o $output$reload_objs' 239605b261ecSmrg fi 239705b261ecSmrg ;; 239805b261ecSmrgesac 239905b261ecSmrg])# AC_PROG_LD_RELOAD_FLAG 240005b261ecSmrg 240105b261ecSmrg 240205b261ecSmrg# AC_DEPLIBS_CHECK_METHOD 240305b261ecSmrg# ----------------------- 240405b261ecSmrg# how to check for library dependencies 240505b261ecSmrg# -- PORTME fill in with the dynamic library characteristics 240605b261ecSmrgAC_DEFUN([AC_DEPLIBS_CHECK_METHOD], 240705b261ecSmrg[AC_CACHE_CHECK([how to recognize dependent libraries], 240805b261ecSmrglt_cv_deplibs_check_method, 240905b261ecSmrg[lt_cv_file_magic_cmd='$MAGIC_CMD' 241005b261ecSmrglt_cv_file_magic_test_file= 241105b261ecSmrglt_cv_deplibs_check_method='unknown' 241205b261ecSmrg# Need to set the preceding variable on all platforms that support 241305b261ecSmrg# interlibrary dependencies. 241405b261ecSmrg# 'none' -- dependencies not supported. 241505b261ecSmrg# `unknown' -- same as none, but documents that we really don't know. 241605b261ecSmrg# 'pass_all' -- all dependencies passed with no checks. 241705b261ecSmrg# 'test_compile' -- check by making test program. 241805b261ecSmrg# 'file_magic [[regex]]' -- check by looking for files in library path 241905b261ecSmrg# which responds to the $file_magic_cmd with a given extended regex. 242005b261ecSmrg# If you have `file' or equivalent on your system and you're not sure 242105b261ecSmrg# whether `pass_all' will *always* work, you probably want this one. 242205b261ecSmrg 242305b261ecSmrgcase $host_os in 242405b261ecSmrgaix[[4-9]]*) 242505b261ecSmrg lt_cv_deplibs_check_method=pass_all 242605b261ecSmrg ;; 242705b261ecSmrg 242805b261ecSmrgbeos*) 242905b261ecSmrg lt_cv_deplibs_check_method=pass_all 243005b261ecSmrg ;; 243105b261ecSmrg 243205b261ecSmrgbsdi[[45]]*) 243305b261ecSmrg lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 243405b261ecSmrg lt_cv_file_magic_cmd='/usr/bin/file -L' 243505b261ecSmrg lt_cv_file_magic_test_file=/shlib/libc.so 243605b261ecSmrg ;; 243705b261ecSmrg 243805b261ecSmrgcygwin*) 243905b261ecSmrg # func_win32_libid is a shell function defined in ltmain.sh 244005b261ecSmrg lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 244105b261ecSmrg lt_cv_file_magic_cmd='func_win32_libid' 244205b261ecSmrg ;; 244305b261ecSmrg 244405b261ecSmrgmingw* | pw32*) 244505b261ecSmrg # Base MSYS/MinGW do not provide the 'file' command needed by 244605b261ecSmrg # func_win32_libid shell function, so use a weaker test based on 'objdump', 244705b261ecSmrg # unless we find 'file', for example because we are cross-compiling. 244805b261ecSmrg if ( file / ) >/dev/null 2>&1; then 244905b261ecSmrg lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 245005b261ecSmrg lt_cv_file_magic_cmd='func_win32_libid' 245105b261ecSmrg else 245205b261ecSmrg lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 245305b261ecSmrg lt_cv_file_magic_cmd='$OBJDUMP -f' 245405b261ecSmrg fi 245505b261ecSmrg ;; 245605b261ecSmrg 245705b261ecSmrgdarwin* | rhapsody*) 245805b261ecSmrg lt_cv_deplibs_check_method=pass_all 245905b261ecSmrg ;; 246005b261ecSmrg 246105b261ecSmrgfreebsd* | dragonfly*) 246205b261ecSmrg if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 246305b261ecSmrg case $host_cpu in 246405b261ecSmrg i*86 ) 246505b261ecSmrg # Not sure whether the presence of OpenBSD here was a mistake. 246605b261ecSmrg # Let's accept both of them until this is cleared up. 246705b261ecSmrg lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' 246805b261ecSmrg lt_cv_file_magic_cmd=/usr/bin/file 246905b261ecSmrg lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 247005b261ecSmrg ;; 247105b261ecSmrg esac 247205b261ecSmrg else 247305b261ecSmrg lt_cv_deplibs_check_method=pass_all 247405b261ecSmrg fi 247505b261ecSmrg ;; 247605b261ecSmrg 247705b261ecSmrggnu*) 247805b261ecSmrg lt_cv_deplibs_check_method=pass_all 247905b261ecSmrg ;; 248005b261ecSmrg 248105b261ecSmrghpux10.20* | hpux11*) 248205b261ecSmrg lt_cv_file_magic_cmd=/usr/bin/file 248305b261ecSmrg case $host_cpu in 248405b261ecSmrg ia64*) 248505b261ecSmrg lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' 248605b261ecSmrg lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 248705b261ecSmrg ;; 248805b261ecSmrg hppa*64*) 248905b261ecSmrg [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]'] 249005b261ecSmrg lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 249105b261ecSmrg ;; 249205b261ecSmrg *) 249305b261ecSmrg lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' 249405b261ecSmrg lt_cv_file_magic_test_file=/usr/lib/libc.sl 249505b261ecSmrg ;; 249605b261ecSmrg esac 249705b261ecSmrg ;; 249805b261ecSmrg 249905b261ecSmrginterix[[3-9]]*) 250005b261ecSmrg # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 250105b261ecSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 250205b261ecSmrg ;; 250305b261ecSmrg 250405b261ecSmrgirix5* | irix6* | nonstopux*) 250505b261ecSmrg case $LD in 250605b261ecSmrg *-32|*"-32 ") libmagic=32-bit;; 250705b261ecSmrg *-n32|*"-n32 ") libmagic=N32;; 250805b261ecSmrg *-64|*"-64 ") libmagic=64-bit;; 250905b261ecSmrg *) libmagic=never-match;; 251005b261ecSmrg esac 251105b261ecSmrg lt_cv_deplibs_check_method=pass_all 251205b261ecSmrg ;; 251305b261ecSmrg 251405b261ecSmrg# This must be Linux ELF. 251505b261ecSmrglinux* | k*bsd*-gnu) 251605b261ecSmrg lt_cv_deplibs_check_method=pass_all 251705b261ecSmrg ;; 251805b261ecSmrg 251905b261ecSmrgnetbsd* | netbsdelf*-gnu) 252005b261ecSmrg if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 252105b261ecSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 252205b261ecSmrg else 252305b261ecSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 252405b261ecSmrg fi 252505b261ecSmrg ;; 252605b261ecSmrg 252705b261ecSmrgnewos6*) 252805b261ecSmrg lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' 252905b261ecSmrg lt_cv_file_magic_cmd=/usr/bin/file 253005b261ecSmrg lt_cv_file_magic_test_file=/usr/lib/libnls.so 253105b261ecSmrg ;; 253205b261ecSmrg 253305b261ecSmrgnto-qnx*) 253405b261ecSmrg lt_cv_deplibs_check_method=unknown 253505b261ecSmrg ;; 253605b261ecSmrg 253705b261ecSmrgopenbsd*) 253805b261ecSmrg if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 253905b261ecSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 254005b261ecSmrg else 254105b261ecSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 254205b261ecSmrg fi 254305b261ecSmrg ;; 254405b261ecSmrg 254505b261ecSmrgosf3* | osf4* | osf5*) 254605b261ecSmrg lt_cv_deplibs_check_method=pass_all 254705b261ecSmrg ;; 254805b261ecSmrg 254905b261ecSmrgrdos*) 255005b261ecSmrg lt_cv_deplibs_check_method=pass_all 255105b261ecSmrg ;; 255205b261ecSmrg 255305b261ecSmrgsolaris*) 255405b261ecSmrg lt_cv_deplibs_check_method=pass_all 255505b261ecSmrg ;; 255605b261ecSmrg 255705b261ecSmrgsysv4 | sysv4.3*) 255805b261ecSmrg case $host_vendor in 255905b261ecSmrg motorola) 256005b261ecSmrg 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]]' 256105b261ecSmrg lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 256205b261ecSmrg ;; 256305b261ecSmrg ncr) 256405b261ecSmrg lt_cv_deplibs_check_method=pass_all 256505b261ecSmrg ;; 256605b261ecSmrg sequent) 256705b261ecSmrg lt_cv_file_magic_cmd='/bin/file' 256805b261ecSmrg lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' 256905b261ecSmrg ;; 257005b261ecSmrg sni) 257105b261ecSmrg lt_cv_file_magic_cmd='/bin/file' 257205b261ecSmrg lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" 257305b261ecSmrg lt_cv_file_magic_test_file=/lib/libc.so 257405b261ecSmrg ;; 257505b261ecSmrg siemens) 257605b261ecSmrg lt_cv_deplibs_check_method=pass_all 257705b261ecSmrg ;; 257805b261ecSmrg pc) 257905b261ecSmrg lt_cv_deplibs_check_method=pass_all 258005b261ecSmrg ;; 258105b261ecSmrg esac 258205b261ecSmrg ;; 258305b261ecSmrg 258405b261ecSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 258505b261ecSmrg lt_cv_deplibs_check_method=pass_all 258605b261ecSmrg ;; 258705b261ecSmrgesac 258805b261ecSmrg]) 258905b261ecSmrgfile_magic_cmd=$lt_cv_file_magic_cmd 259005b261ecSmrgdeplibs_check_method=$lt_cv_deplibs_check_method 259105b261ecSmrgtest -z "$deplibs_check_method" && deplibs_check_method=unknown 259205b261ecSmrg])# AC_DEPLIBS_CHECK_METHOD 259305b261ecSmrg 259405b261ecSmrg 259505b261ecSmrg# AC_PROG_NM 259605b261ecSmrg# ---------- 259705b261ecSmrg# find the pathname to a BSD-compatible name lister 259805b261ecSmrgAC_DEFUN([AC_PROG_NM], 259905b261ecSmrg[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, 260005b261ecSmrg[if test -n "$NM"; then 260105b261ecSmrg # Let the user override the test. 260205b261ecSmrg lt_cv_path_NM="$NM" 260305b261ecSmrgelse 260405b261ecSmrg lt_nm_to_check="${ac_tool_prefix}nm" 260505b261ecSmrg if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 260605b261ecSmrg lt_nm_to_check="$lt_nm_to_check nm" 260705b261ecSmrg fi 260805b261ecSmrg for lt_tmp_nm in $lt_nm_to_check; do 260905b261ecSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 261005b261ecSmrg for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 261105b261ecSmrg IFS="$lt_save_ifs" 261205b261ecSmrg test -z "$ac_dir" && ac_dir=. 261305b261ecSmrg tmp_nm="$ac_dir/$lt_tmp_nm" 261405b261ecSmrg if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 261505b261ecSmrg # Check to see if the nm accepts a BSD-compat flag. 261605b261ecSmrg # Adding the `sed 1q' prevents false positives on HP-UX, which says: 261705b261ecSmrg # nm: unknown option "B" ignored 261805b261ecSmrg # Tru64's nm complains that /dev/null is an invalid object file 261905b261ecSmrg case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 262005b261ecSmrg */dev/null* | *'Invalid file or object type'*) 262105b261ecSmrg lt_cv_path_NM="$tmp_nm -B" 262205b261ecSmrg break 262305b261ecSmrg ;; 262405b261ecSmrg *) 262505b261ecSmrg case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 262605b261ecSmrg */dev/null*) 262705b261ecSmrg lt_cv_path_NM="$tmp_nm -p" 262805b261ecSmrg break 262905b261ecSmrg ;; 263005b261ecSmrg *) 263105b261ecSmrg lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 263205b261ecSmrg continue # so that we can try to find one that supports BSD flags 263305b261ecSmrg ;; 263405b261ecSmrg esac 263505b261ecSmrg ;; 263605b261ecSmrg esac 263705b261ecSmrg fi 263805b261ecSmrg done 263905b261ecSmrg IFS="$lt_save_ifs" 264005b261ecSmrg done 264105b261ecSmrg test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 264205b261ecSmrgfi]) 264305b261ecSmrgNM="$lt_cv_path_NM" 264405b261ecSmrg])# AC_PROG_NM 264505b261ecSmrg 264605b261ecSmrg 264705b261ecSmrg# AC_CHECK_LIBM 264805b261ecSmrg# ------------- 264905b261ecSmrg# check for math library 265005b261ecSmrgAC_DEFUN([AC_CHECK_LIBM], 265105b261ecSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 265205b261ecSmrgLIBM= 265305b261ecSmrgcase $host in 265405b261ecSmrg*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) 265505b261ecSmrg # These system don't have libm, or don't need it 265605b261ecSmrg ;; 265705b261ecSmrg*-ncr-sysv4.3*) 265805b261ecSmrg AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") 265905b261ecSmrg AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") 266005b261ecSmrg ;; 266105b261ecSmrg*) 266205b261ecSmrg AC_CHECK_LIB(m, cos, LIBM="-lm") 266305b261ecSmrg ;; 266405b261ecSmrgesac 266505b261ecSmrg])# AC_CHECK_LIBM 266605b261ecSmrg 266705b261ecSmrg 266805b261ecSmrg# AC_LIBLTDL_CONVENIENCE([DIRECTORY]) 266905b261ecSmrg# ----------------------------------- 267005b261ecSmrg# sets LIBLTDL to the link flags for the libltdl convenience library and 267105b261ecSmrg# LTDLINCL to the include flags for the libltdl header and adds 267205b261ecSmrg# --enable-ltdl-convenience to the configure arguments. Note that 267305b261ecSmrg# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, 267405b261ecSmrg# it is assumed to be `libltdl'. LIBLTDL will be prefixed with 267505b261ecSmrg# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' 267605b261ecSmrg# (note the single quotes!). If your package is not flat and you're not 267705b261ecSmrg# using automake, define top_builddir and top_srcdir appropriately in 267805b261ecSmrg# the Makefiles. 267905b261ecSmrgAC_DEFUN([AC_LIBLTDL_CONVENIENCE], 268005b261ecSmrg[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 268105b261ecSmrg case $enable_ltdl_convenience in 268205b261ecSmrg no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; 268305b261ecSmrg "") enable_ltdl_convenience=yes 268405b261ecSmrg ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; 268505b261ecSmrg esac 268605b261ecSmrg LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la 268705b261ecSmrg LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) 268805b261ecSmrg # For backwards non-gettext consistent compatibility... 268905b261ecSmrg INCLTDL="$LTDLINCL" 269005b261ecSmrg])# AC_LIBLTDL_CONVENIENCE 269105b261ecSmrg 269205b261ecSmrg 269305b261ecSmrg# AC_LIBLTDL_INSTALLABLE([DIRECTORY]) 269405b261ecSmrg# ----------------------------------- 269505b261ecSmrg# sets LIBLTDL to the link flags for the libltdl installable library and 269605b261ecSmrg# LTDLINCL to the include flags for the libltdl header and adds 269705b261ecSmrg# --enable-ltdl-install to the configure arguments. Note that 269805b261ecSmrg# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, 269905b261ecSmrg# and an installed libltdl is not found, it is assumed to be `libltdl'. 270005b261ecSmrg# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with 270105b261ecSmrg# '${top_srcdir}/' (note the single quotes!). If your package is not 270205b261ecSmrg# flat and you're not using automake, define top_builddir and top_srcdir 270305b261ecSmrg# appropriately in the Makefiles. 270405b261ecSmrg# In the future, this macro may have to be called after AC_PROG_LIBTOOL. 270505b261ecSmrgAC_DEFUN([AC_LIBLTDL_INSTALLABLE], 270605b261ecSmrg[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 270705b261ecSmrg AC_CHECK_LIB(ltdl, lt_dlinit, 270805b261ecSmrg [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], 270905b261ecSmrg [if test x"$enable_ltdl_install" = xno; then 271005b261ecSmrg AC_MSG_WARN([libltdl not installed, but installation disabled]) 271105b261ecSmrg else 271205b261ecSmrg enable_ltdl_install=yes 271305b261ecSmrg fi 271405b261ecSmrg ]) 271505b261ecSmrg if test x"$enable_ltdl_install" = x"yes"; then 271605b261ecSmrg ac_configure_args="$ac_configure_args --enable-ltdl-install" 271705b261ecSmrg LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la 271805b261ecSmrg LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) 271905b261ecSmrg else 272005b261ecSmrg ac_configure_args="$ac_configure_args --enable-ltdl-install=no" 272105b261ecSmrg LIBLTDL="-lltdl" 272205b261ecSmrg LTDLINCL= 272305b261ecSmrg fi 272405b261ecSmrg # For backwards non-gettext consistent compatibility... 272505b261ecSmrg INCLTDL="$LTDLINCL" 272605b261ecSmrg])# AC_LIBLTDL_INSTALLABLE 272705b261ecSmrg 272805b261ecSmrg 272905b261ecSmrg# AC_LIBTOOL_CXX 273005b261ecSmrg# -------------- 273105b261ecSmrg# enable support for C++ libraries 273205b261ecSmrgAC_DEFUN([AC_LIBTOOL_CXX], 273305b261ecSmrg[AC_REQUIRE([_LT_AC_LANG_CXX]) 273405b261ecSmrg])# AC_LIBTOOL_CXX 273505b261ecSmrg 273605b261ecSmrg 273705b261ecSmrg# _LT_AC_LANG_CXX 273805b261ecSmrg# --------------- 273905b261ecSmrgAC_DEFUN([_LT_AC_LANG_CXX], 274005b261ecSmrg[AC_REQUIRE([AC_PROG_CXX]) 274105b261ecSmrgAC_REQUIRE([_LT_AC_PROG_CXXCPP]) 274205b261ecSmrg_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) 274305b261ecSmrg])# _LT_AC_LANG_CXX 274405b261ecSmrg 274505b261ecSmrg# _LT_AC_PROG_CXXCPP 274605b261ecSmrg# ------------------ 274705b261ecSmrgAC_DEFUN([_LT_AC_PROG_CXXCPP], 274805b261ecSmrg[ 274905b261ecSmrgAC_REQUIRE([AC_PROG_CXX]) 275005b261ecSmrgif test -n "$CXX" && ( test "X$CXX" != "Xno" && 275105b261ecSmrg ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 275205b261ecSmrg (test "X$CXX" != "Xg++"))) ; then 275305b261ecSmrg AC_PROG_CXXCPP 275405b261ecSmrgfi 275505b261ecSmrg])# _LT_AC_PROG_CXXCPP 275605b261ecSmrg 275705b261ecSmrg# AC_LIBTOOL_F77 275805b261ecSmrg# -------------- 275905b261ecSmrg# enable support for Fortran 77 libraries 276005b261ecSmrgAC_DEFUN([AC_LIBTOOL_F77], 276105b261ecSmrg[AC_REQUIRE([_LT_AC_LANG_F77]) 276205b261ecSmrg])# AC_LIBTOOL_F77 276305b261ecSmrg 276405b261ecSmrg 276505b261ecSmrg# _LT_AC_LANG_F77 276605b261ecSmrg# --------------- 276705b261ecSmrgAC_DEFUN([_LT_AC_LANG_F77], 276805b261ecSmrg[AC_REQUIRE([AC_PROG_F77]) 276905b261ecSmrg_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) 277005b261ecSmrg])# _LT_AC_LANG_F77 277105b261ecSmrg 277205b261ecSmrg 277305b261ecSmrg# AC_LIBTOOL_GCJ 277405b261ecSmrg# -------------- 277505b261ecSmrg# enable support for GCJ libraries 277605b261ecSmrgAC_DEFUN([AC_LIBTOOL_GCJ], 277705b261ecSmrg[AC_REQUIRE([_LT_AC_LANG_GCJ]) 277805b261ecSmrg])# AC_LIBTOOL_GCJ 277905b261ecSmrg 278005b261ecSmrg 278105b261ecSmrg# _LT_AC_LANG_GCJ 278205b261ecSmrg# --------------- 278305b261ecSmrgAC_DEFUN([_LT_AC_LANG_GCJ], 278405b261ecSmrg[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], 278505b261ecSmrg [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], 278605b261ecSmrg [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], 278705b261ecSmrg [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], 278805b261ecSmrg [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], 278905b261ecSmrg [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) 279005b261ecSmrg_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) 279105b261ecSmrg])# _LT_AC_LANG_GCJ 279205b261ecSmrg 279305b261ecSmrg 279405b261ecSmrg# AC_LIBTOOL_RC 279505b261ecSmrg# ------------- 279605b261ecSmrg# enable support for Windows resource files 279705b261ecSmrgAC_DEFUN([AC_LIBTOOL_RC], 279805b261ecSmrg[AC_REQUIRE([LT_AC_PROG_RC]) 279905b261ecSmrg_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) 280005b261ecSmrg])# AC_LIBTOOL_RC 280105b261ecSmrg 280205b261ecSmrg 280305b261ecSmrg# AC_LIBTOOL_LANG_C_CONFIG 280405b261ecSmrg# ------------------------ 280505b261ecSmrg# Ensure that the configuration vars for the C compiler are 280605b261ecSmrg# suitably defined. Those variables are subsequently used by 280705b261ecSmrg# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 280805b261ecSmrgAC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) 280905b261ecSmrgAC_DEFUN([_LT_AC_LANG_C_CONFIG], 281005b261ecSmrg[lt_save_CC="$CC" 281105b261ecSmrgAC_LANG_PUSH(C) 281205b261ecSmrg 281305b261ecSmrg# Source file extension for C test sources. 281405b261ecSmrgac_ext=c 281505b261ecSmrg 281605b261ecSmrg# Object file extension for compiled C test sources. 281705b261ecSmrgobjext=o 281805b261ecSmrg_LT_AC_TAGVAR(objext, $1)=$objext 281905b261ecSmrg 282005b261ecSmrg# Code to be used in simple compile tests 282105b261ecSmrglt_simple_compile_test_code="int some_variable = 0;" 282205b261ecSmrg 282305b261ecSmrg# Code to be used in simple link tests 282405b261ecSmrglt_simple_link_test_code='int main(){return(0);}' 282505b261ecSmrg 282605b261ecSmrg_LT_AC_SYS_COMPILER 282705b261ecSmrg 282805b261ecSmrg# save warnings/boilerplate of simple test code 282905b261ecSmrg_LT_COMPILER_BOILERPLATE 283005b261ecSmrg_LT_LINKER_BOILERPLATE 283105b261ecSmrg 283205b261ecSmrgAC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) 283305b261ecSmrgAC_LIBTOOL_PROG_COMPILER_PIC($1) 283405b261ecSmrgAC_LIBTOOL_PROG_CC_C_O($1) 283505b261ecSmrgAC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 283605b261ecSmrgAC_LIBTOOL_PROG_LD_SHLIBS($1) 283705b261ecSmrgAC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 283805b261ecSmrgAC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 283905b261ecSmrgAC_LIBTOOL_SYS_LIB_STRIP 284005b261ecSmrgAC_LIBTOOL_DLOPEN_SELF 284105b261ecSmrg 284205b261ecSmrg# Report which library types will actually be built 284305b261ecSmrgAC_MSG_CHECKING([if libtool supports shared libraries]) 284405b261ecSmrgAC_MSG_RESULT([$can_build_shared]) 284505b261ecSmrg 284605b261ecSmrgAC_MSG_CHECKING([whether to build shared libraries]) 284705b261ecSmrgtest "$can_build_shared" = "no" && enable_shared=no 284805b261ecSmrg 284905b261ecSmrg# On AIX, shared libraries and static libraries use the same namespace, and 285005b261ecSmrg# are all built from PIC. 285105b261ecSmrgcase $host_os in 285205b261ecSmrgaix3*) 285305b261ecSmrg test "$enable_shared" = yes && enable_static=no 285405b261ecSmrg if test -n "$RANLIB"; then 285505b261ecSmrg archive_cmds="$archive_cmds~\$RANLIB \$lib" 285605b261ecSmrg postinstall_cmds='$RANLIB $lib' 285705b261ecSmrg fi 285805b261ecSmrg ;; 285905b261ecSmrg 286005b261ecSmrgaix[[4-9]]*) 286105b261ecSmrg if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 286205b261ecSmrg test "$enable_shared" = yes && enable_static=no 286305b261ecSmrg fi 286405b261ecSmrg ;; 286505b261ecSmrgesac 286605b261ecSmrgAC_MSG_RESULT([$enable_shared]) 286705b261ecSmrg 286805b261ecSmrgAC_MSG_CHECKING([whether to build static libraries]) 286905b261ecSmrg# Make sure either enable_shared or enable_static is yes. 287005b261ecSmrgtest "$enable_shared" = yes || enable_static=yes 287105b261ecSmrgAC_MSG_RESULT([$enable_static]) 287205b261ecSmrg 287305b261ecSmrgAC_LIBTOOL_CONFIG($1) 287405b261ecSmrg 287505b261ecSmrgAC_LANG_POP 287605b261ecSmrgCC="$lt_save_CC" 287705b261ecSmrg])# AC_LIBTOOL_LANG_C_CONFIG 287805b261ecSmrg 287905b261ecSmrg 288005b261ecSmrg# AC_LIBTOOL_LANG_CXX_CONFIG 288105b261ecSmrg# -------------------------- 288205b261ecSmrg# Ensure that the configuration vars for the C compiler are 288305b261ecSmrg# suitably defined. Those variables are subsequently used by 288405b261ecSmrg# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 288505b261ecSmrgAC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) 288605b261ecSmrgAC_DEFUN([_LT_AC_LANG_CXX_CONFIG], 288705b261ecSmrg[AC_LANG_PUSH(C++) 288805b261ecSmrgAC_REQUIRE([AC_PROG_CXX]) 288905b261ecSmrgAC_REQUIRE([_LT_AC_PROG_CXXCPP]) 289005b261ecSmrg 289105b261ecSmrg_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 289205b261ecSmrg_LT_AC_TAGVAR(allow_undefined_flag, $1)= 289305b261ecSmrg_LT_AC_TAGVAR(always_export_symbols, $1)=no 289405b261ecSmrg_LT_AC_TAGVAR(archive_expsym_cmds, $1)= 289505b261ecSmrg_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 289605b261ecSmrg_LT_AC_TAGVAR(hardcode_direct, $1)=no 289705b261ecSmrg_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 289805b261ecSmrg_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 289905b261ecSmrg_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 290005b261ecSmrg_LT_AC_TAGVAR(hardcode_minus_L, $1)=no 290105b261ecSmrg_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 290205b261ecSmrg_LT_AC_TAGVAR(hardcode_automatic, $1)=no 290305b261ecSmrg_LT_AC_TAGVAR(module_cmds, $1)= 290405b261ecSmrg_LT_AC_TAGVAR(module_expsym_cmds, $1)= 290505b261ecSmrg_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown 290605b261ecSmrg_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 290705b261ecSmrg_LT_AC_TAGVAR(no_undefined_flag, $1)= 290805b261ecSmrg_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 290905b261ecSmrg_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no 291005b261ecSmrg 291105b261ecSmrg# Dependencies to place before and after the object being linked: 291205b261ecSmrg_LT_AC_TAGVAR(predep_objects, $1)= 291305b261ecSmrg_LT_AC_TAGVAR(postdep_objects, $1)= 291405b261ecSmrg_LT_AC_TAGVAR(predeps, $1)= 291505b261ecSmrg_LT_AC_TAGVAR(postdeps, $1)= 291605b261ecSmrg_LT_AC_TAGVAR(compiler_lib_search_path, $1)= 291705b261ecSmrg_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)= 291805b261ecSmrg 291905b261ecSmrg# Source file extension for C++ test sources. 292005b261ecSmrgac_ext=cpp 292105b261ecSmrg 292205b261ecSmrg# Object file extension for compiled C++ test sources. 292305b261ecSmrgobjext=o 292405b261ecSmrg_LT_AC_TAGVAR(objext, $1)=$objext 292505b261ecSmrg 292605b261ecSmrg# Code to be used in simple compile tests 292705b261ecSmrglt_simple_compile_test_code="int some_variable = 0;" 292805b261ecSmrg 292905b261ecSmrg# Code to be used in simple link tests 293005b261ecSmrglt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' 293105b261ecSmrg 293205b261ecSmrg# ltmain only uses $CC for tagged configurations so make sure $CC is set. 293305b261ecSmrg_LT_AC_SYS_COMPILER 293405b261ecSmrg 293505b261ecSmrg# save warnings/boilerplate of simple test code 293605b261ecSmrg_LT_COMPILER_BOILERPLATE 293705b261ecSmrg_LT_LINKER_BOILERPLATE 293805b261ecSmrg 293905b261ecSmrg# Allow CC to be a program name with arguments. 294005b261ecSmrglt_save_CC=$CC 294105b261ecSmrglt_save_LD=$LD 294205b261ecSmrglt_save_GCC=$GCC 294305b261ecSmrgGCC=$GXX 294405b261ecSmrglt_save_with_gnu_ld=$with_gnu_ld 294505b261ecSmrglt_save_path_LD=$lt_cv_path_LD 294605b261ecSmrgif test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 294705b261ecSmrg lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 294805b261ecSmrgelse 294905b261ecSmrg $as_unset lt_cv_prog_gnu_ld 295005b261ecSmrgfi 295105b261ecSmrgif test -n "${lt_cv_path_LDCXX+set}"; then 295205b261ecSmrg lt_cv_path_LD=$lt_cv_path_LDCXX 295305b261ecSmrgelse 295405b261ecSmrg $as_unset lt_cv_path_LD 295505b261ecSmrgfi 295605b261ecSmrgtest -z "${LDCXX+set}" || LD=$LDCXX 295705b261ecSmrgCC=${CXX-"c++"} 295805b261ecSmrgcompiler=$CC 295905b261ecSmrg_LT_AC_TAGVAR(compiler, $1)=$CC 296005b261ecSmrg_LT_CC_BASENAME([$compiler]) 296105b261ecSmrg 296205b261ecSmrg# We don't want -fno-exception wen compiling C++ code, so set the 296305b261ecSmrg# no_builtin_flag separately 296405b261ecSmrgif test "$GXX" = yes; then 296505b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 296605b261ecSmrgelse 296705b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 296805b261ecSmrgfi 296905b261ecSmrg 297005b261ecSmrgif test "$GXX" = yes; then 297105b261ecSmrg # Set up default GNU C++ configuration 297205b261ecSmrg 297305b261ecSmrg AC_PROG_LD 297405b261ecSmrg 297505b261ecSmrg # Check if GNU C++ uses GNU ld as the underlying linker, since the 297605b261ecSmrg # archiving commands below assume that GNU ld is being used. 297705b261ecSmrg if test "$with_gnu_ld" = yes; then 297805b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 297905b261ecSmrg _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' 298005b261ecSmrg 298105b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 298205b261ecSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 298305b261ecSmrg 298405b261ecSmrg # If archive_cmds runs LD, not CC, wlarc should be empty 298505b261ecSmrg # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 298605b261ecSmrg # investigate it a little bit more. (MM) 298705b261ecSmrg wlarc='${wl}' 298805b261ecSmrg 298905b261ecSmrg # ancient GNU ld didn't support --whole-archive et. al. 299005b261ecSmrg if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 299105b261ecSmrg grep 'no-whole-archive' > /dev/null; then 299205b261ecSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 299305b261ecSmrg else 299405b261ecSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 299505b261ecSmrg fi 299605b261ecSmrg else 299705b261ecSmrg with_gnu_ld=no 299805b261ecSmrg wlarc= 299905b261ecSmrg 300005b261ecSmrg # A generic and very simple default shared library creation 300105b261ecSmrg # command for GNU C++ for the case where it uses the native 300205b261ecSmrg # linker, instead of GNU ld. If possible, this setting should 300305b261ecSmrg # overridden to take advantage of the native linker features on 300405b261ecSmrg # the platform it is being used on. 300505b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 300605b261ecSmrg fi 300705b261ecSmrg 300805b261ecSmrg # Commands to make compiler produce verbose output that lists 300905b261ecSmrg # what "hidden" libraries, object files and flags are used when 301005b261ecSmrg # linking a shared library. 301105b261ecSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 301205b261ecSmrg 301305b261ecSmrgelse 301405b261ecSmrg GXX=no 301505b261ecSmrg with_gnu_ld=no 301605b261ecSmrg wlarc= 301705b261ecSmrgfi 301805b261ecSmrg 301905b261ecSmrg# PORTME: fill in a description of your system's C++ link characteristics 302005b261ecSmrgAC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 302105b261ecSmrg_LT_AC_TAGVAR(ld_shlibs, $1)=yes 302205b261ecSmrgcase $host_os in 302305b261ecSmrg aix3*) 302405b261ecSmrg # FIXME: insert proper C++ library support 302505b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 302605b261ecSmrg ;; 302705b261ecSmrg aix[[4-9]]*) 302805b261ecSmrg if test "$host_cpu" = ia64; then 302905b261ecSmrg # On IA64, the linker does run time linking by default, so we don't 303005b261ecSmrg # have to do anything special. 303105b261ecSmrg aix_use_runtimelinking=no 303205b261ecSmrg exp_sym_flag='-Bexport' 303305b261ecSmrg no_entry_flag="" 303405b261ecSmrg else 303505b261ecSmrg aix_use_runtimelinking=no 303605b261ecSmrg 303705b261ecSmrg # Test if we are trying to use run time linking or normal 303805b261ecSmrg # AIX style linking. If -brtl is somewhere in LDFLAGS, we 303905b261ecSmrg # need to do runtime linking. 304005b261ecSmrg case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 304105b261ecSmrg for ld_flag in $LDFLAGS; do 304205b261ecSmrg case $ld_flag in 304305b261ecSmrg *-brtl*) 304405b261ecSmrg aix_use_runtimelinking=yes 304505b261ecSmrg break 304605b261ecSmrg ;; 304705b261ecSmrg esac 304805b261ecSmrg done 304905b261ecSmrg ;; 305005b261ecSmrg esac 305105b261ecSmrg 305205b261ecSmrg exp_sym_flag='-bexport' 305305b261ecSmrg no_entry_flag='-bnoentry' 305405b261ecSmrg fi 305505b261ecSmrg 305605b261ecSmrg # When large executables or shared objects are built, AIX ld can 305705b261ecSmrg # have problems creating the table of contents. If linking a library 305805b261ecSmrg # or program results in "error TOC overflow" add -mminimal-toc to 305905b261ecSmrg # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 306005b261ecSmrg # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 306105b261ecSmrg 306205b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='' 306305b261ecSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 306405b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 306505b261ecSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 306605b261ecSmrg 306705b261ecSmrg if test "$GXX" = yes; then 306805b261ecSmrg case $host_os in aix4.[[012]]|aix4.[[012]].*) 306905b261ecSmrg # We only want to do this on AIX 4.2 and lower, the check 307005b261ecSmrg # below for broken collect2 doesn't work under 4.3+ 307105b261ecSmrg collect2name=`${CC} -print-prog-name=collect2` 307205b261ecSmrg if test -f "$collect2name" && \ 307305b261ecSmrg strings "$collect2name" | grep resolve_lib_name >/dev/null 307405b261ecSmrg then 307505b261ecSmrg # We have reworked collect2 307605b261ecSmrg : 307705b261ecSmrg else 307805b261ecSmrg # We have old collect2 307905b261ecSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported 308005b261ecSmrg # It fails to find uninstalled libraries when the uninstalled 308105b261ecSmrg # path is not listed in the libpath. Setting hardcode_minus_L 308205b261ecSmrg # to unsupported forces relinking 308305b261ecSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 308405b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 308505b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 308605b261ecSmrg fi 308705b261ecSmrg ;; 308805b261ecSmrg esac 308905b261ecSmrg shared_flag='-shared' 309005b261ecSmrg if test "$aix_use_runtimelinking" = yes; then 309105b261ecSmrg shared_flag="$shared_flag "'${wl}-G' 309205b261ecSmrg fi 309305b261ecSmrg else 309405b261ecSmrg # not using gcc 309505b261ecSmrg if test "$host_cpu" = ia64; then 309605b261ecSmrg # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 309705b261ecSmrg # chokes on -Wl,-G. The following line is correct: 309805b261ecSmrg shared_flag='-G' 309905b261ecSmrg else 310005b261ecSmrg if test "$aix_use_runtimelinking" = yes; then 310105b261ecSmrg shared_flag='${wl}-G' 310205b261ecSmrg else 310305b261ecSmrg shared_flag='${wl}-bM:SRE' 310405b261ecSmrg fi 310505b261ecSmrg fi 310605b261ecSmrg fi 310705b261ecSmrg 310805b261ecSmrg # It seems that -bexpall does not export symbols beginning with 310905b261ecSmrg # underscore (_), so it is better to generate a list of symbols to export. 311005b261ecSmrg _LT_AC_TAGVAR(always_export_symbols, $1)=yes 311105b261ecSmrg if test "$aix_use_runtimelinking" = yes; then 311205b261ecSmrg # Warning - without using the other runtime loading flags (-brtl), 311305b261ecSmrg # -berok will link without error, but may produce a broken library. 311405b261ecSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' 311505b261ecSmrg # Determine the default libpath from the value encoded in an empty executable. 311605b261ecSmrg _LT_AC_SYS_LIBPATH_AIX 311705b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 311805b261ecSmrg 311905b261ecSmrg _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" 312005b261ecSmrg else 312105b261ecSmrg if test "$host_cpu" = ia64; then 312205b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 312305b261ecSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 312405b261ecSmrg _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" 312505b261ecSmrg else 312605b261ecSmrg # Determine the default libpath from the value encoded in an empty executable. 312705b261ecSmrg _LT_AC_SYS_LIBPATH_AIX 312805b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 312905b261ecSmrg # Warning - without using the other run time loading flags, 313005b261ecSmrg # -berok will link without error, but may produce a broken library. 313105b261ecSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 313205b261ecSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 313305b261ecSmrg # Exported symbols can be pulled into shared objects from archives 313405b261ecSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 313505b261ecSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 313605b261ecSmrg # This is similar to how AIX traditionally builds its shared libraries. 313705b261ecSmrg _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' 313805b261ecSmrg fi 313905b261ecSmrg fi 314005b261ecSmrg ;; 314105b261ecSmrg 314205b261ecSmrg beos*) 314305b261ecSmrg if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 314405b261ecSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 314505b261ecSmrg # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 314605b261ecSmrg # support --undefined. This deserves some investigation. FIXME 314705b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 314805b261ecSmrg else 314905b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 315005b261ecSmrg fi 315105b261ecSmrg ;; 315205b261ecSmrg 315305b261ecSmrg chorus*) 315405b261ecSmrg case $cc_basename in 315505b261ecSmrg *) 315605b261ecSmrg # FIXME: insert proper C++ library support 315705b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 315805b261ecSmrg ;; 315905b261ecSmrg esac 316005b261ecSmrg ;; 316105b261ecSmrg 316205b261ecSmrg cygwin* | mingw* | pw32*) 316305b261ecSmrg # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 316405b261ecSmrg # as there is no search path for DLLs. 316505b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 316605b261ecSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 316705b261ecSmrg _LT_AC_TAGVAR(always_export_symbols, $1)=no 316805b261ecSmrg _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 316905b261ecSmrg 317005b261ecSmrg if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 317105b261ecSmrg _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' 317205b261ecSmrg # If the export-symbols file already is a .def file (1st line 317305b261ecSmrg # is EXPORTS), use it as is; otherwise, prepend... 317405b261ecSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 317505b261ecSmrg cp $export_symbols $output_objdir/$soname.def; 317605b261ecSmrg else 317705b261ecSmrg echo EXPORTS > $output_objdir/$soname.def; 317805b261ecSmrg cat $export_symbols >> $output_objdir/$soname.def; 317905b261ecSmrg fi~ 318005b261ecSmrg $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' 318105b261ecSmrg else 318205b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 318305b261ecSmrg fi 318405b261ecSmrg ;; 318505b261ecSmrg darwin* | rhapsody*) 318605b261ecSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 318705b261ecSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no 318805b261ecSmrg _LT_AC_TAGVAR(hardcode_automatic, $1)=yes 318905b261ecSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 319005b261ecSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' 319105b261ecSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 319205b261ecSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" 319305b261ecSmrg if test "$GXX" = yes ; then 319405b261ecSmrg output_verbose_link_cmd='echo' 319505b261ecSmrg _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}" 319605b261ecSmrg _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 319705b261ecSmrg _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}" 319805b261ecSmrg _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}" 319905b261ecSmrg if test "$lt_cv_apple_cc_single_mod" != "yes"; then 320005b261ecSmrg _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}" 320105b261ecSmrg _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}" 320205b261ecSmrg fi 320305b261ecSmrg else 320405b261ecSmrg case $cc_basename in 320505b261ecSmrg xlc*) 320605b261ecSmrg output_verbose_link_cmd='echo' 320705b261ecSmrg _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' 320805b261ecSmrg _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 320905b261ecSmrg # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 321005b261ecSmrg _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}' 321105b261ecSmrg _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}' 321205b261ecSmrg ;; 321305b261ecSmrg *) 321405b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 321505b261ecSmrg ;; 321605b261ecSmrg esac 321705b261ecSmrg fi 321805b261ecSmrg ;; 321905b261ecSmrg 322005b261ecSmrg dgux*) 322105b261ecSmrg case $cc_basename in 322205b261ecSmrg ec++*) 322305b261ecSmrg # FIXME: insert proper C++ library support 322405b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 322505b261ecSmrg ;; 322605b261ecSmrg ghcx*) 322705b261ecSmrg # Green Hills C++ Compiler 322805b261ecSmrg # FIXME: insert proper C++ library support 322905b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 323005b261ecSmrg ;; 323105b261ecSmrg *) 323205b261ecSmrg # FIXME: insert proper C++ library support 323305b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 323405b261ecSmrg ;; 323505b261ecSmrg esac 323605b261ecSmrg ;; 323705b261ecSmrg freebsd[[12]]*) 323805b261ecSmrg # C++ shared libraries reported to be fairly broken before switch to ELF 323905b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 324005b261ecSmrg ;; 324105b261ecSmrg freebsd-elf*) 324205b261ecSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 324305b261ecSmrg ;; 324405b261ecSmrg freebsd* | dragonfly*) 324505b261ecSmrg # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 324605b261ecSmrg # conventions 324705b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=yes 324805b261ecSmrg ;; 324905b261ecSmrg gnu*) 325005b261ecSmrg ;; 325105b261ecSmrg hpux9*) 325205b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 325305b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 325405b261ecSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 325505b261ecSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 325605b261ecSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 325705b261ecSmrg # but as the default 325805b261ecSmrg # location of the library. 325905b261ecSmrg 326005b261ecSmrg case $cc_basename in 326105b261ecSmrg CC*) 326205b261ecSmrg # FIXME: insert proper C++ library support 326305b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 326405b261ecSmrg ;; 326505b261ecSmrg aCC*) 326605b261ecSmrg _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' 326705b261ecSmrg # Commands to make compiler produce verbose output that lists 326805b261ecSmrg # what "hidden" libraries, object files and flags are used when 326905b261ecSmrg # linking a shared library. 327005b261ecSmrg # 327105b261ecSmrg # There doesn't appear to be a way to prevent this compiler from 327205b261ecSmrg # explicitly linking system object files so we need to strip them 327305b261ecSmrg # from the output so that they don't get included in the library 327405b261ecSmrg # dependencies. 327505b261ecSmrg 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' 327605b261ecSmrg ;; 327705b261ecSmrg *) 327805b261ecSmrg if test "$GXX" = yes; then 327905b261ecSmrg _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' 328005b261ecSmrg else 328105b261ecSmrg # FIXME: insert proper C++ library support 328205b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 328305b261ecSmrg fi 328405b261ecSmrg ;; 328505b261ecSmrg esac 328605b261ecSmrg ;; 328705b261ecSmrg hpux10*|hpux11*) 328805b261ecSmrg if test $with_gnu_ld = no; then 328905b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 329005b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 329105b261ecSmrg 329205b261ecSmrg case $host_cpu in 329305b261ecSmrg hppa*64*|ia64*) ;; 329405b261ecSmrg *) 329505b261ecSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 329605b261ecSmrg ;; 329705b261ecSmrg esac 329805b261ecSmrg fi 329905b261ecSmrg case $host_cpu in 330005b261ecSmrg hppa*64*|ia64*) 330105b261ecSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no 330205b261ecSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 330305b261ecSmrg ;; 330405b261ecSmrg *) 330505b261ecSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 330605b261ecSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 330705b261ecSmrg # but as the default 330805b261ecSmrg # location of the library. 330905b261ecSmrg ;; 331005b261ecSmrg esac 331105b261ecSmrg 331205b261ecSmrg case $cc_basename in 331305b261ecSmrg CC*) 331405b261ecSmrg # FIXME: insert proper C++ library support 331505b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 331605b261ecSmrg ;; 331705b261ecSmrg aCC*) 331805b261ecSmrg case $host_cpu in 331905b261ecSmrg hppa*64*) 332005b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 332105b261ecSmrg ;; 332205b261ecSmrg ia64*) 332305b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 332405b261ecSmrg ;; 332505b261ecSmrg *) 332605b261ecSmrg _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' 332705b261ecSmrg ;; 332805b261ecSmrg esac 332905b261ecSmrg # Commands to make compiler produce verbose output that lists 333005b261ecSmrg # what "hidden" libraries, object files and flags are used when 333105b261ecSmrg # linking a shared library. 333205b261ecSmrg # 333305b261ecSmrg # There doesn't appear to be a way to prevent this compiler from 333405b261ecSmrg # explicitly linking system object files so we need to strip them 333505b261ecSmrg # from the output so that they don't get included in the library 333605b261ecSmrg # dependencies. 333705b261ecSmrg 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' 333805b261ecSmrg ;; 333905b261ecSmrg *) 334005b261ecSmrg if test "$GXX" = yes; then 334105b261ecSmrg if test $with_gnu_ld = no; then 334205b261ecSmrg case $host_cpu in 334305b261ecSmrg hppa*64*) 334405b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 334505b261ecSmrg ;; 334605b261ecSmrg ia64*) 334705b261ecSmrg _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' 334805b261ecSmrg ;; 334905b261ecSmrg *) 335005b261ecSmrg _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' 335105b261ecSmrg ;; 335205b261ecSmrg esac 335305b261ecSmrg fi 335405b261ecSmrg else 335505b261ecSmrg # FIXME: insert proper C++ library support 335605b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 335705b261ecSmrg fi 335805b261ecSmrg ;; 335905b261ecSmrg esac 336005b261ecSmrg ;; 336105b261ecSmrg interix[[3-9]]*) 336205b261ecSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no 336305b261ecSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 336405b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 336505b261ecSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 336605b261ecSmrg # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 336705b261ecSmrg # Instead, shared libraries are loaded at an image base (0x10000000 by 336805b261ecSmrg # default) and relocated if they conflict, which is a slow very memory 336905b261ecSmrg # consuming and fragmenting process. To avoid this, we pick a random, 337005b261ecSmrg # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 337105b261ecSmrg # time. Moving up from 0x10000000 also allows more sbrk(2) space. 337205b261ecSmrg _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' 337305b261ecSmrg _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' 337405b261ecSmrg ;; 337505b261ecSmrg irix5* | irix6*) 337605b261ecSmrg case $cc_basename in 337705b261ecSmrg CC*) 337805b261ecSmrg # SGI C++ 337905b261ecSmrg _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' 338005b261ecSmrg 338105b261ecSmrg # Archives containing C++ object files must be created using 338205b261ecSmrg # "CC -ar", where "CC" is the IRIX C++ compiler. This is 338305b261ecSmrg # necessary to make sure instantiated templates are included 338405b261ecSmrg # in the archive. 338505b261ecSmrg _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' 338605b261ecSmrg ;; 338705b261ecSmrg *) 338805b261ecSmrg if test "$GXX" = yes; then 338905b261ecSmrg if test "$with_gnu_ld" = no; then 339005b261ecSmrg _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' 339105b261ecSmrg else 339205b261ecSmrg _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' 339305b261ecSmrg fi 339405b261ecSmrg fi 339505b261ecSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 339605b261ecSmrg ;; 339705b261ecSmrg esac 339805b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 339905b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 340005b261ecSmrg ;; 340105b261ecSmrg linux* | k*bsd*-gnu) 340205b261ecSmrg case $cc_basename in 340305b261ecSmrg KCC*) 340405b261ecSmrg # Kuck and Associates, Inc. (KAI) C++ Compiler 340505b261ecSmrg 340605b261ecSmrg # KCC will only create a shared library if the output file 340705b261ecSmrg # ends with ".so" (or ".sl" for HP-UX), so rename the library 340805b261ecSmrg # to its proper name (with version) after linking. 340905b261ecSmrg _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' 341005b261ecSmrg _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' 341105b261ecSmrg # Commands to make compiler produce verbose output that lists 341205b261ecSmrg # what "hidden" libraries, object files and flags are used when 341305b261ecSmrg # linking a shared library. 341405b261ecSmrg # 341505b261ecSmrg # There doesn't appear to be a way to prevent this compiler from 341605b261ecSmrg # explicitly linking system object files so we need to strip them 341705b261ecSmrg # from the output so that they don't get included in the library 341805b261ecSmrg # dependencies. 341905b261ecSmrg 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' 342005b261ecSmrg 342105b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' 342205b261ecSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 342305b261ecSmrg 342405b261ecSmrg # Archives containing C++ object files must be created using 342505b261ecSmrg # "CC -Bstatic", where "CC" is the KAI C++ compiler. 342605b261ecSmrg _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 342705b261ecSmrg ;; 342805b261ecSmrg icpc*) 342905b261ecSmrg # Intel C++ 343005b261ecSmrg with_gnu_ld=yes 343105b261ecSmrg # version 8.0 and above of icpc choke on multiply defined symbols 343205b261ecSmrg # if we add $predep_objects and $postdep_objects, however 7.1 and 343305b261ecSmrg # earlier do not add the objects themselves. 343405b261ecSmrg case `$CC -V 2>&1` in 343505b261ecSmrg *"Version 7."*) 343605b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 343705b261ecSmrg _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' 343805b261ecSmrg ;; 343905b261ecSmrg *) # Version 8.0 or newer 344005b261ecSmrg tmp_idyn= 344105b261ecSmrg case $host_cpu in 344205b261ecSmrg ia64*) tmp_idyn=' -i_dynamic';; 344305b261ecSmrg esac 344405b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 344505b261ecSmrg _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' 344605b261ecSmrg ;; 344705b261ecSmrg esac 344805b261ecSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 344905b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 345005b261ecSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 345105b261ecSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 345205b261ecSmrg ;; 345305b261ecSmrg pgCC* | pgcpp*) 345405b261ecSmrg # Portland Group C++ compiler 345505b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 345605b261ecSmrg _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' 345705b261ecSmrg 345805b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 345905b261ecSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 346005b261ecSmrg _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' 346105b261ecSmrg ;; 346205b261ecSmrg cxx*) 346305b261ecSmrg # Compaq C++ 346405b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 346505b261ecSmrg _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' 346605b261ecSmrg 346705b261ecSmrg runpath_var=LD_RUN_PATH 346805b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 346905b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 347005b261ecSmrg 347105b261ecSmrg # Commands to make compiler produce verbose output that lists 347205b261ecSmrg # what "hidden" libraries, object files and flags are used when 347305b261ecSmrg # linking a shared library. 347405b261ecSmrg # 347505b261ecSmrg # There doesn't appear to be a way to prevent this compiler from 347605b261ecSmrg # explicitly linking system object files so we need to strip them 347705b261ecSmrg # from the output so that they don't get included in the library 347805b261ecSmrg # dependencies. 347905b261ecSmrg 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' 348005b261ecSmrg ;; 348105b261ecSmrg *) 348205b261ecSmrg case `$CC -V 2>&1 | sed 5q` in 348305b261ecSmrg *Sun\ C*) 348405b261ecSmrg # Sun C++ 5.9 348505b261ecSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' 348605b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 348705b261ecSmrg _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' 348805b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 348905b261ecSmrg _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' 349005b261ecSmrg 349105b261ecSmrg # Not sure whether something based on 349205b261ecSmrg # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 349305b261ecSmrg # would be better. 349405b261ecSmrg output_verbose_link_cmd='echo' 349505b261ecSmrg 349605b261ecSmrg # Archives containing C++ object files must be created using 349705b261ecSmrg # "CC -xar", where "CC" is the Sun C++ compiler. This is 349805b261ecSmrg # necessary to make sure instantiated templates are included 349905b261ecSmrg # in the archive. 350005b261ecSmrg _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 350105b261ecSmrg ;; 350205b261ecSmrg esac 350305b261ecSmrg ;; 350405b261ecSmrg esac 350505b261ecSmrg ;; 350605b261ecSmrg lynxos*) 350705b261ecSmrg # FIXME: insert proper C++ library support 350805b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 350905b261ecSmrg ;; 351005b261ecSmrg m88k*) 351105b261ecSmrg # FIXME: insert proper C++ library support 351205b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 351305b261ecSmrg ;; 351405b261ecSmrg mvs*) 351505b261ecSmrg case $cc_basename in 351605b261ecSmrg cxx*) 351705b261ecSmrg # FIXME: insert proper C++ library support 351805b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 351905b261ecSmrg ;; 352005b261ecSmrg *) 352105b261ecSmrg # FIXME: insert proper C++ library support 352205b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 352305b261ecSmrg ;; 352405b261ecSmrg esac 352505b261ecSmrg ;; 352605b261ecSmrg netbsd* | netbsdelf*-gnu) 352705b261ecSmrg if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 352805b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 352905b261ecSmrg wlarc= 353005b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 353105b261ecSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 353205b261ecSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 353305b261ecSmrg fi 353405b261ecSmrg # Workaround some broken pre-1.5 toolchains 353505b261ecSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 353605b261ecSmrg ;; 353705b261ecSmrg openbsd2*) 353805b261ecSmrg # C++ shared libraries are fairly broken 353905b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 354005b261ecSmrg ;; 354105b261ecSmrg openbsd*) 354205b261ecSmrg if test -f /usr/libexec/ld.so; then 354305b261ecSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 354405b261ecSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 354505b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 354605b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 354705b261ecSmrg if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 354805b261ecSmrg _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' 354905b261ecSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 355005b261ecSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 355105b261ecSmrg fi 355205b261ecSmrg output_verbose_link_cmd='echo' 355305b261ecSmrg else 355405b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 355505b261ecSmrg fi 355605b261ecSmrg ;; 355705b261ecSmrg osf3*) 355805b261ecSmrg case $cc_basename in 355905b261ecSmrg KCC*) 356005b261ecSmrg # Kuck and Associates, Inc. (KAI) C++ Compiler 356105b261ecSmrg 356205b261ecSmrg # KCC will only create a shared library if the output file 356305b261ecSmrg # ends with ".so" (or ".sl" for HP-UX), so rename the library 356405b261ecSmrg # to its proper name (with version) after linking. 356505b261ecSmrg _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' 356605b261ecSmrg 356705b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 356805b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 356905b261ecSmrg 357005b261ecSmrg # Archives containing C++ object files must be created using 357105b261ecSmrg # "CC -Bstatic", where "CC" is the KAI C++ compiler. 357205b261ecSmrg _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 357305b261ecSmrg 357405b261ecSmrg ;; 357505b261ecSmrg RCC*) 357605b261ecSmrg # Rational C++ 2.4.1 357705b261ecSmrg # FIXME: insert proper C++ library support 357805b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 357905b261ecSmrg ;; 358005b261ecSmrg cxx*) 358105b261ecSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 358205b261ecSmrg _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' 358305b261ecSmrg 358405b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 358505b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 358605b261ecSmrg 358705b261ecSmrg # Commands to make compiler produce verbose output that lists 358805b261ecSmrg # what "hidden" libraries, object files and flags are used when 358905b261ecSmrg # linking a shared library. 359005b261ecSmrg # 359105b261ecSmrg # There doesn't appear to be a way to prevent this compiler from 359205b261ecSmrg # explicitly linking system object files so we need to strip them 359305b261ecSmrg # from the output so that they don't get included in the library 359405b261ecSmrg # dependencies. 359505b261ecSmrg 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' 359605b261ecSmrg ;; 359705b261ecSmrg *) 359805b261ecSmrg if test "$GXX" = yes && test "$with_gnu_ld" = no; then 359905b261ecSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 360005b261ecSmrg _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' 360105b261ecSmrg 360205b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 360305b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 360405b261ecSmrg 360505b261ecSmrg # Commands to make compiler produce verbose output that lists 360605b261ecSmrg # what "hidden" libraries, object files and flags are used when 360705b261ecSmrg # linking a shared library. 360805b261ecSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 360905b261ecSmrg 361005b261ecSmrg else 361105b261ecSmrg # FIXME: insert proper C++ library support 361205b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 361305b261ecSmrg fi 361405b261ecSmrg ;; 361505b261ecSmrg esac 361605b261ecSmrg ;; 361705b261ecSmrg osf4* | osf5*) 361805b261ecSmrg case $cc_basename in 361905b261ecSmrg KCC*) 362005b261ecSmrg # Kuck and Associates, Inc. (KAI) C++ Compiler 362105b261ecSmrg 362205b261ecSmrg # KCC will only create a shared library if the output file 362305b261ecSmrg # ends with ".so" (or ".sl" for HP-UX), so rename the library 362405b261ecSmrg # to its proper name (with version) after linking. 362505b261ecSmrg _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' 362605b261ecSmrg 362705b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 362805b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 362905b261ecSmrg 363005b261ecSmrg # Archives containing C++ object files must be created using 363105b261ecSmrg # the KAI C++ compiler. 363205b261ecSmrg _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' 363305b261ecSmrg ;; 363405b261ecSmrg RCC*) 363505b261ecSmrg # Rational C++ 2.4.1 363605b261ecSmrg # FIXME: insert proper C++ library support 363705b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 363805b261ecSmrg ;; 363905b261ecSmrg cxx*) 364005b261ecSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 364105b261ecSmrg _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' 364205b261ecSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 364305b261ecSmrg echo "-hidden">> $lib.exp~ 364405b261ecSmrg $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~ 364505b261ecSmrg $rm $lib.exp' 364605b261ecSmrg 364705b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 364805b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 364905b261ecSmrg 365005b261ecSmrg # Commands to make compiler produce verbose output that lists 365105b261ecSmrg # what "hidden" libraries, object files and flags are used when 365205b261ecSmrg # linking a shared library. 365305b261ecSmrg # 365405b261ecSmrg # There doesn't appear to be a way to prevent this compiler from 365505b261ecSmrg # explicitly linking system object files so we need to strip them 365605b261ecSmrg # from the output so that they don't get included in the library 365705b261ecSmrg # dependencies. 365805b261ecSmrg 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' 365905b261ecSmrg ;; 366005b261ecSmrg *) 366105b261ecSmrg if test "$GXX" = yes && test "$with_gnu_ld" = no; then 366205b261ecSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 366305b261ecSmrg _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' 366405b261ecSmrg 366505b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 366605b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 366705b261ecSmrg 366805b261ecSmrg # Commands to make compiler produce verbose output that lists 366905b261ecSmrg # what "hidden" libraries, object files and flags are used when 367005b261ecSmrg # linking a shared library. 367105b261ecSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 367205b261ecSmrg 367305b261ecSmrg else 367405b261ecSmrg # FIXME: insert proper C++ library support 367505b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 367605b261ecSmrg fi 367705b261ecSmrg ;; 367805b261ecSmrg esac 367905b261ecSmrg ;; 368005b261ecSmrg psos*) 368105b261ecSmrg # FIXME: insert proper C++ library support 368205b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 368305b261ecSmrg ;; 368405b261ecSmrg sunos4*) 368505b261ecSmrg case $cc_basename in 368605b261ecSmrg CC*) 368705b261ecSmrg # Sun C++ 4.x 368805b261ecSmrg # FIXME: insert proper C++ library support 368905b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 369005b261ecSmrg ;; 369105b261ecSmrg lcc*) 369205b261ecSmrg # Lucid 369305b261ecSmrg # FIXME: insert proper C++ library support 369405b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 369505b261ecSmrg ;; 369605b261ecSmrg *) 369705b261ecSmrg # FIXME: insert proper C++ library support 369805b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 369905b261ecSmrg ;; 370005b261ecSmrg esac 370105b261ecSmrg ;; 370205b261ecSmrg solaris*) 370305b261ecSmrg case $cc_basename in 370405b261ecSmrg CC*) 370505b261ecSmrg # Sun C++ 4.2, 5.x and Centerline C++ 370605b261ecSmrg _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes 370705b261ecSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' 370805b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 370905b261ecSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 371005b261ecSmrg $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' 371105b261ecSmrg 371205b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 371305b261ecSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 371405b261ecSmrg case $host_os in 371505b261ecSmrg solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 371605b261ecSmrg *) 371705b261ecSmrg # The compiler driver will combine and reorder linker options, 371805b261ecSmrg # but understands `-z linker_flag'. 371905b261ecSmrg # Supported since Solaris 2.6 (maybe 2.5.1?) 372005b261ecSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 372105b261ecSmrg ;; 372205b261ecSmrg esac 372305b261ecSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 372405b261ecSmrg 372505b261ecSmrg output_verbose_link_cmd='echo' 372605b261ecSmrg 372705b261ecSmrg # Archives containing C++ object files must be created using 372805b261ecSmrg # "CC -xar", where "CC" is the Sun C++ compiler. This is 372905b261ecSmrg # necessary to make sure instantiated templates are included 373005b261ecSmrg # in the archive. 373105b261ecSmrg _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 373205b261ecSmrg ;; 373305b261ecSmrg gcx*) 373405b261ecSmrg # Green Hills C++ Compiler 373505b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 373605b261ecSmrg 373705b261ecSmrg # The C++ compiler must be used to create the archive. 373805b261ecSmrg _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 373905b261ecSmrg ;; 374005b261ecSmrg *) 374105b261ecSmrg # GNU C++ compiler with Solaris linker 374205b261ecSmrg if test "$GXX" = yes && test "$with_gnu_ld" = no; then 374305b261ecSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' 374405b261ecSmrg if $CC --version | grep -v '^2\.7' > /dev/null; then 374505b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 374605b261ecSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 374705b261ecSmrg $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 374805b261ecSmrg 374905b261ecSmrg # Commands to make compiler produce verbose output that lists 375005b261ecSmrg # what "hidden" libraries, object files and flags are used when 375105b261ecSmrg # linking a shared library. 375205b261ecSmrg output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 375305b261ecSmrg else 375405b261ecSmrg # g++ 2.7 appears to require `-G' NOT `-shared' on this 375505b261ecSmrg # platform. 375605b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 375705b261ecSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 375805b261ecSmrg $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 375905b261ecSmrg 376005b261ecSmrg # Commands to make compiler produce verbose output that lists 376105b261ecSmrg # what "hidden" libraries, object files and flags are used when 376205b261ecSmrg # linking a shared library. 376305b261ecSmrg output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 376405b261ecSmrg fi 376505b261ecSmrg 376605b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' 376705b261ecSmrg case $host_os in 376805b261ecSmrg solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 376905b261ecSmrg *) 377005b261ecSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 377105b261ecSmrg ;; 377205b261ecSmrg esac 377305b261ecSmrg fi 377405b261ecSmrg ;; 377505b261ecSmrg esac 377605b261ecSmrg ;; 377705b261ecSmrg sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 377805b261ecSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 377905b261ecSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 378005b261ecSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 378105b261ecSmrg runpath_var='LD_RUN_PATH' 378205b261ecSmrg 378305b261ecSmrg case $cc_basename in 378405b261ecSmrg CC*) 378505b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 378605b261ecSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 378705b261ecSmrg ;; 378805b261ecSmrg *) 378905b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 379005b261ecSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 379105b261ecSmrg ;; 379205b261ecSmrg esac 379305b261ecSmrg ;; 379405b261ecSmrg sysv5* | sco3.2v5* | sco5v6*) 379505b261ecSmrg # Note: We can NOT use -z defs as we might desire, because we do not 379605b261ecSmrg # link with -lc, and that would cause any symbols used from libc to 379705b261ecSmrg # always be unresolved, which means just about no library would 379805b261ecSmrg # ever link correctly. If we're not using GNU ld we use -z text 379905b261ecSmrg # though, which does catch some bad symbols but isn't as heavy-handed 380005b261ecSmrg # as -z defs. 380105b261ecSmrg # For security reasons, it is highly recommended that you always 380205b261ecSmrg # use absolute paths for naming shared libraries, and exclude the 380305b261ecSmrg # DT_RUNPATH tag from executables and libraries. But doing so 380405b261ecSmrg # requires that you compile everything twice, which is a pain. 380505b261ecSmrg # So that behaviour is only enabled if SCOABSPATH is set to a 380605b261ecSmrg # non-empty value in the environment. Most likely only useful for 380705b261ecSmrg # creating official distributions of packages. 380805b261ecSmrg # This is a hack until libtool officially supports absolute path 380905b261ecSmrg # names for shared libraries. 381005b261ecSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 381105b261ecSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 381205b261ecSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 381305b261ecSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 381405b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 381505b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 381605b261ecSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 381705b261ecSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 381805b261ecSmrg runpath_var='LD_RUN_PATH' 381905b261ecSmrg 382005b261ecSmrg case $cc_basename in 382105b261ecSmrg CC*) 382205b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 382305b261ecSmrg _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' 382405b261ecSmrg ;; 382505b261ecSmrg *) 382605b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 382705b261ecSmrg _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' 382805b261ecSmrg ;; 382905b261ecSmrg esac 383005b261ecSmrg ;; 383105b261ecSmrg tandem*) 383205b261ecSmrg case $cc_basename in 383305b261ecSmrg NCC*) 383405b261ecSmrg # NonStop-UX NCC 3.20 383505b261ecSmrg # FIXME: insert proper C++ library support 383605b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 383705b261ecSmrg ;; 383805b261ecSmrg *) 383905b261ecSmrg # FIXME: insert proper C++ library support 384005b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 384105b261ecSmrg ;; 384205b261ecSmrg esac 384305b261ecSmrg ;; 384405b261ecSmrg vxworks*) 384505b261ecSmrg # FIXME: insert proper C++ library support 384605b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 384705b261ecSmrg ;; 384805b261ecSmrg *) 384905b261ecSmrg # FIXME: insert proper C++ library support 385005b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 385105b261ecSmrg ;; 385205b261ecSmrgesac 385305b261ecSmrgAC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) 385405b261ecSmrgtest "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 385505b261ecSmrg 385605b261ecSmrg_LT_AC_TAGVAR(GCC, $1)="$GXX" 385705b261ecSmrg_LT_AC_TAGVAR(LD, $1)="$LD" 385805b261ecSmrg 385905b261ecSmrgAC_LIBTOOL_POSTDEP_PREDEP($1) 386005b261ecSmrgAC_LIBTOOL_PROG_COMPILER_PIC($1) 386105b261ecSmrgAC_LIBTOOL_PROG_CC_C_O($1) 386205b261ecSmrgAC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 386305b261ecSmrgAC_LIBTOOL_PROG_LD_SHLIBS($1) 386405b261ecSmrgAC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 386505b261ecSmrgAC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 386605b261ecSmrg 386705b261ecSmrgAC_LIBTOOL_CONFIG($1) 386805b261ecSmrg 386905b261ecSmrgAC_LANG_POP 387005b261ecSmrgCC=$lt_save_CC 387105b261ecSmrgLDCXX=$LD 387205b261ecSmrgLD=$lt_save_LD 387305b261ecSmrgGCC=$lt_save_GCC 387405b261ecSmrgwith_gnu_ldcxx=$with_gnu_ld 387505b261ecSmrgwith_gnu_ld=$lt_save_with_gnu_ld 387605b261ecSmrglt_cv_path_LDCXX=$lt_cv_path_LD 387705b261ecSmrglt_cv_path_LD=$lt_save_path_LD 387805b261ecSmrglt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 387905b261ecSmrglt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 388005b261ecSmrg])# AC_LIBTOOL_LANG_CXX_CONFIG 388105b261ecSmrg 388205b261ecSmrg# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) 388305b261ecSmrg# ------------------------------------ 388405b261ecSmrg# Figure out "hidden" library dependencies from verbose 388505b261ecSmrg# compiler output when linking a shared library. 388605b261ecSmrg# Parse the compiler output and extract the necessary 388705b261ecSmrg# objects, libraries and library flags. 388805b261ecSmrgAC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP], 388905b261ecSmrg[AC_REQUIRE([LT_AC_PROG_SED])dnl 389005b261ecSmrgdnl we can't use the lt_simple_compile_test_code here, 389105b261ecSmrgdnl because it contains code intended for an executable, 389205b261ecSmrgdnl not a library. It's possible we should let each 389305b261ecSmrgdnl tag define a new lt_????_link_test_code variable, 389405b261ecSmrgdnl but it's only used here... 389505b261ecSmrgifelse([$1],[],[cat > conftest.$ac_ext <<EOF 389605b261ecSmrgint a; 389705b261ecSmrgvoid foo (void) { a = 0; } 389805b261ecSmrgEOF 389905b261ecSmrg],[$1],[CXX],[cat > conftest.$ac_ext <<EOF 390005b261ecSmrgclass Foo 390105b261ecSmrg{ 390205b261ecSmrgpublic: 390305b261ecSmrg Foo (void) { a = 0; } 390405b261ecSmrgprivate: 390505b261ecSmrg int a; 390605b261ecSmrg}; 390705b261ecSmrgEOF 390805b261ecSmrg],[$1],[F77],[cat > conftest.$ac_ext <<EOF 390905b261ecSmrg subroutine foo 391005b261ecSmrg implicit none 391105b261ecSmrg integer*4 a 391205b261ecSmrg a=0 391305b261ecSmrg return 391405b261ecSmrg end 391505b261ecSmrgEOF 391605b261ecSmrg],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF 391705b261ecSmrgpublic class foo { 391805b261ecSmrg private int a; 391905b261ecSmrg public void bar (void) { 392005b261ecSmrg a = 0; 392105b261ecSmrg } 392205b261ecSmrg}; 392305b261ecSmrgEOF 392405b261ecSmrg]) 392505b261ecSmrgdnl Parse the compiler output and extract the necessary 392605b261ecSmrgdnl objects, libraries and library flags. 392705b261ecSmrgif AC_TRY_EVAL(ac_compile); then 392805b261ecSmrg # Parse the compiler output and extract the necessary 392905b261ecSmrg # objects, libraries and library flags. 393005b261ecSmrg 393105b261ecSmrg # Sentinel used to keep track of whether or not we are before 393205b261ecSmrg # the conftest object file. 393305b261ecSmrg pre_test_object_deps_done=no 393405b261ecSmrg 393505b261ecSmrg # The `*' in the case matches for architectures that use `case' in 393605b261ecSmrg # $output_verbose_cmd can trigger glob expansion during the loop 393705b261ecSmrg # eval without this substitution. 393805b261ecSmrg output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 393905b261ecSmrg 394005b261ecSmrg for p in `eval $output_verbose_link_cmd`; do 394105b261ecSmrg case $p in 394205b261ecSmrg 394305b261ecSmrg -L* | -R* | -l*) 394405b261ecSmrg # Some compilers place space between "-{L,R}" and the path. 394505b261ecSmrg # Remove the space. 394605b261ecSmrg if test $p = "-L" \ 394705b261ecSmrg || test $p = "-R"; then 394805b261ecSmrg prev=$p 394905b261ecSmrg continue 395005b261ecSmrg else 395105b261ecSmrg prev= 395205b261ecSmrg fi 395305b261ecSmrg 395405b261ecSmrg if test "$pre_test_object_deps_done" = no; then 395505b261ecSmrg case $p in 395605b261ecSmrg -L* | -R*) 395705b261ecSmrg # Internal compiler library paths should come after those 395805b261ecSmrg # provided the user. The postdeps already come after the 395905b261ecSmrg # user supplied libs so there is no need to process them. 396005b261ecSmrg if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then 396105b261ecSmrg _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" 396205b261ecSmrg else 396305b261ecSmrg _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" 396405b261ecSmrg fi 396505b261ecSmrg ;; 396605b261ecSmrg # The "-l" case would never come before the object being 396705b261ecSmrg # linked, so don't bother handling this case. 396805b261ecSmrg esac 396905b261ecSmrg else 397005b261ecSmrg if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then 397105b261ecSmrg _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}" 397205b261ecSmrg else 397305b261ecSmrg _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}" 397405b261ecSmrg fi 397505b261ecSmrg fi 397605b261ecSmrg ;; 397705b261ecSmrg 397805b261ecSmrg *.$objext) 397905b261ecSmrg # This assumes that the test object file only shows up 398005b261ecSmrg # once in the compiler output. 398105b261ecSmrg if test "$p" = "conftest.$objext"; then 398205b261ecSmrg pre_test_object_deps_done=yes 398305b261ecSmrg continue 398405b261ecSmrg fi 398505b261ecSmrg 398605b261ecSmrg if test "$pre_test_object_deps_done" = no; then 398705b261ecSmrg if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then 398805b261ecSmrg _LT_AC_TAGVAR(predep_objects, $1)="$p" 398905b261ecSmrg else 399005b261ecSmrg _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p" 399105b261ecSmrg fi 399205b261ecSmrg else 399305b261ecSmrg if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then 399405b261ecSmrg _LT_AC_TAGVAR(postdep_objects, $1)="$p" 399505b261ecSmrg else 399605b261ecSmrg _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p" 399705b261ecSmrg fi 399805b261ecSmrg fi 399905b261ecSmrg ;; 400005b261ecSmrg 400105b261ecSmrg *) ;; # Ignore the rest. 400205b261ecSmrg 400305b261ecSmrg esac 400405b261ecSmrg done 400505b261ecSmrg 400605b261ecSmrg # Clean up. 400705b261ecSmrg rm -f a.out a.exe 400805b261ecSmrgelse 400905b261ecSmrg echo "libtool.m4: error: problem compiling $1 test program" 401005b261ecSmrgfi 401105b261ecSmrg 401205b261ecSmrg$rm -f confest.$objext 401305b261ecSmrg 401405b261ecSmrg_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)= 401505b261ecSmrgif test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then 401605b261ecSmrg _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 401705b261ecSmrgfi 401805b261ecSmrg 401905b261ecSmrg# PORTME: override above test on systems where it is broken 402005b261ecSmrgifelse([$1],[CXX], 402105b261ecSmrg[case $host_os in 402205b261ecSmrginterix[[3-9]]*) 402305b261ecSmrg # Interix 3.5 installs completely hosed .la files for C++, so rather than 402405b261ecSmrg # hack all around it, let's just trust "g++" to DTRT. 402505b261ecSmrg _LT_AC_TAGVAR(predep_objects,$1)= 402605b261ecSmrg _LT_AC_TAGVAR(postdep_objects,$1)= 402705b261ecSmrg _LT_AC_TAGVAR(postdeps,$1)= 402805b261ecSmrg ;; 402905b261ecSmrg 403005b261ecSmrglinux*) 403105b261ecSmrg case `$CC -V 2>&1 | sed 5q` in 403205b261ecSmrg *Sun\ C*) 403305b261ecSmrg # Sun C++ 5.9 403405b261ecSmrg # 403505b261ecSmrg # The more standards-conforming stlport4 library is 403605b261ecSmrg # incompatible with the Cstd library. Avoid specifying 403705b261ecSmrg # it if it's in CXXFLAGS. Ignore libCrun as 403805b261ecSmrg # -library=stlport4 depends on it. 403905b261ecSmrg case " $CXX $CXXFLAGS " in 404005b261ecSmrg *" -library=stlport4 "*) 404105b261ecSmrg solaris_use_stlport4=yes 404205b261ecSmrg ;; 404305b261ecSmrg esac 404405b261ecSmrg if test "$solaris_use_stlport4" != yes; then 404505b261ecSmrg _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 404605b261ecSmrg fi 404705b261ecSmrg ;; 404805b261ecSmrg esac 404905b261ecSmrg ;; 405005b261ecSmrg 405105b261ecSmrgsolaris*) 405205b261ecSmrg case $cc_basename in 405305b261ecSmrg CC*) 405405b261ecSmrg # The more standards-conforming stlport4 library is 405505b261ecSmrg # incompatible with the Cstd library. Avoid specifying 405605b261ecSmrg # it if it's in CXXFLAGS. Ignore libCrun as 405705b261ecSmrg # -library=stlport4 depends on it. 405805b261ecSmrg case " $CXX $CXXFLAGS " in 405905b261ecSmrg *" -library=stlport4 "*) 406005b261ecSmrg solaris_use_stlport4=yes 406105b261ecSmrg ;; 406205b261ecSmrg esac 406305b261ecSmrg 406405b261ecSmrg # Adding this requires a known-good setup of shared libraries for 406505b261ecSmrg # Sun compiler versions before 5.6, else PIC objects from an old 406605b261ecSmrg # archive will be linked into the output, leading to subtle bugs. 406705b261ecSmrg if test "$solaris_use_stlport4" != yes; then 406805b261ecSmrg _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 406905b261ecSmrg fi 407005b261ecSmrg ;; 407105b261ecSmrg esac 407205b261ecSmrg ;; 407305b261ecSmrgesac 407405b261ecSmrg]) 407505b261ecSmrgcase " $_LT_AC_TAGVAR(postdeps, $1) " in 407605b261ecSmrg*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; 407705b261ecSmrgesac 407805b261ecSmrg])# AC_LIBTOOL_POSTDEP_PREDEP 407905b261ecSmrg 408005b261ecSmrg# AC_LIBTOOL_LANG_F77_CONFIG 408105b261ecSmrg# -------------------------- 408205b261ecSmrg# Ensure that the configuration vars for the C compiler are 408305b261ecSmrg# suitably defined. Those variables are subsequently used by 408405b261ecSmrg# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 408505b261ecSmrgAC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)]) 408605b261ecSmrgAC_DEFUN([_LT_AC_LANG_F77_CONFIG], 408705b261ecSmrg[AC_REQUIRE([AC_PROG_F77]) 408805b261ecSmrgAC_LANG_PUSH(Fortran 77) 408905b261ecSmrg 409005b261ecSmrg_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 409105b261ecSmrg_LT_AC_TAGVAR(allow_undefined_flag, $1)= 409205b261ecSmrg_LT_AC_TAGVAR(always_export_symbols, $1)=no 409305b261ecSmrg_LT_AC_TAGVAR(archive_expsym_cmds, $1)= 409405b261ecSmrg_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 409505b261ecSmrg_LT_AC_TAGVAR(hardcode_direct, $1)=no 409605b261ecSmrg_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 409705b261ecSmrg_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 409805b261ecSmrg_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 409905b261ecSmrg_LT_AC_TAGVAR(hardcode_minus_L, $1)=no 410005b261ecSmrg_LT_AC_TAGVAR(hardcode_automatic, $1)=no 410105b261ecSmrg_LT_AC_TAGVAR(module_cmds, $1)= 410205b261ecSmrg_LT_AC_TAGVAR(module_expsym_cmds, $1)= 410305b261ecSmrg_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown 410405b261ecSmrg_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 410505b261ecSmrg_LT_AC_TAGVAR(no_undefined_flag, $1)= 410605b261ecSmrg_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 410705b261ecSmrg_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no 410805b261ecSmrg 410905b261ecSmrg# Source file extension for f77 test sources. 411005b261ecSmrgac_ext=f 411105b261ecSmrg 411205b261ecSmrg# Object file extension for compiled f77 test sources. 411305b261ecSmrgobjext=o 411405b261ecSmrg_LT_AC_TAGVAR(objext, $1)=$objext 411505b261ecSmrg 411605b261ecSmrg# Code to be used in simple compile tests 411705b261ecSmrglt_simple_compile_test_code="\ 411805b261ecSmrg subroutine t 411905b261ecSmrg return 412005b261ecSmrg end 412105b261ecSmrg" 412205b261ecSmrg 412305b261ecSmrg# Code to be used in simple link tests 412405b261ecSmrglt_simple_link_test_code="\ 412505b261ecSmrg program t 412605b261ecSmrg end 412705b261ecSmrg" 412805b261ecSmrg 412905b261ecSmrg# ltmain only uses $CC for tagged configurations so make sure $CC is set. 413005b261ecSmrg_LT_AC_SYS_COMPILER 413105b261ecSmrg 413205b261ecSmrg# save warnings/boilerplate of simple test code 413305b261ecSmrg_LT_COMPILER_BOILERPLATE 413405b261ecSmrg_LT_LINKER_BOILERPLATE 413505b261ecSmrg 413605b261ecSmrg# Allow CC to be a program name with arguments. 413705b261ecSmrglt_save_CC="$CC" 413805b261ecSmrgCC=${F77-"f77"} 413905b261ecSmrgcompiler=$CC 414005b261ecSmrg_LT_AC_TAGVAR(compiler, $1)=$CC 414105b261ecSmrg_LT_CC_BASENAME([$compiler]) 414205b261ecSmrg 414305b261ecSmrgAC_MSG_CHECKING([if libtool supports shared libraries]) 414405b261ecSmrgAC_MSG_RESULT([$can_build_shared]) 414505b261ecSmrg 414605b261ecSmrgAC_MSG_CHECKING([whether to build shared libraries]) 414705b261ecSmrgtest "$can_build_shared" = "no" && enable_shared=no 414805b261ecSmrg 414905b261ecSmrg# On AIX, shared libraries and static libraries use the same namespace, and 415005b261ecSmrg# are all built from PIC. 415105b261ecSmrgcase $host_os in 415205b261ecSmrgaix3*) 415305b261ecSmrg test "$enable_shared" = yes && enable_static=no 415405b261ecSmrg if test -n "$RANLIB"; then 415505b261ecSmrg archive_cmds="$archive_cmds~\$RANLIB \$lib" 415605b261ecSmrg postinstall_cmds='$RANLIB $lib' 415705b261ecSmrg fi 415805b261ecSmrg ;; 415905b261ecSmrgaix[[4-9]]*) 416005b261ecSmrg if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 416105b261ecSmrg test "$enable_shared" = yes && enable_static=no 416205b261ecSmrg fi 416305b261ecSmrg ;; 416405b261ecSmrgesac 416505b261ecSmrgAC_MSG_RESULT([$enable_shared]) 416605b261ecSmrg 416705b261ecSmrgAC_MSG_CHECKING([whether to build static libraries]) 416805b261ecSmrg# Make sure either enable_shared or enable_static is yes. 416905b261ecSmrgtest "$enable_shared" = yes || enable_static=yes 417005b261ecSmrgAC_MSG_RESULT([$enable_static]) 417105b261ecSmrg 417205b261ecSmrg_LT_AC_TAGVAR(GCC, $1)="$G77" 417305b261ecSmrg_LT_AC_TAGVAR(LD, $1)="$LD" 417405b261ecSmrg 417505b261ecSmrgAC_LIBTOOL_PROG_COMPILER_PIC($1) 417605b261ecSmrgAC_LIBTOOL_PROG_CC_C_O($1) 417705b261ecSmrgAC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 417805b261ecSmrgAC_LIBTOOL_PROG_LD_SHLIBS($1) 417905b261ecSmrgAC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 418005b261ecSmrgAC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 418105b261ecSmrg 418205b261ecSmrgAC_LIBTOOL_CONFIG($1) 418305b261ecSmrg 418405b261ecSmrgAC_LANG_POP 418505b261ecSmrgCC="$lt_save_CC" 418605b261ecSmrg])# AC_LIBTOOL_LANG_F77_CONFIG 418705b261ecSmrg 418805b261ecSmrg 418905b261ecSmrg# AC_LIBTOOL_LANG_GCJ_CONFIG 419005b261ecSmrg# -------------------------- 419105b261ecSmrg# Ensure that the configuration vars for the C compiler are 419205b261ecSmrg# suitably defined. Those variables are subsequently used by 419305b261ecSmrg# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 419405b261ecSmrgAC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)]) 419505b261ecSmrgAC_DEFUN([_LT_AC_LANG_GCJ_CONFIG], 419605b261ecSmrg[AC_LANG_SAVE 419705b261ecSmrg 419805b261ecSmrg# Source file extension for Java test sources. 419905b261ecSmrgac_ext=java 420005b261ecSmrg 420105b261ecSmrg# Object file extension for compiled Java test sources. 420205b261ecSmrgobjext=o 420305b261ecSmrg_LT_AC_TAGVAR(objext, $1)=$objext 420405b261ecSmrg 420505b261ecSmrg# Code to be used in simple compile tests 420605b261ecSmrglt_simple_compile_test_code="class foo {}" 420705b261ecSmrg 420805b261ecSmrg# Code to be used in simple link tests 420905b261ecSmrglt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' 421005b261ecSmrg 421105b261ecSmrg# ltmain only uses $CC for tagged configurations so make sure $CC is set. 421205b261ecSmrg_LT_AC_SYS_COMPILER 421305b261ecSmrg 421405b261ecSmrg# save warnings/boilerplate of simple test code 421505b261ecSmrg_LT_COMPILER_BOILERPLATE 421605b261ecSmrg_LT_LINKER_BOILERPLATE 421705b261ecSmrg 421805b261ecSmrg# Allow CC to be a program name with arguments. 421905b261ecSmrglt_save_CC="$CC" 422005b261ecSmrgCC=${GCJ-"gcj"} 422105b261ecSmrgcompiler=$CC 422205b261ecSmrg_LT_AC_TAGVAR(compiler, $1)=$CC 422305b261ecSmrg_LT_CC_BASENAME([$compiler]) 422405b261ecSmrg 422505b261ecSmrg# GCJ did not exist at the time GCC didn't implicitly link libc in. 422605b261ecSmrg_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 422705b261ecSmrg 422805b261ecSmrg_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 422905b261ecSmrg 423005b261ecSmrgAC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) 423105b261ecSmrgAC_LIBTOOL_PROG_COMPILER_PIC($1) 423205b261ecSmrgAC_LIBTOOL_PROG_CC_C_O($1) 423305b261ecSmrgAC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 423405b261ecSmrgAC_LIBTOOL_PROG_LD_SHLIBS($1) 423505b261ecSmrgAC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 423605b261ecSmrgAC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 423705b261ecSmrg 423805b261ecSmrgAC_LIBTOOL_CONFIG($1) 423905b261ecSmrg 424005b261ecSmrgAC_LANG_RESTORE 424105b261ecSmrgCC="$lt_save_CC" 424205b261ecSmrg])# AC_LIBTOOL_LANG_GCJ_CONFIG 424305b261ecSmrg 424405b261ecSmrg 424505b261ecSmrg# AC_LIBTOOL_LANG_RC_CONFIG 424605b261ecSmrg# ------------------------- 424705b261ecSmrg# Ensure that the configuration vars for the Windows resource compiler are 424805b261ecSmrg# suitably defined. Those variables are subsequently used by 424905b261ecSmrg# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 425005b261ecSmrgAC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)]) 425105b261ecSmrgAC_DEFUN([_LT_AC_LANG_RC_CONFIG], 425205b261ecSmrg[AC_LANG_SAVE 425305b261ecSmrg 425405b261ecSmrg# Source file extension for RC test sources. 425505b261ecSmrgac_ext=rc 425605b261ecSmrg 425705b261ecSmrg# Object file extension for compiled RC test sources. 425805b261ecSmrgobjext=o 425905b261ecSmrg_LT_AC_TAGVAR(objext, $1)=$objext 426005b261ecSmrg 426105b261ecSmrg# Code to be used in simple compile tests 426205b261ecSmrglt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 426305b261ecSmrg 426405b261ecSmrg# Code to be used in simple link tests 426505b261ecSmrglt_simple_link_test_code="$lt_simple_compile_test_code" 426605b261ecSmrg 426705b261ecSmrg# ltmain only uses $CC for tagged configurations so make sure $CC is set. 426805b261ecSmrg_LT_AC_SYS_COMPILER 426905b261ecSmrg 427005b261ecSmrg# save warnings/boilerplate of simple test code 427105b261ecSmrg_LT_COMPILER_BOILERPLATE 427205b261ecSmrg_LT_LINKER_BOILERPLATE 427305b261ecSmrg 427405b261ecSmrg# Allow CC to be a program name with arguments. 427505b261ecSmrglt_save_CC="$CC" 427605b261ecSmrgCC=${RC-"windres"} 427705b261ecSmrgcompiler=$CC 427805b261ecSmrg_LT_AC_TAGVAR(compiler, $1)=$CC 427905b261ecSmrg_LT_CC_BASENAME([$compiler]) 428005b261ecSmrg_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 428105b261ecSmrg 428205b261ecSmrgAC_LIBTOOL_CONFIG($1) 428305b261ecSmrg 428405b261ecSmrgAC_LANG_RESTORE 428505b261ecSmrgCC="$lt_save_CC" 428605b261ecSmrg])# AC_LIBTOOL_LANG_RC_CONFIG 428705b261ecSmrg 428805b261ecSmrg 428905b261ecSmrg# AC_LIBTOOL_CONFIG([TAGNAME]) 429005b261ecSmrg# ---------------------------- 429105b261ecSmrg# If TAGNAME is not passed, then create an initial libtool script 429205b261ecSmrg# with a default configuration from the untagged config vars. Otherwise 429305b261ecSmrg# add code to config.status for appending the configuration named by 429405b261ecSmrg# TAGNAME from the matching tagged config vars. 429505b261ecSmrgAC_DEFUN([AC_LIBTOOL_CONFIG], 429605b261ecSmrg[# The else clause should only fire when bootstrapping the 429705b261ecSmrg# libtool distribution, otherwise you forgot to ship ltmain.sh 429805b261ecSmrg# with your package, and you will get complaints that there are 429905b261ecSmrg# no rules to generate ltmain.sh. 430005b261ecSmrgif test -f "$ltmain"; then 430105b261ecSmrg # See if we are running on zsh, and set the options which allow our commands through 430205b261ecSmrg # without removal of \ escapes. 430305b261ecSmrg if test -n "${ZSH_VERSION+set}" ; then 430405b261ecSmrg setopt NO_GLOB_SUBST 430505b261ecSmrg fi 430605b261ecSmrg # Now quote all the things that may contain metacharacters while being 430705b261ecSmrg # careful not to overquote the AC_SUBSTed values. We take copies of the 430805b261ecSmrg # variables and quote the copies for generation of the libtool script. 430905b261ecSmrg for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 431005b261ecSmrg SED SHELL STRIP \ 431105b261ecSmrg libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 431205b261ecSmrg old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 431305b261ecSmrg deplibs_check_method reload_flag reload_cmds need_locks \ 431405b261ecSmrg lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 431505b261ecSmrg lt_cv_sys_global_symbol_to_c_name_address \ 431605b261ecSmrg sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 431705b261ecSmrg old_postinstall_cmds old_postuninstall_cmds \ 431805b261ecSmrg _LT_AC_TAGVAR(compiler, $1) \ 431905b261ecSmrg _LT_AC_TAGVAR(CC, $1) \ 432005b261ecSmrg _LT_AC_TAGVAR(LD, $1) \ 432105b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \ 432205b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \ 432305b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \ 432405b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \ 432505b261ecSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \ 432605b261ecSmrg _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \ 432705b261ecSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \ 432805b261ecSmrg _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \ 432905b261ecSmrg _LT_AC_TAGVAR(old_archive_cmds, $1) \ 433005b261ecSmrg _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \ 433105b261ecSmrg _LT_AC_TAGVAR(predep_objects, $1) \ 433205b261ecSmrg _LT_AC_TAGVAR(postdep_objects, $1) \ 433305b261ecSmrg _LT_AC_TAGVAR(predeps, $1) \ 433405b261ecSmrg _LT_AC_TAGVAR(postdeps, $1) \ 433505b261ecSmrg _LT_AC_TAGVAR(compiler_lib_search_path, $1) \ 433605b261ecSmrg _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \ 433705b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1) \ 433805b261ecSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1) \ 433905b261ecSmrg _LT_AC_TAGVAR(postinstall_cmds, $1) \ 434005b261ecSmrg _LT_AC_TAGVAR(postuninstall_cmds, $1) \ 434105b261ecSmrg _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \ 434205b261ecSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1) \ 434305b261ecSmrg _LT_AC_TAGVAR(no_undefined_flag, $1) \ 434405b261ecSmrg _LT_AC_TAGVAR(export_symbols_cmds, $1) \ 434505b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \ 434605b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \ 434705b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \ 434805b261ecSmrg _LT_AC_TAGVAR(hardcode_automatic, $1) \ 434905b261ecSmrg _LT_AC_TAGVAR(module_cmds, $1) \ 435005b261ecSmrg _LT_AC_TAGVAR(module_expsym_cmds, $1) \ 435105b261ecSmrg _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \ 435205b261ecSmrg _LT_AC_TAGVAR(fix_srcfile_path, $1) \ 435305b261ecSmrg _LT_AC_TAGVAR(exclude_expsyms, $1) \ 435405b261ecSmrg _LT_AC_TAGVAR(include_expsyms, $1); do 435505b261ecSmrg 435605b261ecSmrg case $var in 435705b261ecSmrg _LT_AC_TAGVAR(old_archive_cmds, $1) | \ 435805b261ecSmrg _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \ 435905b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1) | \ 436005b261ecSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ 436105b261ecSmrg _LT_AC_TAGVAR(module_cmds, $1) | \ 436205b261ecSmrg _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ 436305b261ecSmrg _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ 436405b261ecSmrg _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ 436505b261ecSmrg extract_expsyms_cmds | reload_cmds | finish_cmds | \ 436605b261ecSmrg postinstall_cmds | postuninstall_cmds | \ 436705b261ecSmrg old_postinstall_cmds | old_postuninstall_cmds | \ 436805b261ecSmrg sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 436905b261ecSmrg # Double-quote double-evaled strings. 437005b261ecSmrg eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 437105b261ecSmrg ;; 437205b261ecSmrg *) 437305b261ecSmrg eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 437405b261ecSmrg ;; 437505b261ecSmrg esac 437605b261ecSmrg done 437705b261ecSmrg 437805b261ecSmrg case $lt_echo in 437905b261ecSmrg *'\[$]0 --fallback-echo"') 438005b261ecSmrg lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'` 438105b261ecSmrg ;; 438205b261ecSmrg esac 438305b261ecSmrg 438405b261ecSmrgifelse([$1], [], 438505b261ecSmrg [cfgfile="${ofile}T" 438605b261ecSmrg trap "$rm \"$cfgfile\"; exit 1" 1 2 15 438705b261ecSmrg $rm -f "$cfgfile" 438805b261ecSmrg AC_MSG_NOTICE([creating $ofile])], 438905b261ecSmrg [cfgfile="$ofile"]) 439005b261ecSmrg 439105b261ecSmrg cat <<__EOF__ >> "$cfgfile" 439205b261ecSmrgifelse([$1], [], 439305b261ecSmrg[#! $SHELL 439405b261ecSmrg 439505b261ecSmrg# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 439605b261ecSmrg# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 439705b261ecSmrg# NOTE: Changes made to this file will be lost: look at ltmain.sh. 439805b261ecSmrg# 439905b261ecSmrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 440005b261ecSmrg# Free Software Foundation, Inc. 440105b261ecSmrg# 440205b261ecSmrg# This file is part of GNU Libtool: 440305b261ecSmrg# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 440405b261ecSmrg# 440505b261ecSmrg# This program is free software; you can redistribute it and/or modify 440605b261ecSmrg# it under the terms of the GNU General Public License as published by 440705b261ecSmrg# the Free Software Foundation; either version 2 of the License, or 440805b261ecSmrg# (at your option) any later version. 440905b261ecSmrg# 441005b261ecSmrg# This program is distributed in the hope that it will be useful, but 441105b261ecSmrg# WITHOUT ANY WARRANTY; without even the implied warranty of 441205b261ecSmrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 441305b261ecSmrg# General Public License for more details. 441405b261ecSmrg# 441505b261ecSmrg# You should have received a copy of the GNU General Public License 441605b261ecSmrg# along with this program; if not, write to the Free Software 441705b261ecSmrg# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 441805b261ecSmrg# 441905b261ecSmrg# As a special exception to the GNU General Public License, if you 442005b261ecSmrg# distribute this file as part of a program that contains a 442105b261ecSmrg# configuration script generated by Autoconf, you may include it under 442205b261ecSmrg# the same distribution terms that you use for the rest of that program. 442305b261ecSmrg 442405b261ecSmrg# A sed program that does not truncate output. 442505b261ecSmrgSED=$lt_SED 442605b261ecSmrg 442705b261ecSmrg# Sed that helps us avoid accidentally triggering echo(1) options like -n. 442805b261ecSmrgXsed="$SED -e 1s/^X//" 442905b261ecSmrg 443005b261ecSmrg# The HP-UX ksh and POSIX shell print the target directory to stdout 443105b261ecSmrg# if CDPATH is set. 443205b261ecSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 443305b261ecSmrg 443405b261ecSmrg# The names of the tagged configurations supported by this script. 443505b261ecSmrgavailable_tags= 443605b261ecSmrg 443705b261ecSmrg# ### BEGIN LIBTOOL CONFIG], 443805b261ecSmrg[# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) 443905b261ecSmrg 444005b261ecSmrg# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 444105b261ecSmrg 444205b261ecSmrg# Shell to use when invoking shell scripts. 444305b261ecSmrgSHELL=$lt_SHELL 444405b261ecSmrg 444505b261ecSmrg# Whether or not to build shared libraries. 444605b261ecSmrgbuild_libtool_libs=$enable_shared 444705b261ecSmrg 444805b261ecSmrg# Whether or not to build static libraries. 444905b261ecSmrgbuild_old_libs=$enable_static 445005b261ecSmrg 445105b261ecSmrg# Whether or not to add -lc for building shared libraries. 445205b261ecSmrgbuild_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) 445305b261ecSmrg 445405b261ecSmrg# Whether or not to disallow shared libs when runtime libs are static 445505b261ecSmrgallow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) 445605b261ecSmrg 445705b261ecSmrg# Whether or not to optimize for fast installation. 445805b261ecSmrgfast_install=$enable_fast_install 445905b261ecSmrg 446005b261ecSmrg# The host system. 446105b261ecSmrghost_alias=$host_alias 446205b261ecSmrghost=$host 446305b261ecSmrghost_os=$host_os 446405b261ecSmrg 446505b261ecSmrg# The build system. 446605b261ecSmrgbuild_alias=$build_alias 446705b261ecSmrgbuild=$build 446805b261ecSmrgbuild_os=$build_os 446905b261ecSmrg 447005b261ecSmrg# An echo program that does not interpret backslashes. 447105b261ecSmrgecho=$lt_echo 447205b261ecSmrg 447305b261ecSmrg# The archiver. 447405b261ecSmrgAR=$lt_AR 447505b261ecSmrgAR_FLAGS=$lt_AR_FLAGS 447605b261ecSmrg 447705b261ecSmrg# A C compiler. 447805b261ecSmrgLTCC=$lt_LTCC 447905b261ecSmrg 448005b261ecSmrg# LTCC compiler flags. 448105b261ecSmrgLTCFLAGS=$lt_LTCFLAGS 448205b261ecSmrg 448305b261ecSmrg# A language-specific compiler. 448405b261ecSmrgCC=$lt_[]_LT_AC_TAGVAR(compiler, $1) 448505b261ecSmrg 448605b261ecSmrg# Is the compiler the GNU C compiler? 448705b261ecSmrgwith_gcc=$_LT_AC_TAGVAR(GCC, $1) 448805b261ecSmrg 448905b261ecSmrg# An ERE matcher. 449005b261ecSmrgEGREP=$lt_EGREP 449105b261ecSmrg 449205b261ecSmrg# The linker used to build libraries. 449305b261ecSmrgLD=$lt_[]_LT_AC_TAGVAR(LD, $1) 449405b261ecSmrg 449505b261ecSmrg# Whether we need hard or soft links. 449605b261ecSmrgLN_S=$lt_LN_S 449705b261ecSmrg 449805b261ecSmrg# A BSD-compatible nm program. 449905b261ecSmrgNM=$lt_NM 450005b261ecSmrg 450105b261ecSmrg# A symbol stripping program 450205b261ecSmrgSTRIP=$lt_STRIP 450305b261ecSmrg 450405b261ecSmrg# Used to examine libraries when file_magic_cmd begins "file" 450505b261ecSmrgMAGIC_CMD=$MAGIC_CMD 450605b261ecSmrg 450705b261ecSmrg# Used on cygwin: DLL creation program. 450805b261ecSmrgDLLTOOL="$DLLTOOL" 450905b261ecSmrg 451005b261ecSmrg# Used on cygwin: object dumper. 451105b261ecSmrgOBJDUMP="$OBJDUMP" 451205b261ecSmrg 451305b261ecSmrg# Used on cygwin: assembler. 451405b261ecSmrgAS="$AS" 451505b261ecSmrg 451605b261ecSmrg# The name of the directory that contains temporary libtool files. 451705b261ecSmrgobjdir=$objdir 451805b261ecSmrg 451905b261ecSmrg# How to create reloadable object files. 452005b261ecSmrgreload_flag=$lt_reload_flag 452105b261ecSmrgreload_cmds=$lt_reload_cmds 452205b261ecSmrg 452305b261ecSmrg# How to pass a linker flag through the compiler. 452405b261ecSmrgwl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) 452505b261ecSmrg 452605b261ecSmrg# Object file suffix (normally "o"). 452705b261ecSmrgobjext="$ac_objext" 452805b261ecSmrg 452905b261ecSmrg# Old archive suffix (normally "a"). 453005b261ecSmrglibext="$libext" 453105b261ecSmrg 453205b261ecSmrg# Shared library suffix (normally ".so"). 453305b261ecSmrgshrext_cmds='$shrext_cmds' 453405b261ecSmrg 453505b261ecSmrg# Executable file suffix (normally ""). 453605b261ecSmrgexeext="$exeext" 453705b261ecSmrg 453805b261ecSmrg# Additional compiler flags for building library objects. 453905b261ecSmrgpic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) 454005b261ecSmrgpic_mode=$pic_mode 454105b261ecSmrg 454205b261ecSmrg# What is the maximum length of a command? 454305b261ecSmrgmax_cmd_len=$lt_cv_sys_max_cmd_len 454405b261ecSmrg 454505b261ecSmrg# Does compiler simultaneously support -c and -o options? 454605b261ecSmrgcompiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) 454705b261ecSmrg 454805b261ecSmrg# Must we lock files when doing compilation? 454905b261ecSmrgneed_locks=$lt_need_locks 455005b261ecSmrg 455105b261ecSmrg# Do we need the lib prefix for modules? 455205b261ecSmrgneed_lib_prefix=$need_lib_prefix 455305b261ecSmrg 455405b261ecSmrg# Do we need a version for libraries? 455505b261ecSmrgneed_version=$need_version 455605b261ecSmrg 455705b261ecSmrg# Whether dlopen is supported. 455805b261ecSmrgdlopen_support=$enable_dlopen 455905b261ecSmrg 456005b261ecSmrg# Whether dlopen of programs is supported. 456105b261ecSmrgdlopen_self=$enable_dlopen_self 456205b261ecSmrg 456305b261ecSmrg# Whether dlopen of statically linked programs is supported. 456405b261ecSmrgdlopen_self_static=$enable_dlopen_self_static 456505b261ecSmrg 456605b261ecSmrg# Compiler flag to prevent dynamic linking. 456705b261ecSmrglink_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) 456805b261ecSmrg 456905b261ecSmrg# Compiler flag to turn off builtin functions. 457005b261ecSmrgno_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) 457105b261ecSmrg 457205b261ecSmrg# Compiler flag to allow reflexive dlopens. 457305b261ecSmrgexport_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) 457405b261ecSmrg 457505b261ecSmrg# Compiler flag to generate shared objects directly from archives. 457605b261ecSmrgwhole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) 457705b261ecSmrg 457805b261ecSmrg# Compiler flag to generate thread-safe objects. 457905b261ecSmrgthread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) 458005b261ecSmrg 458105b261ecSmrg# Library versioning type. 458205b261ecSmrgversion_type=$version_type 458305b261ecSmrg 458405b261ecSmrg# Format of library name prefix. 458505b261ecSmrglibname_spec=$lt_libname_spec 458605b261ecSmrg 458705b261ecSmrg# List of archive names. First name is the real one, the rest are links. 458805b261ecSmrg# The last name is the one that the linker finds with -lNAME. 458905b261ecSmrglibrary_names_spec=$lt_library_names_spec 459005b261ecSmrg 459105b261ecSmrg# The coded name of the library, if different from the real name. 459205b261ecSmrgsoname_spec=$lt_soname_spec 459305b261ecSmrg 459405b261ecSmrg# Commands used to build and install an old-style archive. 459505b261ecSmrgRANLIB=$lt_RANLIB 459605b261ecSmrgold_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) 459705b261ecSmrgold_postinstall_cmds=$lt_old_postinstall_cmds 459805b261ecSmrgold_postuninstall_cmds=$lt_old_postuninstall_cmds 459905b261ecSmrg 460005b261ecSmrg# Create an old-style archive from a shared archive. 460105b261ecSmrgold_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) 460205b261ecSmrg 460305b261ecSmrg# Create a temporary old-style archive to link instead of a shared archive. 460405b261ecSmrgold_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) 460505b261ecSmrg 460605b261ecSmrg# Commands used to build and install a shared archive. 460705b261ecSmrgarchive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) 460805b261ecSmrgarchive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) 460905b261ecSmrgpostinstall_cmds=$lt_postinstall_cmds 461005b261ecSmrgpostuninstall_cmds=$lt_postuninstall_cmds 461105b261ecSmrg 461205b261ecSmrg# Commands used to build a loadable module (assumed same as above if empty) 461305b261ecSmrgmodule_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) 461405b261ecSmrgmodule_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) 461505b261ecSmrg 461605b261ecSmrg# Commands to strip libraries. 461705b261ecSmrgold_striplib=$lt_old_striplib 461805b261ecSmrgstriplib=$lt_striplib 461905b261ecSmrg 462005b261ecSmrg# Dependencies to place before the objects being linked to create a 462105b261ecSmrg# shared library. 462205b261ecSmrgpredep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) 462305b261ecSmrg 462405b261ecSmrg# Dependencies to place after the objects being linked to create a 462505b261ecSmrg# shared library. 462605b261ecSmrgpostdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) 462705b261ecSmrg 462805b261ecSmrg# Dependencies to place before the objects being linked to create a 462905b261ecSmrg# shared library. 463005b261ecSmrgpredeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) 463105b261ecSmrg 463205b261ecSmrg# Dependencies to place after the objects being linked to create a 463305b261ecSmrg# shared library. 463405b261ecSmrgpostdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) 463505b261ecSmrg 463605b261ecSmrg# The directories searched by this compiler when creating a shared 463705b261ecSmrg# library 463805b261ecSmrgcompiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1) 463905b261ecSmrg 464005b261ecSmrg# The library search path used internally by the compiler when linking 464105b261ecSmrg# a shared library. 464205b261ecSmrgcompiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) 464305b261ecSmrg 464405b261ecSmrg# Method to check whether dependent libraries are shared objects. 464505b261ecSmrgdeplibs_check_method=$lt_deplibs_check_method 464605b261ecSmrg 464705b261ecSmrg# Command to use when deplibs_check_method == file_magic. 464805b261ecSmrgfile_magic_cmd=$lt_file_magic_cmd 464905b261ecSmrg 465005b261ecSmrg# Flag that allows shared libraries with undefined symbols to be built. 465105b261ecSmrgallow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) 465205b261ecSmrg 465305b261ecSmrg# Flag that forces no undefined symbols. 465405b261ecSmrgno_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) 465505b261ecSmrg 465605b261ecSmrg# Commands used to finish a libtool library installation in a directory. 465705b261ecSmrgfinish_cmds=$lt_finish_cmds 465805b261ecSmrg 465905b261ecSmrg# Same as above, but a single script fragment to be evaled but not shown. 466005b261ecSmrgfinish_eval=$lt_finish_eval 466105b261ecSmrg 466205b261ecSmrg# Take the output of nm and produce a listing of raw symbols and C names. 466305b261ecSmrgglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 466405b261ecSmrg 466505b261ecSmrg# Transform the output of nm in a proper C declaration 466605b261ecSmrgglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 466705b261ecSmrg 466805b261ecSmrg# Transform the output of nm in a C name address pair 466905b261ecSmrgglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 467005b261ecSmrg 467105b261ecSmrg# This is the shared library runtime path variable. 467205b261ecSmrgrunpath_var=$runpath_var 467305b261ecSmrg 467405b261ecSmrg# This is the shared library path variable. 467505b261ecSmrgshlibpath_var=$shlibpath_var 467605b261ecSmrg 467705b261ecSmrg# Is shlibpath searched before the hard-coded library search path? 467805b261ecSmrgshlibpath_overrides_runpath=$shlibpath_overrides_runpath 467905b261ecSmrg 468005b261ecSmrg# How to hardcode a shared library path into an executable. 468105b261ecSmrghardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) 468205b261ecSmrg 468305b261ecSmrg# Whether we should hardcode library paths into libraries. 468405b261ecSmrghardcode_into_libs=$hardcode_into_libs 468505b261ecSmrg 468605b261ecSmrg# Flag to hardcode \$libdir into a binary during linking. 468705b261ecSmrg# This must work even if \$libdir does not exist. 468805b261ecSmrghardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) 468905b261ecSmrg 469005b261ecSmrg# If ld is used when linking, flag to hardcode \$libdir into 469105b261ecSmrg# a binary during linking. This must work even if \$libdir does 469205b261ecSmrg# not exist. 469305b261ecSmrghardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) 469405b261ecSmrg 469505b261ecSmrg# Whether we need a single -rpath flag with a separated argument. 469605b261ecSmrghardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) 469705b261ecSmrg 469805b261ecSmrg# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 469905b261ecSmrg# resulting binary. 470005b261ecSmrghardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) 470105b261ecSmrg 470205b261ecSmrg# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 470305b261ecSmrg# resulting binary. 470405b261ecSmrghardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) 470505b261ecSmrg 470605b261ecSmrg# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 470705b261ecSmrg# the resulting binary. 470805b261ecSmrghardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) 470905b261ecSmrg 471005b261ecSmrg# Set to yes if building a shared library automatically hardcodes DIR into the library 471105b261ecSmrg# and all subsequent libraries and executables linked against it. 471205b261ecSmrghardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1) 471305b261ecSmrg 471405b261ecSmrg# Variables whose values should be saved in libtool wrapper scripts and 471505b261ecSmrg# restored at relink time. 471605b261ecSmrgvariables_saved_for_relink="$variables_saved_for_relink" 471705b261ecSmrg 471805b261ecSmrg# Whether libtool must link a program against all its dependency libraries. 471905b261ecSmrglink_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) 472005b261ecSmrg 472105b261ecSmrg# Compile-time system search path for libraries 472205b261ecSmrgsys_lib_search_path_spec=$lt_sys_lib_search_path_spec 472305b261ecSmrg 472405b261ecSmrg# Run-time system search path for libraries 472505b261ecSmrgsys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 472605b261ecSmrg 472705b261ecSmrg# Fix the shell variable \$srcfile for the compiler. 472805b261ecSmrgfix_srcfile_path=$lt_fix_srcfile_path 472905b261ecSmrg 473005b261ecSmrg# Set to yes if exported symbols are required. 473105b261ecSmrgalways_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) 473205b261ecSmrg 473305b261ecSmrg# The commands to list exported symbols. 473405b261ecSmrgexport_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) 473505b261ecSmrg 473605b261ecSmrg# The commands to extract the exported symbol list from a shared archive. 473705b261ecSmrgextract_expsyms_cmds=$lt_extract_expsyms_cmds 473805b261ecSmrg 473905b261ecSmrg# Symbols that should not be listed in the preloaded symbols. 474005b261ecSmrgexclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) 474105b261ecSmrg 474205b261ecSmrg# Symbols that must always be exported. 474305b261ecSmrginclude_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) 474405b261ecSmrg 474505b261ecSmrgifelse([$1],[], 474605b261ecSmrg[# ### END LIBTOOL CONFIG], 474705b261ecSmrg[# ### END LIBTOOL TAG CONFIG: $tagname]) 474805b261ecSmrg 474905b261ecSmrg__EOF__ 475005b261ecSmrg 475105b261ecSmrgifelse([$1],[], [ 475205b261ecSmrg case $host_os in 475305b261ecSmrg aix3*) 475405b261ecSmrg cat <<\EOF >> "$cfgfile" 475505b261ecSmrg 475605b261ecSmrg# AIX sometimes has problems with the GCC collect2 program. For some 475705b261ecSmrg# reason, if we set the COLLECT_NAMES environment variable, the problems 475805b261ecSmrg# vanish in a puff of smoke. 475905b261ecSmrgif test "X${COLLECT_NAMES+set}" != Xset; then 476005b261ecSmrg COLLECT_NAMES= 476105b261ecSmrg export COLLECT_NAMES 476205b261ecSmrgfi 476305b261ecSmrgEOF 476405b261ecSmrg ;; 476505b261ecSmrg esac 476605b261ecSmrg 476705b261ecSmrg # We use sed instead of cat because bash on DJGPP gets confused if 476805b261ecSmrg # if finds mixed CR/LF and LF-only lines. Since sed operates in 476905b261ecSmrg # text mode, it properly converts lines to CR/LF. This bash problem 477005b261ecSmrg # is reportedly fixed, but why not run on old versions too? 477105b261ecSmrg sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 477205b261ecSmrg 477305b261ecSmrg mv -f "$cfgfile" "$ofile" || \ 477405b261ecSmrg (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 477505b261ecSmrg chmod +x "$ofile" 477605b261ecSmrg]) 477705b261ecSmrgelse 477805b261ecSmrg # If there is no Makefile yet, we rely on a make rule to execute 477905b261ecSmrg # `config.status --recheck' to rerun these tests and create the 478005b261ecSmrg # libtool script then. 478105b261ecSmrg ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 478205b261ecSmrg if test -f "$ltmain_in"; then 478305b261ecSmrg test -f Makefile && make "$ltmain" 478405b261ecSmrg fi 478505b261ecSmrgfi 478605b261ecSmrg])# AC_LIBTOOL_CONFIG 478705b261ecSmrg 478805b261ecSmrg 478905b261ecSmrg# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) 479005b261ecSmrg# ------------------------------------------- 479105b261ecSmrgAC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], 479205b261ecSmrg[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 479305b261ecSmrg 479405b261ecSmrg_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 479505b261ecSmrg 479605b261ecSmrgif test "$GCC" = yes; then 479705b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 479805b261ecSmrg 479905b261ecSmrg AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], 480005b261ecSmrg lt_cv_prog_compiler_rtti_exceptions, 480105b261ecSmrg [-fno-rtti -fno-exceptions], [], 480205b261ecSmrg [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) 480305b261ecSmrgfi 480405b261ecSmrg])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI 480505b261ecSmrg 480605b261ecSmrg 480705b261ecSmrg# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 480805b261ecSmrg# --------------------------------- 480905b261ecSmrgAC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], 481005b261ecSmrg[AC_REQUIRE([AC_CANONICAL_HOST]) 481105b261ecSmrgAC_REQUIRE([LT_AC_PROG_SED]) 481205b261ecSmrgAC_REQUIRE([AC_PROG_NM]) 481305b261ecSmrgAC_REQUIRE([AC_OBJEXT]) 481405b261ecSmrg# Check for command to grab the raw symbol name followed by C symbol from nm. 481505b261ecSmrgAC_MSG_CHECKING([command to parse $NM output from $compiler object]) 481605b261ecSmrgAC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], 481705b261ecSmrg[ 481805b261ecSmrg# These are sane defaults that work on at least a few old systems. 481905b261ecSmrg# [They come from Ultrix. What could be older than Ultrix?!! ;)] 482005b261ecSmrg 482105b261ecSmrg# Character class describing NM global symbol codes. 482205b261ecSmrgsymcode='[[BCDEGRST]]' 482305b261ecSmrg 482405b261ecSmrg# Regexp to match symbols that can be accessed directly from C. 482505b261ecSmrgsympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 482605b261ecSmrg 482705b261ecSmrg# Transform an extracted symbol line into a proper C declaration 482805b261ecSmrglt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 482905b261ecSmrg 483005b261ecSmrg# Transform an extracted symbol line into symbol name and symbol address 483105b261ecSmrglt_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'" 483205b261ecSmrg 483305b261ecSmrg# Define system-specific variables. 483405b261ecSmrgcase $host_os in 483505b261ecSmrgaix*) 483605b261ecSmrg symcode='[[BCDT]]' 483705b261ecSmrg ;; 483805b261ecSmrgcygwin* | mingw* | pw32*) 483905b261ecSmrg symcode='[[ABCDGISTW]]' 484005b261ecSmrg ;; 484105b261ecSmrghpux*) # Its linker distinguishes data from code symbols 484205b261ecSmrg if test "$host_cpu" = ia64; then 484305b261ecSmrg symcode='[[ABCDEGRST]]' 484405b261ecSmrg fi 484505b261ecSmrg lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 484605b261ecSmrg 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'" 484705b261ecSmrg ;; 484805b261ecSmrglinux* | k*bsd*-gnu) 484905b261ecSmrg if test "$host_cpu" = ia64; then 485005b261ecSmrg symcode='[[ABCDGIRSTW]]' 485105b261ecSmrg lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 485205b261ecSmrg 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'" 485305b261ecSmrg fi 485405b261ecSmrg ;; 485505b261ecSmrgirix* | nonstopux*) 485605b261ecSmrg symcode='[[BCDEGRST]]' 485705b261ecSmrg ;; 485805b261ecSmrgosf*) 485905b261ecSmrg symcode='[[BCDEGQRST]]' 486005b261ecSmrg ;; 486105b261ecSmrgsolaris*) 486205b261ecSmrg symcode='[[BDRT]]' 486305b261ecSmrg ;; 486405b261ecSmrgsco3.2v5*) 486505b261ecSmrg symcode='[[DT]]' 486605b261ecSmrg ;; 486705b261ecSmrgsysv4.2uw2*) 486805b261ecSmrg symcode='[[DT]]' 486905b261ecSmrg ;; 487005b261ecSmrgsysv5* | sco5v6* | unixware* | OpenUNIX*) 487105b261ecSmrg symcode='[[ABDT]]' 487205b261ecSmrg ;; 487305b261ecSmrgsysv4) 487405b261ecSmrg symcode='[[DFNSTU]]' 487505b261ecSmrg ;; 487605b261ecSmrgesac 487705b261ecSmrg 487805b261ecSmrg# Handle CRLF in mingw tool chain 487905b261ecSmrgopt_cr= 488005b261ecSmrgcase $build_os in 488105b261ecSmrgmingw*) 488205b261ecSmrg opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 488305b261ecSmrg ;; 488405b261ecSmrgesac 488505b261ecSmrg 488605b261ecSmrg# If we're using GNU nm, then use its standard symbol codes. 488705b261ecSmrgcase `$NM -V 2>&1` in 488805b261ecSmrg*GNU* | *'with BFD'*) 488905b261ecSmrg symcode='[[ABCDGIRSTW]]' ;; 489005b261ecSmrgesac 489105b261ecSmrg 489205b261ecSmrg# Try without a prefix undercore, then with it. 489305b261ecSmrgfor ac_symprfx in "" "_"; do 489405b261ecSmrg 489505b261ecSmrg # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 489605b261ecSmrg symxfrm="\\1 $ac_symprfx\\2 \\2" 489705b261ecSmrg 489805b261ecSmrg # Write the raw and C identifiers. 489905b261ecSmrg lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 490005b261ecSmrg 490105b261ecSmrg # Check to see that the pipe works correctly. 490205b261ecSmrg pipe_works=no 490305b261ecSmrg 490405b261ecSmrg rm -f conftest* 490505b261ecSmrg cat > conftest.$ac_ext <<EOF 490605b261ecSmrg#ifdef __cplusplus 490705b261ecSmrgextern "C" { 490805b261ecSmrg#endif 490905b261ecSmrgchar nm_test_var; 491005b261ecSmrgvoid nm_test_func(){} 491105b261ecSmrg#ifdef __cplusplus 491205b261ecSmrg} 491305b261ecSmrg#endif 491405b261ecSmrgint main(){nm_test_var='a';nm_test_func();return(0);} 491505b261ecSmrgEOF 491605b261ecSmrg 491705b261ecSmrg if AC_TRY_EVAL(ac_compile); then 491805b261ecSmrg # Now try to grab the symbols. 491905b261ecSmrg nlist=conftest.nm 492005b261ecSmrg if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then 492105b261ecSmrg # Try sorting and uniquifying the output. 492205b261ecSmrg if sort "$nlist" | uniq > "$nlist"T; then 492305b261ecSmrg mv -f "$nlist"T "$nlist" 492405b261ecSmrg else 492505b261ecSmrg rm -f "$nlist"T 492605b261ecSmrg fi 492705b261ecSmrg 492805b261ecSmrg # Make sure that we snagged all the symbols we need. 492905b261ecSmrg if grep ' nm_test_var$' "$nlist" >/dev/null; then 493005b261ecSmrg if grep ' nm_test_func$' "$nlist" >/dev/null; then 493105b261ecSmrg cat <<EOF > conftest.$ac_ext 493205b261ecSmrg#ifdef __cplusplus 493305b261ecSmrgextern "C" { 493405b261ecSmrg#endif 493505b261ecSmrg 493605b261ecSmrgEOF 493705b261ecSmrg # Now generate the symbol file. 493805b261ecSmrg eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 493905b261ecSmrg 494005b261ecSmrg cat <<EOF >> conftest.$ac_ext 494105b261ecSmrg#if defined (__STDC__) && __STDC__ 494205b261ecSmrg# define lt_ptr_t void * 494305b261ecSmrg#else 494405b261ecSmrg# define lt_ptr_t char * 494505b261ecSmrg# define const 494605b261ecSmrg#endif 494705b261ecSmrg 494805b261ecSmrg/* The mapping between symbol names and symbols. */ 494905b261ecSmrgconst struct { 495005b261ecSmrg const char *name; 495105b261ecSmrg lt_ptr_t address; 495205b261ecSmrg} 495305b261ecSmrglt_preloaded_symbols[[]] = 495405b261ecSmrg{ 495505b261ecSmrgEOF 495605b261ecSmrg $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 495705b261ecSmrg cat <<\EOF >> conftest.$ac_ext 495805b261ecSmrg {0, (lt_ptr_t) 0} 495905b261ecSmrg}; 496005b261ecSmrg 496105b261ecSmrg#ifdef __cplusplus 496205b261ecSmrg} 496305b261ecSmrg#endif 496405b261ecSmrgEOF 496505b261ecSmrg # Now try linking the two files. 496605b261ecSmrg mv conftest.$ac_objext conftstm.$ac_objext 496705b261ecSmrg lt_save_LIBS="$LIBS" 496805b261ecSmrg lt_save_CFLAGS="$CFLAGS" 496905b261ecSmrg LIBS="conftstm.$ac_objext" 497005b261ecSmrg CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" 497105b261ecSmrg if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then 497205b261ecSmrg pipe_works=yes 497305b261ecSmrg fi 497405b261ecSmrg LIBS="$lt_save_LIBS" 497505b261ecSmrg CFLAGS="$lt_save_CFLAGS" 497605b261ecSmrg else 497705b261ecSmrg echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD 497805b261ecSmrg fi 497905b261ecSmrg else 498005b261ecSmrg echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD 498105b261ecSmrg fi 498205b261ecSmrg else 498305b261ecSmrg echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD 498405b261ecSmrg fi 498505b261ecSmrg else 498605b261ecSmrg echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD 498705b261ecSmrg cat conftest.$ac_ext >&5 498805b261ecSmrg fi 498905b261ecSmrg rm -rf conftest* conftst* 499005b261ecSmrg 499105b261ecSmrg # Do not use the global_symbol_pipe unless it works. 499205b261ecSmrg if test "$pipe_works" = yes; then 499305b261ecSmrg break 499405b261ecSmrg else 499505b261ecSmrg lt_cv_sys_global_symbol_pipe= 499605b261ecSmrg fi 499705b261ecSmrgdone 499805b261ecSmrg]) 499905b261ecSmrgif test -z "$lt_cv_sys_global_symbol_pipe"; then 500005b261ecSmrg lt_cv_sys_global_symbol_to_cdecl= 500105b261ecSmrgfi 500205b261ecSmrgif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 500305b261ecSmrg AC_MSG_RESULT(failed) 500405b261ecSmrgelse 500505b261ecSmrg AC_MSG_RESULT(ok) 500605b261ecSmrgfi 500705b261ecSmrg]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 500805b261ecSmrg 500905b261ecSmrg 501005b261ecSmrg# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) 501105b261ecSmrg# --------------------------------------- 501205b261ecSmrgAC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], 501305b261ecSmrg[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= 501405b261ecSmrg_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 501505b261ecSmrg_LT_AC_TAGVAR(lt_prog_compiler_static, $1)= 501605b261ecSmrg 501705b261ecSmrgAC_MSG_CHECKING([for $compiler option to produce PIC]) 501805b261ecSmrg ifelse([$1],[CXX],[ 501905b261ecSmrg # C++ specific cases for pic, static, wl, etc. 502005b261ecSmrg if test "$GXX" = yes; then 502105b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 502205b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 502305b261ecSmrg 502405b261ecSmrg case $host_os in 502505b261ecSmrg aix*) 502605b261ecSmrg # All AIX code is PIC. 502705b261ecSmrg if test "$host_cpu" = ia64; then 502805b261ecSmrg # AIX 5 now supports IA64 processor 502905b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 503005b261ecSmrg fi 503105b261ecSmrg ;; 503205b261ecSmrg amigaos*) 503305b261ecSmrg # FIXME: we need at least 68020 code to build shared libraries, but 503405b261ecSmrg # adding the `-m68020' flag to GCC prevents building anything better, 503505b261ecSmrg # like `-m68040'. 503605b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 503705b261ecSmrg ;; 503805b261ecSmrg beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 503905b261ecSmrg # PIC is the default for these OSes. 504005b261ecSmrg ;; 504105b261ecSmrg mingw* | cygwin* | os2* | pw32*) 504205b261ecSmrg # This hack is so that the source file can tell whether it is being 504305b261ecSmrg # built for inclusion in a dll (and should export symbols for example). 504405b261ecSmrg # Although the cygwin gcc ignores -fPIC, still need this for old-style 504505b261ecSmrg # (--disable-auto-import) libraries 504605b261ecSmrg m4_if([$1], [GCJ], [], 504705b261ecSmrg [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 504805b261ecSmrg ;; 504905b261ecSmrg darwin* | rhapsody*) 505005b261ecSmrg # PIC is the default on this platform 505105b261ecSmrg # Common symbols not allowed in MH_DYLIB files 505205b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 505305b261ecSmrg ;; 505405b261ecSmrg *djgpp*) 505505b261ecSmrg # DJGPP does not support shared libraries at all 505605b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 505705b261ecSmrg ;; 505805b261ecSmrg interix[[3-9]]*) 505905b261ecSmrg # Interix 3.x gcc -fpic/-fPIC options generate broken code. 506005b261ecSmrg # Instead, we relocate shared libraries at runtime. 506105b261ecSmrg ;; 506205b261ecSmrg sysv4*MP*) 506305b261ecSmrg if test -d /usr/nec; then 506405b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 506505b261ecSmrg fi 506605b261ecSmrg ;; 506705b261ecSmrg hpux*) 506805b261ecSmrg # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 506905b261ecSmrg # not for PA HP-UX. 507005b261ecSmrg case $host_cpu in 507105b261ecSmrg hppa*64*|ia64*) 507205b261ecSmrg ;; 507305b261ecSmrg *) 507405b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 507505b261ecSmrg ;; 507605b261ecSmrg esac 507705b261ecSmrg ;; 507805b261ecSmrg *) 507905b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 508005b261ecSmrg ;; 508105b261ecSmrg esac 508205b261ecSmrg else 508305b261ecSmrg case $host_os in 508405b261ecSmrg aix[[4-9]]*) 508505b261ecSmrg # All AIX code is PIC. 508605b261ecSmrg if test "$host_cpu" = ia64; then 508705b261ecSmrg # AIX 5 now supports IA64 processor 508805b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 508905b261ecSmrg else 509005b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 509105b261ecSmrg fi 509205b261ecSmrg ;; 509305b261ecSmrg chorus*) 509405b261ecSmrg case $cc_basename in 509505b261ecSmrg cxch68*) 509605b261ecSmrg # Green Hills C++ Compiler 509705b261ecSmrg # _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" 509805b261ecSmrg ;; 509905b261ecSmrg esac 510005b261ecSmrg ;; 510105b261ecSmrg darwin*) 510205b261ecSmrg # PIC is the default on this platform 510305b261ecSmrg # Common symbols not allowed in MH_DYLIB files 510405b261ecSmrg case $cc_basename in 510505b261ecSmrg xlc*) 510605b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' 510705b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 510805b261ecSmrg ;; 510905b261ecSmrg esac 511005b261ecSmrg ;; 511105b261ecSmrg dgux*) 511205b261ecSmrg case $cc_basename in 511305b261ecSmrg ec++*) 511405b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 511505b261ecSmrg ;; 511605b261ecSmrg ghcx*) 511705b261ecSmrg # Green Hills C++ Compiler 511805b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 511905b261ecSmrg ;; 512005b261ecSmrg *) 512105b261ecSmrg ;; 512205b261ecSmrg esac 512305b261ecSmrg ;; 512405b261ecSmrg freebsd* | dragonfly*) 512505b261ecSmrg # FreeBSD uses GNU C++ 512605b261ecSmrg ;; 512705b261ecSmrg hpux9* | hpux10* | hpux11*) 512805b261ecSmrg case $cc_basename in 512905b261ecSmrg CC*) 513005b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 513105b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 513205b261ecSmrg if test "$host_cpu" != ia64; then 513305b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 513405b261ecSmrg fi 513505b261ecSmrg ;; 513605b261ecSmrg aCC*) 513705b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 513805b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 513905b261ecSmrg case $host_cpu in 514005b261ecSmrg hppa*64*|ia64*) 514105b261ecSmrg # +Z the default 514205b261ecSmrg ;; 514305b261ecSmrg *) 514405b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 514505b261ecSmrg ;; 514605b261ecSmrg esac 514705b261ecSmrg ;; 514805b261ecSmrg *) 514905b261ecSmrg ;; 515005b261ecSmrg esac 515105b261ecSmrg ;; 515205b261ecSmrg interix*) 515305b261ecSmrg # This is c89, which is MS Visual C++ (no shared libs) 515405b261ecSmrg # Anyone wants to do a port? 515505b261ecSmrg ;; 515605b261ecSmrg irix5* | irix6* | nonstopux*) 515705b261ecSmrg case $cc_basename in 515805b261ecSmrg CC*) 515905b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 516005b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 516105b261ecSmrg # CC pic flag -KPIC is the default. 516205b261ecSmrg ;; 516305b261ecSmrg *) 516405b261ecSmrg ;; 516505b261ecSmrg esac 516605b261ecSmrg ;; 516705b261ecSmrg linux* | k*bsd*-gnu) 516805b261ecSmrg case $cc_basename in 516905b261ecSmrg KCC*) 517005b261ecSmrg # KAI C++ Compiler 517105b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 517205b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 517305b261ecSmrg ;; 517405b261ecSmrg icpc* | ecpc*) 517505b261ecSmrg # Intel C++ 517605b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 517705b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 517805b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 517905b261ecSmrg ;; 518005b261ecSmrg pgCC* | pgcpp*) 518105b261ecSmrg # Portland Group C++ compiler. 518205b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 518305b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 518405b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 518505b261ecSmrg ;; 518605b261ecSmrg cxx*) 518705b261ecSmrg # Compaq C++ 518805b261ecSmrg # Make sure the PIC flag is empty. It appears that all Alpha 518905b261ecSmrg # Linux and Compaq Tru64 Unix objects are PIC. 519005b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 519105b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 519205b261ecSmrg ;; 519305b261ecSmrg *) 519405b261ecSmrg case `$CC -V 2>&1 | sed 5q` in 519505b261ecSmrg *Sun\ C*) 519605b261ecSmrg # Sun C++ 5.9 519705b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 519805b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 519905b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 520005b261ecSmrg ;; 520105b261ecSmrg esac 520205b261ecSmrg ;; 520305b261ecSmrg esac 520405b261ecSmrg ;; 520505b261ecSmrg lynxos*) 520605b261ecSmrg ;; 520705b261ecSmrg m88k*) 520805b261ecSmrg ;; 520905b261ecSmrg mvs*) 521005b261ecSmrg case $cc_basename in 521105b261ecSmrg cxx*) 521205b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 521305b261ecSmrg ;; 521405b261ecSmrg *) 521505b261ecSmrg ;; 521605b261ecSmrg esac 521705b261ecSmrg ;; 521805b261ecSmrg netbsd* | netbsdelf*-gnu) 521905b261ecSmrg ;; 522005b261ecSmrg osf3* | osf4* | osf5*) 522105b261ecSmrg case $cc_basename in 522205b261ecSmrg KCC*) 522305b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 522405b261ecSmrg ;; 522505b261ecSmrg RCC*) 522605b261ecSmrg # Rational C++ 2.4.1 522705b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 522805b261ecSmrg ;; 522905b261ecSmrg cxx*) 523005b261ecSmrg # Digital/Compaq C++ 523105b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 523205b261ecSmrg # Make sure the PIC flag is empty. It appears that all Alpha 523305b261ecSmrg # Linux and Compaq Tru64 Unix objects are PIC. 523405b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 523505b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 523605b261ecSmrg ;; 523705b261ecSmrg *) 523805b261ecSmrg ;; 523905b261ecSmrg esac 524005b261ecSmrg ;; 524105b261ecSmrg psos*) 524205b261ecSmrg ;; 524305b261ecSmrg solaris*) 524405b261ecSmrg case $cc_basename in 524505b261ecSmrg CC*) 524605b261ecSmrg # Sun C++ 4.2, 5.x and Centerline C++ 524705b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 524805b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 524905b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 525005b261ecSmrg ;; 525105b261ecSmrg gcx*) 525205b261ecSmrg # Green Hills C++ Compiler 525305b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 525405b261ecSmrg ;; 525505b261ecSmrg *) 525605b261ecSmrg ;; 525705b261ecSmrg esac 525805b261ecSmrg ;; 525905b261ecSmrg sunos4*) 526005b261ecSmrg case $cc_basename in 526105b261ecSmrg CC*) 526205b261ecSmrg # Sun C++ 4.x 526305b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 526405b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 526505b261ecSmrg ;; 526605b261ecSmrg lcc*) 526705b261ecSmrg # Lucid 526805b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 526905b261ecSmrg ;; 527005b261ecSmrg *) 527105b261ecSmrg ;; 527205b261ecSmrg esac 527305b261ecSmrg ;; 527405b261ecSmrg tandem*) 527505b261ecSmrg case $cc_basename in 527605b261ecSmrg NCC*) 527705b261ecSmrg # NonStop-UX NCC 3.20 527805b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 527905b261ecSmrg ;; 528005b261ecSmrg *) 528105b261ecSmrg ;; 528205b261ecSmrg esac 528305b261ecSmrg ;; 528405b261ecSmrg sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 528505b261ecSmrg case $cc_basename in 528605b261ecSmrg CC*) 528705b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 528805b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 528905b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 529005b261ecSmrg ;; 529105b261ecSmrg esac 529205b261ecSmrg ;; 529305b261ecSmrg vxworks*) 529405b261ecSmrg ;; 529505b261ecSmrg *) 529605b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 529705b261ecSmrg ;; 529805b261ecSmrg esac 529905b261ecSmrg fi 530005b261ecSmrg], 530105b261ecSmrg[ 530205b261ecSmrg if test "$GCC" = yes; then 530305b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 530405b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 530505b261ecSmrg 530605b261ecSmrg case $host_os in 530705b261ecSmrg aix*) 530805b261ecSmrg # All AIX code is PIC. 530905b261ecSmrg if test "$host_cpu" = ia64; then 531005b261ecSmrg # AIX 5 now supports IA64 processor 531105b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 531205b261ecSmrg fi 531305b261ecSmrg ;; 531405b261ecSmrg 531505b261ecSmrg amigaos*) 531605b261ecSmrg # FIXME: we need at least 68020 code to build shared libraries, but 531705b261ecSmrg # adding the `-m68020' flag to GCC prevents building anything better, 531805b261ecSmrg # like `-m68040'. 531905b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 532005b261ecSmrg ;; 532105b261ecSmrg 532205b261ecSmrg beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 532305b261ecSmrg # PIC is the default for these OSes. 532405b261ecSmrg ;; 532505b261ecSmrg 532605b261ecSmrg mingw* | cygwin* | pw32* | os2*) 532705b261ecSmrg # This hack is so that the source file can tell whether it is being 532805b261ecSmrg # built for inclusion in a dll (and should export symbols for example). 532905b261ecSmrg # Although the cygwin gcc ignores -fPIC, still need this for old-style 533005b261ecSmrg # (--disable-auto-import) libraries 533105b261ecSmrg m4_if([$1], [GCJ], [], 533205b261ecSmrg [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 533305b261ecSmrg ;; 533405b261ecSmrg 533505b261ecSmrg darwin* | rhapsody*) 533605b261ecSmrg # PIC is the default on this platform 533705b261ecSmrg # Common symbols not allowed in MH_DYLIB files 533805b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 533905b261ecSmrg ;; 534005b261ecSmrg 534105b261ecSmrg interix[[3-9]]*) 534205b261ecSmrg # Interix 3.x gcc -fpic/-fPIC options generate broken code. 534305b261ecSmrg # Instead, we relocate shared libraries at runtime. 534405b261ecSmrg ;; 534505b261ecSmrg 534605b261ecSmrg msdosdjgpp*) 534705b261ecSmrg # Just because we use GCC doesn't mean we suddenly get shared libraries 534805b261ecSmrg # on systems that don't support them. 534905b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 535005b261ecSmrg enable_shared=no 535105b261ecSmrg ;; 535205b261ecSmrg 535305b261ecSmrg sysv4*MP*) 535405b261ecSmrg if test -d /usr/nec; then 535505b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 535605b261ecSmrg fi 535705b261ecSmrg ;; 535805b261ecSmrg 535905b261ecSmrg hpux*) 536005b261ecSmrg # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 536105b261ecSmrg # not for PA HP-UX. 536205b261ecSmrg case $host_cpu in 536305b261ecSmrg hppa*64*|ia64*) 536405b261ecSmrg # +Z the default 536505b261ecSmrg ;; 536605b261ecSmrg *) 536705b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 536805b261ecSmrg ;; 536905b261ecSmrg esac 537005b261ecSmrg ;; 537105b261ecSmrg 537205b261ecSmrg *) 537305b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 537405b261ecSmrg ;; 537505b261ecSmrg esac 537605b261ecSmrg else 537705b261ecSmrg # PORTME Check for flag to pass linker flags through the system compiler. 537805b261ecSmrg case $host_os in 537905b261ecSmrg aix*) 538005b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 538105b261ecSmrg if test "$host_cpu" = ia64; then 538205b261ecSmrg # AIX 5 now supports IA64 processor 538305b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 538405b261ecSmrg else 538505b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 538605b261ecSmrg fi 538705b261ecSmrg ;; 538805b261ecSmrg darwin*) 538905b261ecSmrg # PIC is the default on this platform 539005b261ecSmrg # Common symbols not allowed in MH_DYLIB files 539105b261ecSmrg case $cc_basename in 539205b261ecSmrg xlc*) 539305b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' 539405b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 539505b261ecSmrg ;; 539605b261ecSmrg esac 539705b261ecSmrg ;; 539805b261ecSmrg 539905b261ecSmrg mingw* | cygwin* | pw32* | os2*) 540005b261ecSmrg # This hack is so that the source file can tell whether it is being 540105b261ecSmrg # built for inclusion in a dll (and should export symbols for example). 540205b261ecSmrg m4_if([$1], [GCJ], [], 540305b261ecSmrg [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 540405b261ecSmrg ;; 540505b261ecSmrg 540605b261ecSmrg hpux9* | hpux10* | hpux11*) 540705b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 540805b261ecSmrg # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 540905b261ecSmrg # not for PA HP-UX. 541005b261ecSmrg case $host_cpu in 541105b261ecSmrg hppa*64*|ia64*) 541205b261ecSmrg # +Z the default 541305b261ecSmrg ;; 541405b261ecSmrg *) 541505b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 541605b261ecSmrg ;; 541705b261ecSmrg esac 541805b261ecSmrg # Is there a better lt_prog_compiler_static that works with the bundled CC? 541905b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 542005b261ecSmrg ;; 542105b261ecSmrg 542205b261ecSmrg irix5* | irix6* | nonstopux*) 542305b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 542405b261ecSmrg # PIC (with -KPIC) is the default. 542505b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 542605b261ecSmrg ;; 542705b261ecSmrg 542805b261ecSmrg newsos6) 542905b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 543005b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 543105b261ecSmrg ;; 543205b261ecSmrg 543305b261ecSmrg linux* | k*bsd*-gnu) 543405b261ecSmrg case $cc_basename in 543505b261ecSmrg icc* | ecc*) 543605b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 543705b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 543805b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 543905b261ecSmrg ;; 544005b261ecSmrg pgcc* | pgf77* | pgf90* | pgf95*) 544105b261ecSmrg # Portland Group compilers (*not* the Pentium gcc compiler, 544205b261ecSmrg # which looks to be a dead project) 544305b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 544405b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 544505b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 544605b261ecSmrg ;; 544705b261ecSmrg ccc*) 544805b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 544905b261ecSmrg # All Alpha code is PIC. 545005b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 545105b261ecSmrg ;; 545205b261ecSmrg *) 545305b261ecSmrg case `$CC -V 2>&1 | sed 5q` in 545405b261ecSmrg *Sun\ C*) 545505b261ecSmrg # Sun C 5.9 545605b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 545705b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 545805b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 545905b261ecSmrg ;; 546005b261ecSmrg *Sun\ F*) 546105b261ecSmrg # Sun Fortran 8.3 passes all unrecognized flags to the linker 546205b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 546305b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 546405b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='' 546505b261ecSmrg ;; 546605b261ecSmrg esac 546705b261ecSmrg ;; 546805b261ecSmrg esac 546905b261ecSmrg ;; 547005b261ecSmrg 547105b261ecSmrg osf3* | osf4* | osf5*) 547205b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 547305b261ecSmrg # All OSF/1 code is PIC. 547405b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 547505b261ecSmrg ;; 547605b261ecSmrg 547705b261ecSmrg rdos*) 547805b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 547905b261ecSmrg ;; 548005b261ecSmrg 548105b261ecSmrg solaris*) 548205b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 548305b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 548405b261ecSmrg case $cc_basename in 548505b261ecSmrg f77* | f90* | f95*) 548605b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; 548705b261ecSmrg *) 548805b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; 548905b261ecSmrg esac 549005b261ecSmrg ;; 549105b261ecSmrg 549205b261ecSmrg sunos4*) 549305b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 549405b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 549505b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 549605b261ecSmrg ;; 549705b261ecSmrg 549805b261ecSmrg sysv4 | sysv4.2uw2* | sysv4.3*) 549905b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 550005b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 550105b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 550205b261ecSmrg ;; 550305b261ecSmrg 550405b261ecSmrg sysv4*MP*) 550505b261ecSmrg if test -d /usr/nec ;then 550605b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 550705b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 550805b261ecSmrg fi 550905b261ecSmrg ;; 551005b261ecSmrg 551105b261ecSmrg sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 551205b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 551305b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 551405b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 551505b261ecSmrg ;; 551605b261ecSmrg 551705b261ecSmrg unicos*) 551805b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 551905b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 552005b261ecSmrg ;; 552105b261ecSmrg 552205b261ecSmrg uts4*) 552305b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 552405b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 552505b261ecSmrg ;; 552605b261ecSmrg 552705b261ecSmrg *) 552805b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 552905b261ecSmrg ;; 553005b261ecSmrg esac 553105b261ecSmrg fi 553205b261ecSmrg]) 553305b261ecSmrgAC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) 553405b261ecSmrg 553505b261ecSmrg# 553605b261ecSmrg# Check to make sure the PIC flag actually works. 553705b261ecSmrg# 553805b261ecSmrgif test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then 553905b261ecSmrg AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], 554005b261ecSmrg _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1), 554105b261ecSmrg [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], 554205b261ecSmrg [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in 554305b261ecSmrg "" | " "*) ;; 554405b261ecSmrg *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; 554505b261ecSmrg esac], 554605b261ecSmrg [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 554705b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 554805b261ecSmrgfi 554905b261ecSmrgcase $host_os in 555005b261ecSmrg # For platforms which do not support PIC, -DPIC is meaningless: 555105b261ecSmrg *djgpp*) 555205b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 555305b261ecSmrg ;; 555405b261ecSmrg *) 555505b261ecSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" 555605b261ecSmrg ;; 555705b261ecSmrgesac 555805b261ecSmrg 555905b261ecSmrg# 556005b261ecSmrg# Check to make sure the static flag actually works. 556105b261ecSmrg# 556205b261ecSmrgwl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\" 556305b261ecSmrgAC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], 556405b261ecSmrg _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1), 556505b261ecSmrg $lt_tmp_static_flag, 556605b261ecSmrg [], 556705b261ecSmrg [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) 556805b261ecSmrg]) 556905b261ecSmrg 557005b261ecSmrg 557105b261ecSmrg# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) 557205b261ecSmrg# ------------------------------------ 557305b261ecSmrg# See if the linker supports building shared libraries. 557405b261ecSmrgAC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], 557505b261ecSmrg[AC_REQUIRE([LT_AC_PROG_SED])dnl 557605b261ecSmrgAC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 557705b261ecSmrgifelse([$1],[CXX],[ 557805b261ecSmrg _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 557905b261ecSmrg case $host_os in 558005b261ecSmrg aix[[4-9]]*) 558105b261ecSmrg # If we're using GNU nm, then we don't want the "-C" option. 558205b261ecSmrg # -C means demangle to AIX nm, but means don't demangle with GNU nm 558305b261ecSmrg if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 558405b261ecSmrg _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' 558505b261ecSmrg else 558605b261ecSmrg _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' 558705b261ecSmrg fi 558805b261ecSmrg ;; 558905b261ecSmrg pw32*) 559005b261ecSmrg _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" 559105b261ecSmrg ;; 559205b261ecSmrg cygwin* | mingw*) 559305b261ecSmrg _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' 559405b261ecSmrg ;; 559505b261ecSmrg linux* | k*bsd*-gnu) 559605b261ecSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=no 559705b261ecSmrg ;; 559805b261ecSmrg *) 559905b261ecSmrg _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 560005b261ecSmrg ;; 560105b261ecSmrg esac 560205b261ecSmrg _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 560305b261ecSmrg],[ 560405b261ecSmrg runpath_var= 560505b261ecSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)= 560605b261ecSmrg _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no 560705b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)= 560805b261ecSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)= 560905b261ecSmrg _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= 561005b261ecSmrg _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= 561105b261ecSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 561205b261ecSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 561305b261ecSmrg _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= 561405b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 561505b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 561605b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 561705b261ecSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no 561805b261ecSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=no 561905b261ecSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 562005b261ecSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown 562105b261ecSmrg _LT_AC_TAGVAR(hardcode_automatic, $1)=no 562205b261ecSmrg _LT_AC_TAGVAR(module_cmds, $1)= 562305b261ecSmrg _LT_AC_TAGVAR(module_expsym_cmds, $1)= 562405b261ecSmrg _LT_AC_TAGVAR(always_export_symbols, $1)=no 562505b261ecSmrg _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 562605b261ecSmrg # include_expsyms should be a list of space-separated symbols to be *always* 562705b261ecSmrg # included in the symbol list 562805b261ecSmrg _LT_AC_TAGVAR(include_expsyms, $1)= 562905b261ecSmrg # exclude_expsyms can be an extended regexp of symbols to exclude 563005b261ecSmrg # it will be wrapped by ` (' and `)$', so one must not match beginning or 563105b261ecSmrg # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 563205b261ecSmrg # as well as any symbol that contains `d'. 563305b261ecSmrg _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 563405b261ecSmrg # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 563505b261ecSmrg # platforms (ab)use it in PIC code, but their linkers get confused if 563605b261ecSmrg # the symbol is explicitly referenced. Since portable code cannot 563705b261ecSmrg # rely on this symbol name, it's probably fine to never include it in 563805b261ecSmrg # preloaded symbol tables. 563905b261ecSmrg # Exclude shared library initialization/finalization symbols. 564005b261ecSmrgdnl Note also adjust exclude_expsyms for C++ above. 564105b261ecSmrg extract_expsyms_cmds= 564205b261ecSmrg # Just being paranoid about ensuring that cc_basename is set. 564305b261ecSmrg _LT_CC_BASENAME([$compiler]) 564405b261ecSmrg case $host_os in 564505b261ecSmrg cygwin* | mingw* | pw32*) 564605b261ecSmrg # FIXME: the MSVC++ port hasn't been tested in a loooong time 564705b261ecSmrg # When not using gcc, we currently assume that we are using 564805b261ecSmrg # Microsoft Visual C++. 564905b261ecSmrg if test "$GCC" != yes; then 565005b261ecSmrg with_gnu_ld=no 565105b261ecSmrg fi 565205b261ecSmrg ;; 565305b261ecSmrg interix*) 565405b261ecSmrg # we just hope/assume this is gcc and not c89 (= MSVC++) 565505b261ecSmrg with_gnu_ld=yes 565605b261ecSmrg ;; 565705b261ecSmrg openbsd*) 565805b261ecSmrg with_gnu_ld=no 565905b261ecSmrg ;; 566005b261ecSmrg esac 566105b261ecSmrg 566205b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=yes 566305b261ecSmrg if test "$with_gnu_ld" = yes; then 566405b261ecSmrg # If archive_cmds runs LD, not CC, wlarc should be empty 566505b261ecSmrg wlarc='${wl}' 566605b261ecSmrg 566705b261ecSmrg # Set some defaults for GNU ld with shared library support. These 566805b261ecSmrg # are reset later if shared libraries are not supported. Putting them 566905b261ecSmrg # here allows them to be overridden if necessary. 567005b261ecSmrg runpath_var=LD_RUN_PATH 567105b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 567205b261ecSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 567305b261ecSmrg # ancient GNU ld didn't support --whole-archive et. al. 567405b261ecSmrg if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 567505b261ecSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 567605b261ecSmrg else 567705b261ecSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 567805b261ecSmrg fi 567905b261ecSmrg supports_anon_versioning=no 568005b261ecSmrg case `$LD -v 2>/dev/null` in 568105b261ecSmrg *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 568205b261ecSmrg *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 568305b261ecSmrg *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 568405b261ecSmrg *\ 2.11.*) ;; # other 2.11 versions 568505b261ecSmrg *) supports_anon_versioning=yes ;; 568605b261ecSmrg esac 568705b261ecSmrg 568805b261ecSmrg # See if GNU ld supports shared libraries. 568905b261ecSmrg case $host_os in 569005b261ecSmrg aix[[3-9]]*) 569105b261ecSmrg # On AIX/PPC, the GNU linker is very broken 569205b261ecSmrg if test "$host_cpu" != ia64; then 569305b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 569405b261ecSmrg cat <<EOF 1>&2 569505b261ecSmrg 569605b261ecSmrg*** Warning: the GNU linker, at least up to release 2.9.1, is reported 569705b261ecSmrg*** to be unable to reliably create shared libraries on AIX. 569805b261ecSmrg*** Therefore, libtool is disabling shared libraries support. If you 569905b261ecSmrg*** really care for shared libraries, you may want to modify your PATH 570005b261ecSmrg*** so that a non-GNU linker is found, and then restart. 570105b261ecSmrg 570205b261ecSmrgEOF 570305b261ecSmrg fi 570405b261ecSmrg ;; 570505b261ecSmrg 570605b261ecSmrg amigaos*) 570705b261ecSmrg _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)' 570805b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 570905b261ecSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 571005b261ecSmrg 571105b261ecSmrg # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 571205b261ecSmrg # that the semantics of dynamic libraries on AmigaOS, at least up 571305b261ecSmrg # to version 4, is to share data among multiple programs linked 571405b261ecSmrg # with the same dynamic library. Since this doesn't match the 571505b261ecSmrg # behavior of shared libraries on other platforms, we can't use 571605b261ecSmrg # them. 571705b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 571805b261ecSmrg ;; 571905b261ecSmrg 572005b261ecSmrg beos*) 572105b261ecSmrg if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 572205b261ecSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 572305b261ecSmrg # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 572405b261ecSmrg # support --undefined. This deserves some investigation. FIXME 572505b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 572605b261ecSmrg else 572705b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 572805b261ecSmrg fi 572905b261ecSmrg ;; 573005b261ecSmrg 573105b261ecSmrg cygwin* | mingw* | pw32*) 573205b261ecSmrg # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 573305b261ecSmrg # as there is no search path for DLLs. 573405b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 573505b261ecSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 573605b261ecSmrg _LT_AC_TAGVAR(always_export_symbols, $1)=no 573705b261ecSmrg _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 573805b261ecSmrg _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' 573905b261ecSmrg 574005b261ecSmrg if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 574105b261ecSmrg _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' 574205b261ecSmrg # If the export-symbols file already is a .def file (1st line 574305b261ecSmrg # is EXPORTS), use it as is; otherwise, prepend... 574405b261ecSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 574505b261ecSmrg cp $export_symbols $output_objdir/$soname.def; 574605b261ecSmrg else 574705b261ecSmrg echo EXPORTS > $output_objdir/$soname.def; 574805b261ecSmrg cat $export_symbols >> $output_objdir/$soname.def; 574905b261ecSmrg fi~ 575005b261ecSmrg $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 575105b261ecSmrg else 575205b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 575305b261ecSmrg fi 575405b261ecSmrg ;; 575505b261ecSmrg 575605b261ecSmrg interix[[3-9]]*) 575705b261ecSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no 575805b261ecSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 575905b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 576005b261ecSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 576105b261ecSmrg # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 576205b261ecSmrg # Instead, shared libraries are loaded at an image base (0x10000000 by 576305b261ecSmrg # default) and relocated if they conflict, which is a slow very memory 576405b261ecSmrg # consuming and fragmenting process. To avoid this, we pick a random, 576505b261ecSmrg # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 576605b261ecSmrg # time. Moving up from 0x10000000 also allows more sbrk(2) space. 576705b261ecSmrg _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' 576805b261ecSmrg _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' 576905b261ecSmrg ;; 577005b261ecSmrg 577105b261ecSmrg gnu* | linux* | k*bsd*-gnu) 577205b261ecSmrg if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 577305b261ecSmrg tmp_addflag= 577405b261ecSmrg case $cc_basename,$host_cpu in 577505b261ecSmrg pgcc*) # Portland Group C compiler 577605b261ecSmrg _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' 577705b261ecSmrg tmp_addflag=' $pic_flag' 577805b261ecSmrg ;; 577905b261ecSmrg pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 578005b261ecSmrg _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' 578105b261ecSmrg tmp_addflag=' $pic_flag -Mnomain' ;; 578205b261ecSmrg ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 578305b261ecSmrg tmp_addflag=' -i_dynamic' ;; 578405b261ecSmrg efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 578505b261ecSmrg tmp_addflag=' -i_dynamic -nofor_main' ;; 578605b261ecSmrg ifc* | ifort*) # Intel Fortran compiler 578705b261ecSmrg tmp_addflag=' -nofor_main' ;; 578805b261ecSmrg esac 578905b261ecSmrg case `$CC -V 2>&1 | sed 5q` in 579005b261ecSmrg *Sun\ C*) # Sun C 5.9 579105b261ecSmrg _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' 579205b261ecSmrg tmp_sharedflag='-G' ;; 579305b261ecSmrg *Sun\ F*) # Sun Fortran 8.3 579405b261ecSmrg tmp_sharedflag='-G' ;; 579505b261ecSmrg *) 579605b261ecSmrg tmp_sharedflag='-shared' ;; 579705b261ecSmrg esac 579805b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 579905b261ecSmrg 580005b261ecSmrg if test $supports_anon_versioning = yes; then 580105b261ecSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ 580205b261ecSmrg cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 580305b261ecSmrg $echo "local: *; };" >> $output_objdir/$libname.ver~ 580405b261ecSmrg $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 580505b261ecSmrg fi 580605b261ecSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=no 580705b261ecSmrg else 580805b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 580905b261ecSmrg fi 581005b261ecSmrg ;; 581105b261ecSmrg 581205b261ecSmrg netbsd* | netbsdelf*-gnu) 581305b261ecSmrg if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 581405b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 581505b261ecSmrg wlarc= 581605b261ecSmrg else 581705b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 581805b261ecSmrg _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' 581905b261ecSmrg fi 582005b261ecSmrg ;; 582105b261ecSmrg 582205b261ecSmrg solaris*) 582305b261ecSmrg if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 582405b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 582505b261ecSmrg cat <<EOF 1>&2 582605b261ecSmrg 582705b261ecSmrg*** Warning: The releases 2.8.* of the GNU linker cannot reliably 582805b261ecSmrg*** create shared libraries on Solaris systems. Therefore, libtool 582905b261ecSmrg*** is disabling shared libraries support. We urge you to upgrade GNU 583005b261ecSmrg*** binutils to release 2.9.1 or newer. Another option is to modify 583105b261ecSmrg*** your PATH or compiler configuration so that the native linker is 583205b261ecSmrg*** used, and then restart. 583305b261ecSmrg 583405b261ecSmrgEOF 583505b261ecSmrg elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 583605b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 583705b261ecSmrg _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' 583805b261ecSmrg else 583905b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 584005b261ecSmrg fi 584105b261ecSmrg ;; 584205b261ecSmrg 584305b261ecSmrg sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 584405b261ecSmrg case `$LD -v 2>&1` in 584505b261ecSmrg *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 584605b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 584705b261ecSmrg cat <<_LT_EOF 1>&2 584805b261ecSmrg 584905b261ecSmrg*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 585005b261ecSmrg*** reliably create shared libraries on SCO systems. Therefore, libtool 585105b261ecSmrg*** is disabling shared libraries support. We urge you to upgrade GNU 585205b261ecSmrg*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 585305b261ecSmrg*** your PATH or compiler configuration so that the native linker is 585405b261ecSmrg*** used, and then restart. 585505b261ecSmrg 585605b261ecSmrg_LT_EOF 585705b261ecSmrg ;; 585805b261ecSmrg *) 585905b261ecSmrg if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 586005b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 586105b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 586205b261ecSmrg _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' 586305b261ecSmrg else 586405b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 586505b261ecSmrg fi 586605b261ecSmrg ;; 586705b261ecSmrg esac 586805b261ecSmrg ;; 586905b261ecSmrg 587005b261ecSmrg sunos4*) 587105b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 587205b261ecSmrg wlarc= 587305b261ecSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 587405b261ecSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 587505b261ecSmrg ;; 587605b261ecSmrg 587705b261ecSmrg *) 587805b261ecSmrg if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 587905b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 588005b261ecSmrg _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' 588105b261ecSmrg else 588205b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 588305b261ecSmrg fi 588405b261ecSmrg ;; 588505b261ecSmrg esac 588605b261ecSmrg 588705b261ecSmrg if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then 588805b261ecSmrg runpath_var= 588905b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 589005b261ecSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 589105b261ecSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 589205b261ecSmrg fi 589305b261ecSmrg else 589405b261ecSmrg # PORTME fill in a description of your system's linker (not GNU ld) 589505b261ecSmrg case $host_os in 589605b261ecSmrg aix3*) 589705b261ecSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 589805b261ecSmrg _LT_AC_TAGVAR(always_export_symbols, $1)=yes 589905b261ecSmrg _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' 590005b261ecSmrg # Note: this linker hardcodes the directories in LIBPATH if there 590105b261ecSmrg # are no directories specified by -L. 590205b261ecSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 590305b261ecSmrg if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 590405b261ecSmrg # Neither direct hardcoding nor static linking is supported with a 590505b261ecSmrg # broken collect2. 590605b261ecSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported 590705b261ecSmrg fi 590805b261ecSmrg ;; 590905b261ecSmrg 591005b261ecSmrg aix[[4-9]]*) 591105b261ecSmrg if test "$host_cpu" = ia64; then 591205b261ecSmrg # On IA64, the linker does run time linking by default, so we don't 591305b261ecSmrg # have to do anything special. 591405b261ecSmrg aix_use_runtimelinking=no 591505b261ecSmrg exp_sym_flag='-Bexport' 591605b261ecSmrg no_entry_flag="" 591705b261ecSmrg else 591805b261ecSmrg # If we're using GNU nm, then we don't want the "-C" option. 591905b261ecSmrg # -C means demangle to AIX nm, but means don't demangle with GNU nm 592005b261ecSmrg if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 592105b261ecSmrg _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' 592205b261ecSmrg else 592305b261ecSmrg _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' 592405b261ecSmrg fi 592505b261ecSmrg aix_use_runtimelinking=no 592605b261ecSmrg 592705b261ecSmrg # Test if we are trying to use run time linking or normal 592805b261ecSmrg # AIX style linking. If -brtl is somewhere in LDFLAGS, we 592905b261ecSmrg # need to do runtime linking. 593005b261ecSmrg case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 593105b261ecSmrg for ld_flag in $LDFLAGS; do 593205b261ecSmrg if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 593305b261ecSmrg aix_use_runtimelinking=yes 593405b261ecSmrg break 593505b261ecSmrg fi 593605b261ecSmrg done 593705b261ecSmrg ;; 593805b261ecSmrg esac 593905b261ecSmrg 594005b261ecSmrg exp_sym_flag='-bexport' 594105b261ecSmrg no_entry_flag='-bnoentry' 594205b261ecSmrg fi 594305b261ecSmrg 594405b261ecSmrg # When large executables or shared objects are built, AIX ld can 594505b261ecSmrg # have problems creating the table of contents. If linking a library 594605b261ecSmrg # or program results in "error TOC overflow" add -mminimal-toc to 594705b261ecSmrg # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 594805b261ecSmrg # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 594905b261ecSmrg 595005b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='' 595105b261ecSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 595205b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 595305b261ecSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 595405b261ecSmrg 595505b261ecSmrg if test "$GCC" = yes; then 595605b261ecSmrg case $host_os in aix4.[[012]]|aix4.[[012]].*) 595705b261ecSmrg # We only want to do this on AIX 4.2 and lower, the check 595805b261ecSmrg # below for broken collect2 doesn't work under 4.3+ 595905b261ecSmrg collect2name=`${CC} -print-prog-name=collect2` 596005b261ecSmrg if test -f "$collect2name" && \ 596105b261ecSmrg strings "$collect2name" | grep resolve_lib_name >/dev/null 596205b261ecSmrg then 596305b261ecSmrg # We have reworked collect2 596405b261ecSmrg : 596505b261ecSmrg else 596605b261ecSmrg # We have old collect2 596705b261ecSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported 596805b261ecSmrg # It fails to find uninstalled libraries when the uninstalled 596905b261ecSmrg # path is not listed in the libpath. Setting hardcode_minus_L 597005b261ecSmrg # to unsupported forces relinking 597105b261ecSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 597205b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 597305b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 597405b261ecSmrg fi 597505b261ecSmrg ;; 597605b261ecSmrg esac 597705b261ecSmrg shared_flag='-shared' 597805b261ecSmrg if test "$aix_use_runtimelinking" = yes; then 597905b261ecSmrg shared_flag="$shared_flag "'${wl}-G' 598005b261ecSmrg fi 598105b261ecSmrg else 598205b261ecSmrg # not using gcc 598305b261ecSmrg if test "$host_cpu" = ia64; then 598405b261ecSmrg # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 598505b261ecSmrg # chokes on -Wl,-G. The following line is correct: 598605b261ecSmrg shared_flag='-G' 598705b261ecSmrg else 598805b261ecSmrg if test "$aix_use_runtimelinking" = yes; then 598905b261ecSmrg shared_flag='${wl}-G' 599005b261ecSmrg else 599105b261ecSmrg shared_flag='${wl}-bM:SRE' 599205b261ecSmrg fi 599305b261ecSmrg fi 599405b261ecSmrg fi 599505b261ecSmrg 599605b261ecSmrg # It seems that -bexpall does not export symbols beginning with 599705b261ecSmrg # underscore (_), so it is better to generate a list of symbols to export. 599805b261ecSmrg _LT_AC_TAGVAR(always_export_symbols, $1)=yes 599905b261ecSmrg if test "$aix_use_runtimelinking" = yes; then 600005b261ecSmrg # Warning - without using the other runtime loading flags (-brtl), 600105b261ecSmrg # -berok will link without error, but may produce a broken library. 600205b261ecSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' 600305b261ecSmrg # Determine the default libpath from the value encoded in an empty executable. 600405b261ecSmrg _LT_AC_SYS_LIBPATH_AIX 600505b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 600605b261ecSmrg _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" 600705b261ecSmrg else 600805b261ecSmrg if test "$host_cpu" = ia64; then 600905b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 601005b261ecSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 601105b261ecSmrg _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" 601205b261ecSmrg else 601305b261ecSmrg # Determine the default libpath from the value encoded in an empty executable. 601405b261ecSmrg _LT_AC_SYS_LIBPATH_AIX 601505b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 601605b261ecSmrg # Warning - without using the other run time loading flags, 601705b261ecSmrg # -berok will link without error, but may produce a broken library. 601805b261ecSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 601905b261ecSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 602005b261ecSmrg # Exported symbols can be pulled into shared objects from archives 602105b261ecSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 602205b261ecSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 602305b261ecSmrg # This is similar to how AIX traditionally builds its shared libraries. 602405b261ecSmrg _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' 602505b261ecSmrg fi 602605b261ecSmrg fi 602705b261ecSmrg ;; 602805b261ecSmrg 602905b261ecSmrg amigaos*) 603005b261ecSmrg _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)' 603105b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 603205b261ecSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 603305b261ecSmrg # see comment about different semantics on the GNU ld section 603405b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 603505b261ecSmrg ;; 603605b261ecSmrg 603705b261ecSmrg bsdi[[45]]*) 603805b261ecSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 603905b261ecSmrg ;; 604005b261ecSmrg 604105b261ecSmrg cygwin* | mingw* | pw32*) 604205b261ecSmrg # When not using gcc, we currently assume that we are using 604305b261ecSmrg # Microsoft Visual C++. 604405b261ecSmrg # hardcode_libdir_flag_spec is actually meaningless, as there is 604505b261ecSmrg # no search path for DLLs. 604605b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 604705b261ecSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 604805b261ecSmrg # Tell ltmain to make .lib files, not .a files. 604905b261ecSmrg libext=lib 605005b261ecSmrg # Tell ltmain to make .dll files, not .so files. 605105b261ecSmrg shrext_cmds=".dll" 605205b261ecSmrg # FIXME: Setting linknames here is a bad hack. 605305b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 605405b261ecSmrg # The linker will automatically build a .lib file if we build a DLL. 605505b261ecSmrg _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' 605605b261ecSmrg # FIXME: Should let the user specify the lib program. 605705b261ecSmrg _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' 605805b261ecSmrg _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' 605905b261ecSmrg _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 606005b261ecSmrg ;; 606105b261ecSmrg 606205b261ecSmrg darwin* | rhapsody*) 606305b261ecSmrg case $host_os in 606405b261ecSmrg rhapsody* | darwin1.[[012]]) 606505b261ecSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' 606605b261ecSmrg ;; 606705b261ecSmrg *) # Darwin 1.3 on 606805b261ecSmrg if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 606905b261ecSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 607005b261ecSmrg else 607105b261ecSmrg case ${MACOSX_DEPLOYMENT_TARGET} in 607205b261ecSmrg 10.[[012]]) 607305b261ecSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 607405b261ecSmrg ;; 607505b261ecSmrg 10.*) 607605b261ecSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' 607705b261ecSmrg ;; 607805b261ecSmrg esac 607905b261ecSmrg fi 608005b261ecSmrg ;; 608105b261ecSmrg esac 608205b261ecSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 608305b261ecSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no 608405b261ecSmrg _LT_AC_TAGVAR(hardcode_automatic, $1)=yes 608505b261ecSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 608605b261ecSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' 608705b261ecSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 608805b261ecSmrg if test "$GCC" = yes ; then 608905b261ecSmrg output_verbose_link_cmd='echo' 609005b261ecSmrg _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}" 609105b261ecSmrg _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 609205b261ecSmrg _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}" 609305b261ecSmrg _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}" 609405b261ecSmrg else 609505b261ecSmrg case $cc_basename in 609605b261ecSmrg xlc*) 609705b261ecSmrg output_verbose_link_cmd='echo' 609805b261ecSmrg _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' 609905b261ecSmrg _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 610005b261ecSmrg # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 610105b261ecSmrg _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}' 610205b261ecSmrg _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}' 610305b261ecSmrg ;; 610405b261ecSmrg *) 610505b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 610605b261ecSmrg ;; 610705b261ecSmrg esac 610805b261ecSmrg fi 610905b261ecSmrg ;; 611005b261ecSmrg 611105b261ecSmrg dgux*) 611205b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 611305b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 611405b261ecSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 611505b261ecSmrg ;; 611605b261ecSmrg 611705b261ecSmrg freebsd1*) 611805b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 611905b261ecSmrg ;; 612005b261ecSmrg 612105b261ecSmrg # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 612205b261ecSmrg # support. Future versions do this automatically, but an explicit c++rt0.o 612305b261ecSmrg # does not break anything, and helps significantly (at the cost of a little 612405b261ecSmrg # extra space). 612505b261ecSmrg freebsd2.2*) 612605b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 612705b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 612805b261ecSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 612905b261ecSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 613005b261ecSmrg ;; 613105b261ecSmrg 613205b261ecSmrg # Unfortunately, older versions of FreeBSD 2 do not have this feature. 613305b261ecSmrg freebsd2*) 613405b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 613505b261ecSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 613605b261ecSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 613705b261ecSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 613805b261ecSmrg ;; 613905b261ecSmrg 614005b261ecSmrg # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 614105b261ecSmrg freebsd* | dragonfly*) 614205b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 614305b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 614405b261ecSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 614505b261ecSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 614605b261ecSmrg ;; 614705b261ecSmrg 614805b261ecSmrg hpux9*) 614905b261ecSmrg if test "$GCC" = yes; then 615005b261ecSmrg _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' 615105b261ecSmrg else 615205b261ecSmrg _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' 615305b261ecSmrg fi 615405b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 615505b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 615605b261ecSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 615705b261ecSmrg 615805b261ecSmrg # hardcode_minus_L: Not really in the search PATH, 615905b261ecSmrg # but as the default location of the library. 616005b261ecSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 616105b261ecSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 616205b261ecSmrg ;; 616305b261ecSmrg 616405b261ecSmrg hpux10*) 616505b261ecSmrg if test "$GCC" = yes -a "$with_gnu_ld" = no; then 616605b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 616705b261ecSmrg else 616805b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 616905b261ecSmrg fi 617005b261ecSmrg if test "$with_gnu_ld" = no; then 617105b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 617205b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 617305b261ecSmrg 617405b261ecSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 617505b261ecSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 617605b261ecSmrg 617705b261ecSmrg # hardcode_minus_L: Not really in the search PATH, 617805b261ecSmrg # but as the default location of the library. 617905b261ecSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 618005b261ecSmrg fi 618105b261ecSmrg ;; 618205b261ecSmrg 618305b261ecSmrg hpux11*) 618405b261ecSmrg if test "$GCC" = yes -a "$with_gnu_ld" = no; then 618505b261ecSmrg case $host_cpu in 618605b261ecSmrg hppa*64*) 618705b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 618805b261ecSmrg ;; 618905b261ecSmrg ia64*) 619005b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 619105b261ecSmrg ;; 619205b261ecSmrg *) 619305b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 619405b261ecSmrg ;; 619505b261ecSmrg esac 619605b261ecSmrg else 619705b261ecSmrg case $host_cpu in 619805b261ecSmrg hppa*64*) 619905b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 620005b261ecSmrg ;; 620105b261ecSmrg ia64*) 620205b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 620305b261ecSmrg ;; 620405b261ecSmrg *) 620505b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 620605b261ecSmrg ;; 620705b261ecSmrg esac 620805b261ecSmrg fi 620905b261ecSmrg if test "$with_gnu_ld" = no; then 621005b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 621105b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 621205b261ecSmrg 621305b261ecSmrg case $host_cpu in 621405b261ecSmrg hppa*64*|ia64*) 621505b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 621605b261ecSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no 621705b261ecSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 621805b261ecSmrg ;; 621905b261ecSmrg *) 622005b261ecSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 622105b261ecSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 622205b261ecSmrg 622305b261ecSmrg # hardcode_minus_L: Not really in the search PATH, 622405b261ecSmrg # but as the default location of the library. 622505b261ecSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 622605b261ecSmrg ;; 622705b261ecSmrg esac 622805b261ecSmrg fi 622905b261ecSmrg ;; 623005b261ecSmrg 623105b261ecSmrg irix5* | irix6* | nonstopux*) 623205b261ecSmrg if test "$GCC" = yes; then 623305b261ecSmrg _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' 623405b261ecSmrg else 623505b261ecSmrg _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' 623605b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' 623705b261ecSmrg fi 623805b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 623905b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 624005b261ecSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 624105b261ecSmrg ;; 624205b261ecSmrg 624305b261ecSmrg netbsd* | netbsdelf*-gnu) 624405b261ecSmrg if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 624505b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 624605b261ecSmrg else 624705b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 624805b261ecSmrg fi 624905b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 625005b261ecSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 625105b261ecSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 625205b261ecSmrg ;; 625305b261ecSmrg 625405b261ecSmrg newsos6) 625505b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 625605b261ecSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 625705b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 625805b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 625905b261ecSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 626005b261ecSmrg ;; 626105b261ecSmrg 626205b261ecSmrg openbsd*) 626305b261ecSmrg if test -f /usr/libexec/ld.so; then 626405b261ecSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 626505b261ecSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 626605b261ecSmrg if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 626705b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 626805b261ecSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 626905b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 627005b261ecSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 627105b261ecSmrg else 627205b261ecSmrg case $host_os in 627305b261ecSmrg openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) 627405b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 627505b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 627605b261ecSmrg ;; 627705b261ecSmrg *) 627805b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 627905b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 628005b261ecSmrg ;; 628105b261ecSmrg esac 628205b261ecSmrg fi 628305b261ecSmrg else 628405b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 628505b261ecSmrg fi 628605b261ecSmrg ;; 628705b261ecSmrg 628805b261ecSmrg os2*) 628905b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 629005b261ecSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 629105b261ecSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 629205b261ecSmrg _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' 629305b261ecSmrg _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 629405b261ecSmrg ;; 629505b261ecSmrg 629605b261ecSmrg osf3*) 629705b261ecSmrg if test "$GCC" = yes; then 629805b261ecSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 629905b261ecSmrg _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' 630005b261ecSmrg else 630105b261ecSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 630205b261ecSmrg _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' 630305b261ecSmrg fi 630405b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 630505b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 630605b261ecSmrg ;; 630705b261ecSmrg 630805b261ecSmrg osf4* | osf5*) # as osf3* with the addition of -msym flag 630905b261ecSmrg if test "$GCC" = yes; then 631005b261ecSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 631105b261ecSmrg _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' 631205b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 631305b261ecSmrg else 631405b261ecSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 631505b261ecSmrg _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' 631605b261ecSmrg _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~ 631705b261ecSmrg $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' 631805b261ecSmrg 631905b261ecSmrg # Both c and cxx compiler support -rpath directly 632005b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 632105b261ecSmrg fi 632205b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 632305b261ecSmrg ;; 632405b261ecSmrg 632505b261ecSmrg solaris*) 632605b261ecSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' 632705b261ecSmrg if test "$GCC" = yes; then 632805b261ecSmrg wlarc='${wl}' 632905b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 633005b261ecSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 633105b261ecSmrg $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 633205b261ecSmrg else 633305b261ecSmrg wlarc='' 633405b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 633505b261ecSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 633605b261ecSmrg $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 633705b261ecSmrg fi 633805b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 633905b261ecSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 634005b261ecSmrg case $host_os in 634105b261ecSmrg solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 634205b261ecSmrg *) 634305b261ecSmrg # The compiler driver will combine and reorder linker options, 634405b261ecSmrg # but understands `-z linker_flag'. GCC discards it without `$wl', 634505b261ecSmrg # but is careful enough not to reorder. 634605b261ecSmrg # Supported since Solaris 2.6 (maybe 2.5.1?) 634705b261ecSmrg if test "$GCC" = yes; then 634805b261ecSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 634905b261ecSmrg else 635005b261ecSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 635105b261ecSmrg fi 635205b261ecSmrg ;; 635305b261ecSmrg esac 635405b261ecSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 635505b261ecSmrg ;; 635605b261ecSmrg 635705b261ecSmrg sunos4*) 635805b261ecSmrg if test "x$host_vendor" = xsequent; then 635905b261ecSmrg # Use $CC to link under sequent, because it throws in some extra .o 636005b261ecSmrg # files that make .init and .fini sections work. 636105b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 636205b261ecSmrg else 636305b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 636405b261ecSmrg fi 636505b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 636605b261ecSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 636705b261ecSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 636805b261ecSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 636905b261ecSmrg ;; 637005b261ecSmrg 637105b261ecSmrg sysv4) 637205b261ecSmrg case $host_vendor in 637305b261ecSmrg sni) 637405b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 637505b261ecSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? 637605b261ecSmrg ;; 637705b261ecSmrg siemens) 637805b261ecSmrg ## LD is ld it makes a PLAMLIB 637905b261ecSmrg ## CC just makes a GrossModule. 638005b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 638105b261ecSmrg _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' 638205b261ecSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no 638305b261ecSmrg ;; 638405b261ecSmrg motorola) 638505b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 638605b261ecSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie 638705b261ecSmrg ;; 638805b261ecSmrg esac 638905b261ecSmrg runpath_var='LD_RUN_PATH' 639005b261ecSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 639105b261ecSmrg ;; 639205b261ecSmrg 639305b261ecSmrg sysv4.3*) 639405b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 639505b261ecSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 639605b261ecSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' 639705b261ecSmrg ;; 639805b261ecSmrg 639905b261ecSmrg sysv4*MP*) 640005b261ecSmrg if test -d /usr/nec; then 640105b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 640205b261ecSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 640305b261ecSmrg runpath_var=LD_RUN_PATH 640405b261ecSmrg hardcode_runpath_var=yes 640505b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=yes 640605b261ecSmrg fi 640705b261ecSmrg ;; 640805b261ecSmrg 640905b261ecSmrg sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 641005b261ecSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 641105b261ecSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 641205b261ecSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 641305b261ecSmrg runpath_var='LD_RUN_PATH' 641405b261ecSmrg 641505b261ecSmrg if test "$GCC" = yes; then 641605b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 641705b261ecSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 641805b261ecSmrg else 641905b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 642005b261ecSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 642105b261ecSmrg fi 642205b261ecSmrg ;; 642305b261ecSmrg 642405b261ecSmrg sysv5* | sco3.2v5* | sco5v6*) 642505b261ecSmrg # Note: We can NOT use -z defs as we might desire, because we do not 642605b261ecSmrg # link with -lc, and that would cause any symbols used from libc to 642705b261ecSmrg # always be unresolved, which means just about no library would 642805b261ecSmrg # ever link correctly. If we're not using GNU ld we use -z text 642905b261ecSmrg # though, which does catch some bad symbols but isn't as heavy-handed 643005b261ecSmrg # as -z defs. 643105b261ecSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 643205b261ecSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 643305b261ecSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 643405b261ecSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 643505b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 643605b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 643705b261ecSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 643805b261ecSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 643905b261ecSmrg runpath_var='LD_RUN_PATH' 644005b261ecSmrg 644105b261ecSmrg if test "$GCC" = yes; then 644205b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 644305b261ecSmrg _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' 644405b261ecSmrg else 644505b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 644605b261ecSmrg _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' 644705b261ecSmrg fi 644805b261ecSmrg ;; 644905b261ecSmrg 645005b261ecSmrg uts4*) 645105b261ecSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 645205b261ecSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 645305b261ecSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 645405b261ecSmrg ;; 645505b261ecSmrg 645605b261ecSmrg *) 645705b261ecSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 645805b261ecSmrg ;; 645905b261ecSmrg esac 646005b261ecSmrg fi 646105b261ecSmrg]) 646205b261ecSmrgAC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) 646305b261ecSmrgtest "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 646405b261ecSmrg 646505b261ecSmrg# 646605b261ecSmrg# Do we need to explicitly link libc? 646705b261ecSmrg# 646805b261ecSmrgcase "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in 646905b261ecSmrgx|xyes) 647005b261ecSmrg # Assume -lc should be added 647105b261ecSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 647205b261ecSmrg 647305b261ecSmrg if test "$enable_shared" = yes && test "$GCC" = yes; then 647405b261ecSmrg case $_LT_AC_TAGVAR(archive_cmds, $1) in 647505b261ecSmrg *'~'*) 647605b261ecSmrg # FIXME: we may have to deal with multi-command sequences. 647705b261ecSmrg ;; 647805b261ecSmrg '$CC '*) 647905b261ecSmrg # Test whether the compiler implicitly links with -lc since on some 648005b261ecSmrg # systems, -lgcc has to come before -lc. If gcc already passes -lc 648105b261ecSmrg # to ld, don't add -lc before -lgcc. 648205b261ecSmrg AC_MSG_CHECKING([whether -lc should be explicitly linked in]) 648305b261ecSmrg $rm conftest* 648405b261ecSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 648505b261ecSmrg 648605b261ecSmrg if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 648705b261ecSmrg soname=conftest 648805b261ecSmrg lib=conftest 648905b261ecSmrg libobjs=conftest.$ac_objext 649005b261ecSmrg deplibs= 649105b261ecSmrg wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) 649205b261ecSmrg pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) 649305b261ecSmrg compiler_flags=-v 649405b261ecSmrg linker_flags=-v 649505b261ecSmrg verstring= 649605b261ecSmrg output_objdir=. 649705b261ecSmrg libname=conftest 649805b261ecSmrg lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) 649905b261ecSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)= 650005b261ecSmrg if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 650105b261ecSmrg then 650205b261ecSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 650305b261ecSmrg else 650405b261ecSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 650505b261ecSmrg fi 650605b261ecSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 650705b261ecSmrg else 650805b261ecSmrg cat conftest.err 1>&5 650905b261ecSmrg fi 651005b261ecSmrg $rm conftest* 651105b261ecSmrg AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) 651205b261ecSmrg ;; 651305b261ecSmrg esac 651405b261ecSmrg fi 651505b261ecSmrg ;; 651605b261ecSmrgesac 651705b261ecSmrg])# AC_LIBTOOL_PROG_LD_SHLIBS 651805b261ecSmrg 651905b261ecSmrg 652005b261ecSmrg# _LT_AC_FILE_LTDLL_C 652105b261ecSmrg# ------------------- 652205b261ecSmrg# Be careful that the start marker always follows a newline. 652305b261ecSmrgAC_DEFUN([_LT_AC_FILE_LTDLL_C], [ 652405b261ecSmrg# /* ltdll.c starts here */ 652505b261ecSmrg# #define WIN32_LEAN_AND_MEAN 652605b261ecSmrg# #include <windows.h> 652705b261ecSmrg# #undef WIN32_LEAN_AND_MEAN 652805b261ecSmrg# #include <stdio.h> 652905b261ecSmrg# 653005b261ecSmrg# #ifndef __CYGWIN__ 653105b261ecSmrg# # ifdef __CYGWIN32__ 653205b261ecSmrg# # define __CYGWIN__ __CYGWIN32__ 653305b261ecSmrg# # endif 653405b261ecSmrg# #endif 653505b261ecSmrg# 653605b261ecSmrg# #ifdef __cplusplus 653705b261ecSmrg# extern "C" { 653805b261ecSmrg# #endif 653905b261ecSmrg# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); 654005b261ecSmrg# #ifdef __cplusplus 654105b261ecSmrg# } 654205b261ecSmrg# #endif 654305b261ecSmrg# 654405b261ecSmrg# #ifdef __CYGWIN__ 654505b261ecSmrg# #include <cygwin/cygwin_dll.h> 654605b261ecSmrg# DECLARE_CYGWIN_DLL( DllMain ); 654705b261ecSmrg# #endif 654805b261ecSmrg# HINSTANCE __hDllInstance_base; 654905b261ecSmrg# 655005b261ecSmrg# BOOL APIENTRY 655105b261ecSmrg# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) 655205b261ecSmrg# { 655305b261ecSmrg# __hDllInstance_base = hInst; 655405b261ecSmrg# return TRUE; 655505b261ecSmrg# } 655605b261ecSmrg# /* ltdll.c ends here */ 655705b261ecSmrg])# _LT_AC_FILE_LTDLL_C 655805b261ecSmrg 655905b261ecSmrg 656005b261ecSmrg# _LT_AC_TAGVAR(VARNAME, [TAGNAME]) 656105b261ecSmrg# --------------------------------- 656205b261ecSmrgAC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) 656305b261ecSmrg 656405b261ecSmrg 656505b261ecSmrg# old names 656605b261ecSmrgAC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) 656705b261ecSmrgAC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 656805b261ecSmrgAC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 656905b261ecSmrgAC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 657005b261ecSmrgAC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 657105b261ecSmrgAC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) 657205b261ecSmrgAC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) 657305b261ecSmrg 657405b261ecSmrg# This is just to silence aclocal about the macro not being used 657505b261ecSmrgifelse([AC_DISABLE_FAST_INSTALL]) 657605b261ecSmrg 657705b261ecSmrgAC_DEFUN([LT_AC_PROG_GCJ], 657805b261ecSmrg[AC_CHECK_TOOL(GCJ, gcj, no) 657905b261ecSmrg test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" 658005b261ecSmrg AC_SUBST(GCJFLAGS) 658105b261ecSmrg]) 658205b261ecSmrg 658305b261ecSmrgAC_DEFUN([LT_AC_PROG_RC], 658405b261ecSmrg[AC_CHECK_TOOL(RC, windres, no) 658505b261ecSmrg]) 658605b261ecSmrg 658705b261ecSmrg 658805b261ecSmrg# Cheap backport of AS_EXECUTABLE_P and required macros 658905b261ecSmrg# from Autoconf 2.59; we should not use $as_executable_p directly. 659005b261ecSmrg 659105b261ecSmrg# _AS_TEST_PREPARE 659205b261ecSmrg# ---------------- 659305b261ecSmrgm4_ifndef([_AS_TEST_PREPARE], 659405b261ecSmrg[m4_defun([_AS_TEST_PREPARE], 659505b261ecSmrg[if test -x / >/dev/null 2>&1; then 659605b261ecSmrg as_executable_p='test -x' 659705b261ecSmrgelse 659805b261ecSmrg as_executable_p='test -f' 659905b261ecSmrgfi 660005b261ecSmrg])])# _AS_TEST_PREPARE 660105b261ecSmrg 660205b261ecSmrg# AS_EXECUTABLE_P 660305b261ecSmrg# --------------- 660405b261ecSmrg# Check whether a file is executable. 660505b261ecSmrgm4_ifndef([AS_EXECUTABLE_P], 660605b261ecSmrg[m4_defun([AS_EXECUTABLE_P], 660705b261ecSmrg[AS_REQUIRE([_AS_TEST_PREPARE])dnl 660805b261ecSmrg$as_executable_p $1[]dnl 660905b261ecSmrg])])# AS_EXECUTABLE_P 661005b261ecSmrg 661105b261ecSmrg# NOTE: This macro has been submitted for inclusion into # 661205b261ecSmrg# GNU Autoconf as AC_PROG_SED. When it is available in # 661305b261ecSmrg# a released version of Autoconf we should remove this # 661405b261ecSmrg# macro and use it instead. # 661505b261ecSmrg# LT_AC_PROG_SED 661605b261ecSmrg# -------------- 661705b261ecSmrg# Check for a fully-functional sed program, that truncates 661805b261ecSmrg# as few characters as possible. Prefer GNU sed if found. 661905b261ecSmrgAC_DEFUN([LT_AC_PROG_SED], 662005b261ecSmrg[AC_MSG_CHECKING([for a sed that does not truncate output]) 662105b261ecSmrgAC_CACHE_VAL(lt_cv_path_SED, 662205b261ecSmrg[# Loop through the user's path and test for sed and gsed. 662305b261ecSmrg# Then use that list of sed's as ones to test for truncation. 662405b261ecSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 662505b261ecSmrgfor as_dir in $PATH 662605b261ecSmrgdo 662705b261ecSmrg IFS=$as_save_IFS 662805b261ecSmrg test -z "$as_dir" && as_dir=. 662905b261ecSmrg for lt_ac_prog in sed gsed; do 663005b261ecSmrg for ac_exec_ext in '' $ac_executable_extensions; do 663105b261ecSmrg if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then 663205b261ecSmrg lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 663305b261ecSmrg fi 663405b261ecSmrg done 663505b261ecSmrg done 663605b261ecSmrgdone 663705b261ecSmrgIFS=$as_save_IFS 663805b261ecSmrglt_ac_max=0 663905b261ecSmrglt_ac_count=0 664005b261ecSmrg# Add /usr/xpg4/bin/sed as it is typically found on Solaris 664105b261ecSmrg# along with /bin/sed that truncates output. 664205b261ecSmrgfor lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 664305b261ecSmrg test ! -f $lt_ac_sed && continue 664405b261ecSmrg cat /dev/null > conftest.in 664505b261ecSmrg lt_ac_count=0 664605b261ecSmrg echo $ECHO_N "0123456789$ECHO_C" >conftest.in 664705b261ecSmrg # Check for GNU sed and select it if it is found. 664805b261ecSmrg if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 664905b261ecSmrg lt_cv_path_SED=$lt_ac_sed 665005b261ecSmrg break 665105b261ecSmrg fi 665205b261ecSmrg while true; do 665305b261ecSmrg cat conftest.in conftest.in >conftest.tmp 665405b261ecSmrg mv conftest.tmp conftest.in 665505b261ecSmrg cp conftest.in conftest.nl 665605b261ecSmrg echo >>conftest.nl 665705b261ecSmrg $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 665805b261ecSmrg cmp -s conftest.out conftest.nl || break 665905b261ecSmrg # 10000 chars as input seems more than enough 666005b261ecSmrg test $lt_ac_count -gt 10 && break 666105b261ecSmrg lt_ac_count=`expr $lt_ac_count + 1` 666205b261ecSmrg if test $lt_ac_count -gt $lt_ac_max; then 666305b261ecSmrg lt_ac_max=$lt_ac_count 666405b261ecSmrg lt_cv_path_SED=$lt_ac_sed 666505b261ecSmrg fi 666605b261ecSmrg done 666705b261ecSmrgdone 666805b261ecSmrg]) 666905b261ecSmrgSED=$lt_cv_path_SED 667005b261ecSmrgAC_SUBST([SED]) 667105b261ecSmrgAC_MSG_RESULT([$SED]) 667205b261ecSmrg]) 667305b261ecSmrg 667405b261ecSmrg# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 667505b261ecSmrg# 667605b261ecSmrg# Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 667705b261ecSmrg# 667805b261ecSmrg# This program is free software; you can redistribute it and/or modify 667905b261ecSmrg# it under the terms of the GNU General Public License as published by 668005b261ecSmrg# the Free Software Foundation; either version 2 of the License, or 668105b261ecSmrg# (at your option) any later version. 668205b261ecSmrg# 668305b261ecSmrg# This program is distributed in the hope that it will be useful, but 668405b261ecSmrg# WITHOUT ANY WARRANTY; without even the implied warranty of 668505b261ecSmrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 668605b261ecSmrg# General Public License for more details. 668705b261ecSmrg# 668805b261ecSmrg# You should have received a copy of the GNU General Public License 668905b261ecSmrg# along with this program; if not, write to the Free Software 669005b261ecSmrg# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 669105b261ecSmrg# 669205b261ecSmrg# As a special exception to the GNU General Public License, if you 669305b261ecSmrg# distribute this file as part of a program that contains a 669405b261ecSmrg# configuration script generated by Autoconf, you may include it under 669505b261ecSmrg# the same distribution terms that you use for the rest of that program. 669605b261ecSmrg 669705b261ecSmrg# PKG_PROG_PKG_CONFIG([MIN-VERSION]) 669805b261ecSmrg# ---------------------------------- 669905b261ecSmrgAC_DEFUN([PKG_PROG_PKG_CONFIG], 670005b261ecSmrg[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) 670105b261ecSmrgm4_pattern_allow([^PKG_CONFIG(_PATH)?$]) 670205b261ecSmrgAC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl 670305b261ecSmrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 670405b261ecSmrg AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) 670505b261ecSmrgfi 670605b261ecSmrgif test -n "$PKG_CONFIG"; then 670705b261ecSmrg _pkg_min_version=m4_default([$1], [0.9.0]) 670805b261ecSmrg AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) 670905b261ecSmrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 671005b261ecSmrg AC_MSG_RESULT([yes]) 671105b261ecSmrg else 671205b261ecSmrg AC_MSG_RESULT([no]) 671305b261ecSmrg PKG_CONFIG="" 671405b261ecSmrg fi 671505b261ecSmrg 671605b261ecSmrgfi[]dnl 671705b261ecSmrg])# PKG_PROG_PKG_CONFIG 671805b261ecSmrg 671905b261ecSmrg# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 672005b261ecSmrg# 672105b261ecSmrg# Check to see whether a particular set of modules exists. Similar 672205b261ecSmrg# to PKG_CHECK_MODULES(), but does not set variables or print errors. 672305b261ecSmrg# 672405b261ecSmrg# 672505b261ecSmrg# Similar to PKG_CHECK_MODULES, make sure that the first instance of 672605b261ecSmrg# this or PKG_CHECK_MODULES is called, or make sure to call 672705b261ecSmrg# PKG_CHECK_EXISTS manually 672805b261ecSmrg# -------------------------------------------------------------- 672905b261ecSmrgAC_DEFUN([PKG_CHECK_EXISTS], 673005b261ecSmrg[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 673105b261ecSmrgif test -n "$PKG_CONFIG" && \ 673205b261ecSmrg AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then 673305b261ecSmrg m4_ifval([$2], [$2], [:]) 673405b261ecSmrgm4_ifvaln([$3], [else 673505b261ecSmrg $3])dnl 673605b261ecSmrgfi]) 673705b261ecSmrg 673805b261ecSmrg 673905b261ecSmrg# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 674005b261ecSmrg# --------------------------------------------- 674105b261ecSmrgm4_define([_PKG_CONFIG], 674205b261ecSmrg[if test -n "$PKG_CONFIG"; then 674305b261ecSmrg if test -n "$$1"; then 674405b261ecSmrg pkg_cv_[]$1="$$1" 674505b261ecSmrg else 674605b261ecSmrg PKG_CHECK_EXISTS([$3], 674705b261ecSmrg [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], 674805b261ecSmrg [pkg_failed=yes]) 674905b261ecSmrg fi 675005b261ecSmrgelse 675105b261ecSmrg pkg_failed=untried 675205b261ecSmrgfi[]dnl 675305b261ecSmrg])# _PKG_CONFIG 675405b261ecSmrg 675505b261ecSmrg# _PKG_SHORT_ERRORS_SUPPORTED 675605b261ecSmrg# ----------------------------- 675705b261ecSmrgAC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], 675805b261ecSmrg[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 675905b261ecSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 676005b261ecSmrg _pkg_short_errors_supported=yes 676105b261ecSmrgelse 676205b261ecSmrg _pkg_short_errors_supported=no 676305b261ecSmrgfi[]dnl 676405b261ecSmrg])# _PKG_SHORT_ERRORS_SUPPORTED 676505b261ecSmrg 676605b261ecSmrg 676705b261ecSmrg# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 676805b261ecSmrg# [ACTION-IF-NOT-FOUND]) 676905b261ecSmrg# 677005b261ecSmrg# 677105b261ecSmrg# Note that if there is a possibility the first call to 677205b261ecSmrg# PKG_CHECK_MODULES might not happen, you should be sure to include an 677305b261ecSmrg# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 677405b261ecSmrg# 677505b261ecSmrg# 677605b261ecSmrg# -------------------------------------------------------------- 677705b261ecSmrgAC_DEFUN([PKG_CHECK_MODULES], 677805b261ecSmrg[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 677905b261ecSmrgAC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl 678005b261ecSmrgAC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl 678105b261ecSmrg 678205b261ecSmrgpkg_failed=no 678305b261ecSmrgAC_MSG_CHECKING([for $1]) 678405b261ecSmrg 678505b261ecSmrg_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) 678605b261ecSmrg_PKG_CONFIG([$1][_LIBS], [libs], [$2]) 678705b261ecSmrg 678805b261ecSmrgm4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS 678905b261ecSmrgand $1[]_LIBS to avoid the need to call pkg-config. 679005b261ecSmrgSee the pkg-config man page for more details.]) 679105b261ecSmrg 679205b261ecSmrgif test $pkg_failed = yes; then 679305b261ecSmrg _PKG_SHORT_ERRORS_SUPPORTED 679405b261ecSmrg if test $_pkg_short_errors_supported = yes; then 679505b261ecSmrg $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"` 679605b261ecSmrg else 679705b261ecSmrg $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` 679805b261ecSmrg fi 679905b261ecSmrg # Put the nasty error message in config.log where it belongs 680005b261ecSmrg echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD 680105b261ecSmrg 680205b261ecSmrg ifelse([$4], , [AC_MSG_ERROR(dnl 680305b261ecSmrg[Package requirements ($2) were not met: 680405b261ecSmrg 680505b261ecSmrg$$1_PKG_ERRORS 680605b261ecSmrg 680705b261ecSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 680805b261ecSmrginstalled software in a non-standard prefix. 680905b261ecSmrg 681005b261ecSmrg_PKG_TEXT 681105b261ecSmrg])], 681205b261ecSmrg [AC_MSG_RESULT([no]) 681305b261ecSmrg $4]) 681405b261ecSmrgelif test $pkg_failed = untried; then 681505b261ecSmrg ifelse([$4], , [AC_MSG_FAILURE(dnl 681605b261ecSmrg[The pkg-config script could not be found or is too old. Make sure it 681705b261ecSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 681805b261ecSmrgpath to pkg-config. 681905b261ecSmrg 682005b261ecSmrg_PKG_TEXT 682105b261ecSmrg 682205b261ecSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.])], 682305b261ecSmrg [$4]) 682405b261ecSmrgelse 682505b261ecSmrg $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS 682605b261ecSmrg $1[]_LIBS=$pkg_cv_[]$1[]_LIBS 682705b261ecSmrg AC_MSG_RESULT([yes]) 682805b261ecSmrg ifelse([$3], , :, [$3]) 682905b261ecSmrgfi[]dnl 683005b261ecSmrg])# PKG_CHECK_MODULES 683105b261ecSmrg 683205b261ecSmrgdnl 683305b261ecSmrgdnl Copyright 2005-2006 Sun Microsystems, Inc. All rights reserved. 683405b261ecSmrgdnl 683505b261ecSmrgdnl Permission is hereby granted, free of charge, to any person obtaining a 683605b261ecSmrgdnl copy of this software and associated documentation files (the 683705b261ecSmrgdnl "Software"), to deal in the Software without restriction, including 683805b261ecSmrgdnl without limitation the rights to use, copy, modify, merge, publish, 683905b261ecSmrgdnl distribute, and/or sell copies of the Software, and to permit persons 684005b261ecSmrgdnl to whom the Software is furnished to do so, provided that the above 684105b261ecSmrgdnl copyright notice(s) and this permission notice appear in all copies of 684205b261ecSmrgdnl the Software and that both the above copyright notice(s) and this 684305b261ecSmrgdnl permission notice appear in supporting documentation. 684405b261ecSmrgdnl 684505b261ecSmrgdnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 684605b261ecSmrgdnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 684705b261ecSmrgdnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT 684805b261ecSmrgdnl OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 684905b261ecSmrgdnl HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL 685005b261ecSmrgdnl INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING 685105b261ecSmrgdnl FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, 685205b261ecSmrgdnl NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION 685305b261ecSmrgdnl WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 685405b261ecSmrgdnl 685505b261ecSmrgdnl Except as contained in this notice, the name of a copyright holder 685605b261ecSmrgdnl shall not be used in advertising or otherwise to promote the sale, use 685705b261ecSmrgdnl or other dealings in this Software without prior written authorization 685805b261ecSmrgdnl of the copyright holder. 685905b261ecSmrg 686005b261ecSmrg# XORG_MACROS_VERSION(required-version) 686105b261ecSmrg# ------------------------------------- 686205b261ecSmrg# Minimum version: 1.1.0 686305b261ecSmrg# 686405b261ecSmrg# If you're using a macro added in Version 1.1 or newer, include this in 686505b261ecSmrg# your configure.ac with the minimum required version, such as: 686605b261ecSmrg# XORG_MACROS_VERSION(1.1) 686705b261ecSmrg# 686805b261ecSmrg# To force at least a version with this macro defined, also add: 686905b261ecSmrg# m4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.1 or later before running autoconf/autogen])]) 687005b261ecSmrg# 687105b261ecSmrg# 687205b261ecSmrg# See the "minimum version" comment for each macro you use to see what 687305b261ecSmrg# version you require. 687405b261ecSmrgAC_DEFUN([XORG_MACROS_VERSION],[ 687505b261ecSmrg [XORG_MACROS_needed_version=$1 687605b261ecSmrg XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'` 687705b261ecSmrg XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`] 687805b261ecSmrg AC_MSG_CHECKING([if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}]) 687905b261ecSmrg [XORG_MACROS_version=1.1.6 688005b261ecSmrg XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'` 688105b261ecSmrg XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`] 688205b261ecSmrg if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then 688305b261ecSmrg AC_MSG_ERROR([configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x]) 688405b261ecSmrg fi 688505b261ecSmrg if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then 688605b261ecSmrg 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]) 688705b261ecSmrg fi 688805b261ecSmrg AC_MSG_RESULT([yes, $XORG_MACROS_version]) 688905b261ecSmrg]) # XORG_MACROS_VERSION 689005b261ecSmrg 689105b261ecSmrg# XORG_PROG_RAWCPP() 689205b261ecSmrg# ------------------ 689305b261ecSmrg# Minimum version: 1.0.0 689405b261ecSmrg# 689505b261ecSmrg# Find cpp program and necessary flags for use in pre-processing text files 689605b261ecSmrg# such as man pages and config files 689705b261ecSmrgAC_DEFUN([XORG_PROG_RAWCPP],[ 689805b261ecSmrgAC_REQUIRE([AC_PROG_CPP]) 689905b261ecSmrgAC_PATH_PROGS(RAWCPP, [cpp], [${CPP}], 690005b261ecSmrg [$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib]) 690105b261ecSmrg 690205b261ecSmrg# Check for flag to avoid builtin definitions - assumes unix is predefined, 690305b261ecSmrg# which is not the best choice for supporting other OS'es, but covers most 690405b261ecSmrg# of the ones we need for now. 690505b261ecSmrgAC_MSG_CHECKING([if $RAWCPP requires -undef]) 690605b261ecSmrgAC_LANG_CONFTEST([Does cpp redefine unix ?]) 690705b261ecSmrgif test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 690805b261ecSmrg AC_MSG_RESULT([no]) 690905b261ecSmrgelse 691005b261ecSmrg if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 691105b261ecSmrg RAWCPPFLAGS=-undef 691205b261ecSmrg AC_MSG_RESULT([yes]) 691305b261ecSmrg else 691405b261ecSmrg AC_MSG_ERROR([${RAWCPP} defines unix with or without -undef. I don't know what to do.]) 691505b261ecSmrg fi 691605b261ecSmrgfi 691705b261ecSmrgrm -f conftest.$ac_ext 691805b261ecSmrg 691905b261ecSmrgAC_MSG_CHECKING([if $RAWCPP requires -traditional]) 692005b261ecSmrgAC_LANG_CONFTEST([Does cpp preserve "whitespace"?]) 692105b261ecSmrgif test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 692205b261ecSmrg AC_MSG_RESULT([no]) 692305b261ecSmrgelse 692405b261ecSmrg if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 692505b261ecSmrg RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 692605b261ecSmrg AC_MSG_RESULT([yes]) 692705b261ecSmrg else 692805b261ecSmrg AC_MSG_ERROR([${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do.]) 692905b261ecSmrg fi 693005b261ecSmrgfi 693105b261ecSmrgrm -f conftest.$ac_ext 693205b261ecSmrgAC_SUBST(RAWCPPFLAGS) 693305b261ecSmrg]) # XORG_PROG_RAWCPP 693405b261ecSmrg 693505b261ecSmrg# XORG_MANPAGE_SECTIONS() 693605b261ecSmrg# ----------------------- 693705b261ecSmrg# Minimum version: 1.0.0 693805b261ecSmrg# 693905b261ecSmrg# Determine which sections man pages go in for the different man page types 694005b261ecSmrg# on this OS - replaces *ManSuffix settings in old Imake *.cf per-os files. 694105b261ecSmrg# Not sure if there's any better way than just hardcoding by OS name. 694205b261ecSmrg# Override default settings by setting environment variables 694305b261ecSmrg 694405b261ecSmrgAC_DEFUN([XORG_MANPAGE_SECTIONS],[ 694505b261ecSmrgAC_REQUIRE([AC_CANONICAL_HOST]) 694605b261ecSmrg 694705b261ecSmrgif test x$APP_MAN_SUFFIX = x ; then 694805b261ecSmrg APP_MAN_SUFFIX=1 694905b261ecSmrgfi 695005b261ecSmrgif test x$APP_MAN_DIR = x ; then 695105b261ecSmrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 695205b261ecSmrgfi 695305b261ecSmrg 695405b261ecSmrgif test x$LIB_MAN_SUFFIX = x ; then 695505b261ecSmrg LIB_MAN_SUFFIX=3 695605b261ecSmrgfi 695705b261ecSmrgif test x$LIB_MAN_DIR = x ; then 695805b261ecSmrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 695905b261ecSmrgfi 696005b261ecSmrg 696105b261ecSmrgif test x$FILE_MAN_SUFFIX = x ; then 696205b261ecSmrg case $host_os in 696305b261ecSmrg solaris*) FILE_MAN_SUFFIX=4 ;; 696405b261ecSmrg *) FILE_MAN_SUFFIX=5 ;; 696505b261ecSmrg esac 696605b261ecSmrgfi 696705b261ecSmrgif test x$FILE_MAN_DIR = x ; then 696805b261ecSmrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 696905b261ecSmrgfi 697005b261ecSmrg 697105b261ecSmrgif test x$MISC_MAN_SUFFIX = x ; then 697205b261ecSmrg case $host_os in 697305b261ecSmrg solaris*) MISC_MAN_SUFFIX=5 ;; 697405b261ecSmrg *) MISC_MAN_SUFFIX=7 ;; 697505b261ecSmrg esac 697605b261ecSmrgfi 697705b261ecSmrgif test x$MISC_MAN_DIR = x ; then 697805b261ecSmrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 697905b261ecSmrgfi 698005b261ecSmrg 698105b261ecSmrgif test x$DRIVER_MAN_SUFFIX = x ; then 698205b261ecSmrg case $host_os in 698305b261ecSmrg solaris*) DRIVER_MAN_SUFFIX=7 ;; 698405b261ecSmrg *) DRIVER_MAN_SUFFIX=4 ;; 698505b261ecSmrg esac 698605b261ecSmrgfi 698705b261ecSmrgif test x$DRIVER_MAN_DIR = x ; then 698805b261ecSmrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 698905b261ecSmrgfi 699005b261ecSmrg 699105b261ecSmrgif test x$ADMIN_MAN_SUFFIX = x ; then 699205b261ecSmrg case $host_os in 699305b261ecSmrg solaris*) ADMIN_MAN_SUFFIX=1m ;; 699405b261ecSmrg *) ADMIN_MAN_SUFFIX=8 ;; 699505b261ecSmrg esac 699605b261ecSmrgfi 699705b261ecSmrgif test x$ADMIN_MAN_DIR = x ; then 699805b261ecSmrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 699905b261ecSmrgfi 700005b261ecSmrg 700105b261ecSmrg 700205b261ecSmrgAC_SUBST([APP_MAN_SUFFIX]) 700305b261ecSmrgAC_SUBST([LIB_MAN_SUFFIX]) 700405b261ecSmrgAC_SUBST([FILE_MAN_SUFFIX]) 700505b261ecSmrgAC_SUBST([MISC_MAN_SUFFIX]) 700605b261ecSmrgAC_SUBST([DRIVER_MAN_SUFFIX]) 700705b261ecSmrgAC_SUBST([ADMIN_MAN_SUFFIX]) 700805b261ecSmrgAC_SUBST([APP_MAN_DIR]) 700905b261ecSmrgAC_SUBST([LIB_MAN_DIR]) 701005b261ecSmrgAC_SUBST([FILE_MAN_DIR]) 701105b261ecSmrgAC_SUBST([MISC_MAN_DIR]) 701205b261ecSmrgAC_SUBST([DRIVER_MAN_DIR]) 701305b261ecSmrgAC_SUBST([ADMIN_MAN_DIR]) 701405b261ecSmrg]) # XORG_MANPAGE_SECTIONS 701505b261ecSmrg 701605b261ecSmrg# XORG_CHECK_LINUXDOC 701705b261ecSmrg# ------------------- 701805b261ecSmrg# Minimum version: 1.0.0 701905b261ecSmrg# 702005b261ecSmrg# Defines the variable MAKE_TEXT if the necessary tools and 702105b261ecSmrg# files are found. $(MAKE_TEXT) blah.sgml will then produce blah.txt. 702205b261ecSmrg# Whether or not the necessary tools and files are found can be checked 702305b261ecSmrg# with the AM_CONDITIONAL "BUILD_LINUXDOC" 702405b261ecSmrgAC_DEFUN([XORG_CHECK_LINUXDOC],[ 702505b261ecSmrgXORG_SGML_PATH=$prefix/share/sgml 702605b261ecSmrgHAVE_DEFS_ENT= 702705b261ecSmrg 702805b261ecSmrgif test x"$cross_compiling" = x"yes" ; then 702905b261ecSmrg HAVE_DEFS_ENT=no 703005b261ecSmrgelse 703105b261ecSmrg AC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes]) 703205b261ecSmrgfi 703305b261ecSmrg 703405b261ecSmrgAC_PATH_PROG(LINUXDOC, linuxdoc) 703505b261ecSmrgAC_PATH_PROG(PS2PDF, ps2pdf) 703605b261ecSmrg 703705b261ecSmrgAC_MSG_CHECKING([Whether to build documentation]) 703805b261ecSmrg 703905b261ecSmrgif test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then 704005b261ecSmrg BUILDDOC=yes 704105b261ecSmrgelse 704205b261ecSmrg BUILDDOC=no 704305b261ecSmrgfi 704405b261ecSmrg 704505b261ecSmrgAM_CONDITIONAL(BUILD_LINUXDOC, [test x$BUILDDOC = xyes]) 704605b261ecSmrg 704705b261ecSmrgAC_MSG_RESULT([$BUILDDOC]) 704805b261ecSmrg 704905b261ecSmrgAC_MSG_CHECKING([Whether to build pdf documentation]) 705005b261ecSmrg 705105b261ecSmrgif test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then 705205b261ecSmrg BUILDPDFDOC=yes 705305b261ecSmrgelse 705405b261ecSmrg BUILDPDFDOC=no 705505b261ecSmrgfi 705605b261ecSmrg 705705b261ecSmrgAM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes]) 705805b261ecSmrg 705905b261ecSmrgAC_MSG_RESULT([$BUILDPDFDOC]) 706005b261ecSmrg 706105b261ecSmrgMAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt" 706205b261ecSmrgMAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps" 706305b261ecSmrgMAKE_PDF="$PS2PDF" 706405b261ecSmrgMAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B html --split=0" 706505b261ecSmrg 706605b261ecSmrgAC_SUBST(MAKE_TEXT) 706705b261ecSmrgAC_SUBST(MAKE_PS) 706805b261ecSmrgAC_SUBST(MAKE_PDF) 706905b261ecSmrgAC_SUBST(MAKE_HTML) 707005b261ecSmrg]) # XORG_CHECK_LINUXDOC 707105b261ecSmrg 707205b261ecSmrg# XORG_CHECK_DOCBOOK 707305b261ecSmrg# ------------------- 707405b261ecSmrg# Minimum version: 1.0.0 707505b261ecSmrg# 707605b261ecSmrg# Checks for the ability to build output formats from SGML DocBook source. 707705b261ecSmrg# For XXX in {TXT, PDF, PS, HTML}, the AM_CONDITIONAL "BUILD_XXXDOC" 707805b261ecSmrg# indicates whether the necessary tools and files are found and, if set, 707905b261ecSmrg# $(MAKE_XXX) blah.sgml will produce blah.xxx. 708005b261ecSmrgAC_DEFUN([XORG_CHECK_DOCBOOK],[ 708105b261ecSmrgXORG_SGML_PATH=$prefix/share/sgml 708205b261ecSmrgHAVE_DEFS_ENT= 708305b261ecSmrgBUILDTXTDOC=no 708405b261ecSmrgBUILDPDFDOC=no 708505b261ecSmrgBUILDPSDOC=no 708605b261ecSmrgBUILDHTMLDOC=no 708705b261ecSmrg 708805b261ecSmrgAC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes]) 708905b261ecSmrg 709005b261ecSmrgAC_PATH_PROG(DOCBOOKPS, docbook2ps) 709105b261ecSmrgAC_PATH_PROG(DOCBOOKPDF, docbook2pdf) 709205b261ecSmrgAC_PATH_PROG(DOCBOOKHTML, docbook2html) 709305b261ecSmrgAC_PATH_PROG(DOCBOOKTXT, docbook2txt) 709405b261ecSmrg 709505b261ecSmrgAC_MSG_CHECKING([Whether to build text documentation]) 709605b261ecSmrgif test x$HAVE_DEFS_ENT != x && test x$DOCBOOKTXT != x && 709705b261ecSmrg test x$BUILD_TXTDOC != xno; then 709805b261ecSmrg BUILDTXTDOC=yes 709905b261ecSmrgfi 710005b261ecSmrgAM_CONDITIONAL(BUILD_TXTDOC, [test x$BUILDTXTDOC = xyes]) 710105b261ecSmrgAC_MSG_RESULT([$BUILDTXTDOC]) 710205b261ecSmrg 710305b261ecSmrgAC_MSG_CHECKING([Whether to build PDF documentation]) 710405b261ecSmrgif test x$HAVE_DEFS_ENT != x && test x$DOCBOOKPDF != x && 710505b261ecSmrg test x$BUILD_PDFDOC != xno; then 710605b261ecSmrg BUILDPDFDOC=yes 710705b261ecSmrgfi 710805b261ecSmrgAM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes]) 710905b261ecSmrgAC_MSG_RESULT([$BUILDPDFDOC]) 711005b261ecSmrg 711105b261ecSmrgAC_MSG_CHECKING([Whether to build PostScript documentation]) 711205b261ecSmrgif test x$HAVE_DEFS_ENT != x && test x$DOCBOOKPS != x && 711305b261ecSmrg test x$BUILD_PSDOC != xno; then 711405b261ecSmrg BUILDPSDOC=yes 711505b261ecSmrgfi 711605b261ecSmrgAM_CONDITIONAL(BUILD_PSDOC, [test x$BUILDPSDOC = xyes]) 711705b261ecSmrgAC_MSG_RESULT([$BUILDPSDOC]) 711805b261ecSmrg 711905b261ecSmrgAC_MSG_CHECKING([Whether to build HTML documentation]) 712005b261ecSmrgif test x$HAVE_DEFS_ENT != x && test x$DOCBOOKHTML != x && 712105b261ecSmrg test x$BUILD_HTMLDOC != xno; then 712205b261ecSmrg BUILDHTMLDOC=yes 712305b261ecSmrgfi 712405b261ecSmrgAM_CONDITIONAL(BUILD_HTMLDOC, [test x$BUILDHTMLDOC = xyes]) 712505b261ecSmrgAC_MSG_RESULT([$BUILDHTMLDOC]) 712605b261ecSmrg 712705b261ecSmrgMAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKTXT" 712805b261ecSmrgMAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPS" 712905b261ecSmrgMAKE_PDF="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPDF" 713005b261ecSmrgMAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKHTML" 713105b261ecSmrg 713205b261ecSmrgAC_SUBST(MAKE_TEXT) 713305b261ecSmrgAC_SUBST(MAKE_PS) 713405b261ecSmrgAC_SUBST(MAKE_PDF) 713505b261ecSmrgAC_SUBST(MAKE_HTML) 713605b261ecSmrg]) # XORG_CHECK_DOCBOOK 713705b261ecSmrg 713805b261ecSmrg# XORG_CHECK_MALLOC_ZERO 713905b261ecSmrg# ---------------------- 714005b261ecSmrg# Minimum version: 1.0.0 714105b261ecSmrg# 714205b261ecSmrg# Defines {MALLOC,XMALLOC,XTMALLOC}_ZERO_CFLAGS appropriately if 714305b261ecSmrg# malloc(0) returns NULL. Packages should add one of these cflags to 714405b261ecSmrg# their AM_CFLAGS (or other appropriate *_CFLAGS) to use them. 714505b261ecSmrgAC_DEFUN([XORG_CHECK_MALLOC_ZERO],[ 714605b261ecSmrgAC_ARG_ENABLE(malloc0returnsnull, 714705b261ecSmrg AC_HELP_STRING([--enable-malloc0returnsnull], 714805b261ecSmrg [malloc(0) returns NULL (default: auto)]), 714905b261ecSmrg [MALLOC_ZERO_RETURNS_NULL=$enableval], 715005b261ecSmrg [MALLOC_ZERO_RETURNS_NULL=auto]) 715105b261ecSmrg 715205b261ecSmrgAC_MSG_CHECKING([whether malloc(0) returns NULL]) 715305b261ecSmrgif test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 715405b261ecSmrg AC_RUN_IFELSE([ 715505b261ecSmrgchar *malloc(); 715605b261ecSmrgchar *realloc(); 715705b261ecSmrgchar *calloc(); 715805b261ecSmrgmain() { 715905b261ecSmrg char *m0, *r0, *c0, *p; 716005b261ecSmrg m0 = malloc(0); 716105b261ecSmrg p = malloc(10); 716205b261ecSmrg r0 = realloc(p,0); 716305b261ecSmrg c0 = calloc(0); 716405b261ecSmrg exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1); 716505b261ecSmrg}], 716605b261ecSmrg [MALLOC_ZERO_RETURNS_NULL=yes], 716705b261ecSmrg [MALLOC_ZERO_RETURNS_NULL=no]) 716805b261ecSmrgfi 716905b261ecSmrgAC_MSG_RESULT([$MALLOC_ZERO_RETURNS_NULL]) 717005b261ecSmrg 717105b261ecSmrgif test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 717205b261ecSmrg MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 717305b261ecSmrg XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 717405b261ecSmrg XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 717505b261ecSmrgelse 717605b261ecSmrg MALLOC_ZERO_CFLAGS="" 717705b261ecSmrg XMALLOC_ZERO_CFLAGS="" 717805b261ecSmrg XTMALLOC_ZERO_CFLAGS="" 717905b261ecSmrgfi 718005b261ecSmrg 718105b261ecSmrgAC_SUBST([MALLOC_ZERO_CFLAGS]) 718205b261ecSmrgAC_SUBST([XMALLOC_ZERO_CFLAGS]) 718305b261ecSmrgAC_SUBST([XTMALLOC_ZERO_CFLAGS]) 718405b261ecSmrg]) # XORG_CHECK_MALLOC_ZERO 718505b261ecSmrg 718605b261ecSmrg# XORG_WITH_LINT() 718705b261ecSmrg# ---------------- 718805b261ecSmrg# Minimum version: 1.1.0 718905b261ecSmrg# 719005b261ecSmrg# Sets up flags for source checkers such as lint and sparse if --with-lint 719105b261ecSmrg# is specified. (Use --with-lint=sparse for sparse.) 719205b261ecSmrg# Sets $LINT to name of source checker passed with --with-lint (default: lint) 719305b261ecSmrg# Sets $LINT_FLAGS to flags to pass to source checker 719405b261ecSmrg# Sets LINT automake conditional if enabled (default: disabled) 719505b261ecSmrg# 719605b261ecSmrgAC_DEFUN([XORG_WITH_LINT],[ 719705b261ecSmrg 719805b261ecSmrg# Allow checking code with lint, sparse, etc. 719905b261ecSmrgAC_ARG_WITH(lint, [AC_HELP_STRING([--with-lint], 720005b261ecSmrg [Use a lint-style source code checker (default: disabled)])], 720105b261ecSmrg [use_lint=$withval], [use_lint=no]) 720205b261ecSmrgif test "x$use_lint" = "xyes" ; then 720305b261ecSmrg LINT="lint" 720405b261ecSmrgelse 720505b261ecSmrg LINT="$use_lint" 720605b261ecSmrgfi 720705b261ecSmrgif test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then 720805b261ecSmrg case $LINT in 720905b261ecSmrg lint|*/lint) 721005b261ecSmrg case $host_os in 721105b261ecSmrg solaris*) 721205b261ecSmrg LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 721305b261ecSmrg ;; 721405b261ecSmrg esac 721505b261ecSmrg ;; 721605b261ecSmrg esac 721705b261ecSmrgfi 721805b261ecSmrg 721905b261ecSmrgAC_SUBST(LINT) 722005b261ecSmrgAC_SUBST(LINT_FLAGS) 722105b261ecSmrgAM_CONDITIONAL(LINT, [test x$LINT != xno]) 722205b261ecSmrg 722305b261ecSmrg]) # XORG_WITH_LINT 722405b261ecSmrg 722505b261ecSmrg# XORG_LINT_LIBRARY(LIBNAME) 722605b261ecSmrg# -------------------------- 722705b261ecSmrg# Minimum version: 1.1.0 722805b261ecSmrg# 722905b261ecSmrg# Sets up flags for building lint libraries for checking programs that call 723005b261ecSmrg# functions in the library. 723105b261ecSmrg# Disabled by default, enable with --enable-lint-library 723205b261ecSmrg# Sets: 723305b261ecSmrg# @LINTLIB@ - name of lint library file to make 723405b261ecSmrg# MAKE_LINT_LIB - automake conditional 723505b261ecSmrg# 723605b261ecSmrg 723705b261ecSmrgAC_DEFUN([XORG_LINT_LIBRARY],[ 723805b261ecSmrgAC_REQUIRE([XORG_WITH_LINT]) 723905b261ecSmrg# Build lint "library" for more indepth checks of programs calling this library 724005b261ecSmrgAC_ARG_ENABLE(lint-library, [AC_HELP_STRING([--enable-lint-library], 724105b261ecSmrg [Create lint library (default: disabled)])], 724205b261ecSmrg [make_lint_lib=$enableval], [make_lint_lib=no]) 724305b261ecSmrgif test "x$make_lint_lib" != "xno" ; then 724405b261ecSmrg if test "x$LINT" = "xno" ; then 724505b261ecSmrg AC_MSG_ERROR([Cannot make lint library without --with-lint]) 724605b261ecSmrg fi 724705b261ecSmrg if test "x$make_lint_lib" = "xyes" ; then 724805b261ecSmrg LINTLIB=llib-l$1.ln 724905b261ecSmrg else 725005b261ecSmrg LINTLIB=$make_lint_lib 725105b261ecSmrg fi 725205b261ecSmrgfi 725305b261ecSmrgAC_SUBST(LINTLIB) 725405b261ecSmrgAM_CONDITIONAL(MAKE_LINT_LIB, [test x$make_lint_lib != xno]) 725505b261ecSmrg 725605b261ecSmrg]) # XORG_LINT_LIBRARY 725705b261ecSmrg 725805b261ecSmrgdnl Copyright 2005 Red Hat, Inc 725905b261ecSmrgdnl 726005b261ecSmrgdnl Permission to use, copy, modify, distribute, and sell this software and its 726105b261ecSmrgdnl documentation for any purpose is hereby granted without fee, provided that 726205b261ecSmrgdnl the above copyright notice appear in all copies and that both that 726305b261ecSmrgdnl copyright notice and this permission notice appear in supporting 726405b261ecSmrgdnl documentation. 726505b261ecSmrgdnl 726605b261ecSmrgdnl The above copyright notice and this permission notice shall be included 726705b261ecSmrgdnl in all copies or substantial portions of the Software. 726805b261ecSmrgdnl 726905b261ecSmrgdnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 727005b261ecSmrgdnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 727105b261ecSmrgdnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 727205b261ecSmrgdnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 727305b261ecSmrgdnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 727405b261ecSmrgdnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 727505b261ecSmrgdnl OTHER DEALINGS IN THE SOFTWARE. 727605b261ecSmrgdnl 727705b261ecSmrgdnl Except as contained in this notice, the name of the copyright holders shall 727805b261ecSmrgdnl not be used in advertising or otherwise to promote the sale, use or 727905b261ecSmrgdnl other dealings in this Software without prior written authorization 728005b261ecSmrgdnl from the copyright holders. 728105b261ecSmrgdnl 728205b261ecSmrg 728305b261ecSmrg# XORG_RELEASE_VERSION 728405b261ecSmrg# -------------------- 728505b261ecSmrg# Adds --with/without-release-string and changes the PACKAGE and 728605b261ecSmrg# PACKAGE_TARNAME to use "$PACKAGE{_TARNAME}-$RELEASE_VERSION". If 728705b261ecSmrg# no option is given, PACKAGE and PACKAGE_TARNAME are unchanged. Also 728805b261ecSmrg# defines PACKAGE_VERSION_{MAJOR,MINOR,PATCHLEVEL} for modules to use. 728905b261ecSmrg 729005b261ecSmrgAC_DEFUN([XORG_RELEASE_VERSION],[ 729105b261ecSmrg AC_ARG_WITH(release-version, 729205b261ecSmrg AC_HELP_STRING([--with-release-version=STRING], 729305b261ecSmrg [Use release version string in package name]), 729405b261ecSmrg [RELEASE_VERSION="$withval"], 729505b261ecSmrg [RELEASE_VERSION=""]) 729605b261ecSmrg if test "x$RELEASE_VERSION" != "x"; then 729705b261ecSmrg PACKAGE="$PACKAGE-$RELEASE_VERSION" 729805b261ecSmrg PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 729905b261ecSmrg AC_MSG_NOTICE([Building with package name set to $PACKAGE]) 730005b261ecSmrg fi 730105b261ecSmrg AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MAJOR], 730205b261ecSmrg [`echo $PACKAGE_VERSION | cut -d . -f 1`], 730305b261ecSmrg [Major version of this package]) 730405b261ecSmrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 730505b261ecSmrg if test "x$PVM" = "x"; then 730605b261ecSmrg PVM="0" 730705b261ecSmrg fi 730805b261ecSmrg AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MINOR], 730905b261ecSmrg [$PVM], 731005b261ecSmrg [Minor version of this package]) 731105b261ecSmrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 731205b261ecSmrg if test "x$PVP" = "x"; then 731305b261ecSmrg PVP="0" 731405b261ecSmrg fi 731505b261ecSmrg AC_DEFINE_UNQUOTED([PACKAGE_VERSION_PATCHLEVEL], 731605b261ecSmrg [$PVP], 731705b261ecSmrg [Patch version of this package]) 731805b261ecSmrg]) 731905b261ecSmrg 732005b261ecSmrgdnl $XdotOrg: lib/xtrans/xtrans.m4,v 1.6 2005/07/26 18:59:11 alanc Exp $ 732105b261ecSmrgdnl 732205b261ecSmrgdnl Copyright 2005 Sun Microsystems, Inc. All rights reserved. 732305b261ecSmrgdnl 732405b261ecSmrgdnl Permission to use, copy, modify, distribute, and sell this software and its 732505b261ecSmrgdnl documentation for any purpose is hereby granted without fee, provided that 732605b261ecSmrgdnl the above copyright notice appear in all copies and that both that 732705b261ecSmrgdnl copyright notice and this permission notice appear in supporting 732805b261ecSmrgdnl documentation. 732905b261ecSmrgdnl 733005b261ecSmrgdnl The above copyright notice and this permission notice shall be included 733105b261ecSmrgdnl in all copies or substantial portions of the Software. 733205b261ecSmrgdnl 733305b261ecSmrgdnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 733405b261ecSmrgdnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 733505b261ecSmrgdnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 733605b261ecSmrgdnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 733705b261ecSmrgdnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 733805b261ecSmrgdnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 733905b261ecSmrgdnl OTHER DEALINGS IN THE SOFTWARE. 734005b261ecSmrgdnl 734105b261ecSmrgdnl Except as contained in this notice, the name of the copyright holders shall 734205b261ecSmrgdnl not be used in advertising or otherwise to promote the sale, use or 734305b261ecSmrgdnl other dealings in this Software without prior written authorization 734405b261ecSmrgdnl from the copyright holders. 734505b261ecSmrgdnl 734605b261ecSmrg 734705b261ecSmrg# XTRANS_TCP_FLAGS() 734805b261ecSmrg# ------------------ 734905b261ecSmrg# Find needed libraries for TCP sockets, and check for IPv6 support 735005b261ecSmrgAC_DEFUN([XTRANS_TCP_FLAGS],[ 735105b261ecSmrg # SVR4 hides these in libraries other than libc 735205b261ecSmrg AC_SEARCH_LIBS(socket, [socket]) 735305b261ecSmrg AC_SEARCH_LIBS(gethostbyname, [nsl]) 735405b261ecSmrg 735505b261ecSmrg # Needs to come after above checks for libsocket & libnsl for SVR4 systems 735605b261ecSmrg AC_ARG_ENABLE(ipv6, 735705b261ecSmrg AC_HELP_STRING([--enable-IPv6],[Enable IPv6 support]), 735805b261ecSmrg [IPV6CONN=$enableval], 735905b261ecSmrg [AC_CHECK_FUNC(getaddrinfo,[IPV6CONN=yes],[IPV6CONN=no])]) 736005b261ecSmrg AC_MSG_CHECKING([if IPv6 support should be built]) 736105b261ecSmrg if test "$IPV6CONN" = "yes"; then 736205b261ecSmrg AC_DEFINE(IPv6,1,[Support IPv6 for TCP connections]) 736305b261ecSmrg fi 736405b261ecSmrg AC_MSG_RESULT($IPV6CONN) 736505b261ecSmrg 736605b261ecSmrg # 4.3BSD-Reno added a new member to struct sockaddr_in 736705b261ecSmrg AC_CHECK_MEMBER([struct sockaddr_in.sin_len], 736805b261ecSmrg AC_DEFINE([BSD44SOCKETS],1, 736905b261ecSmrg [Define to 1 if `struct sockaddr_in' has a `sin_len' member]), [], [ 737005b261ecSmrg#include <sys/types.h> 737105b261ecSmrg#include <sys/socket.h> 737205b261ecSmrg#include <netinet/in.h> 737305b261ecSmrg ]) 737405b261ecSmrg 737505b261ecSmrg # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 737605b261ecSmrg AC_CHECK_TYPES([socklen_t], [], [], [ 737705b261ecSmrgAC_INCLUDES_DEFAULT 737805b261ecSmrg#include <sys/socket.h>]) 737905b261ecSmrg 738005b261ecSmrg]) # XTRANS_TCP_FLAGS 738105b261ecSmrg 738205b261ecSmrg# XTRANS_CONNECTION_FLAGS() 738305b261ecSmrg# ------------------------- 738405b261ecSmrg# Standard checks for which Xtrans transports to use by the Xorg packages 738505b261ecSmrg# that use Xtrans functions 738605b261ecSmrgAC_DEFUN([XTRANS_CONNECTION_FLAGS],[ 738705b261ecSmrg AC_REQUIRE([AC_CANONICAL_HOST]) 738805b261ecSmrg AC_REQUIRE([AC_TYPE_SIGNAL]) 738905b261ecSmrg [case $host_os in 739005b261ecSmrg mingw*) unixdef="no" ;; 739105b261ecSmrg *) unixdef="yes" ;; 739205b261ecSmrg esac] 739305b261ecSmrg AC_ARG_ENABLE(unix-transport, 739405b261ecSmrg AC_HELP_STRING([--enable-unix-transport],[Enable UNIX domain socket transport]), 739505b261ecSmrg [UNIXCONN=$enableval], [UNIXCONN=$unixdef]) 739605b261ecSmrg AC_MSG_CHECKING([if Xtrans should support UNIX socket connections]) 739705b261ecSmrg if test "$UNIXCONN" = "yes"; then 739805b261ecSmrg AC_DEFINE(UNIXCONN,1,[Support UNIX socket connections]) 739905b261ecSmrg fi 740005b261ecSmrg AC_MSG_RESULT($UNIXCONN) 740105b261ecSmrg AC_ARG_ENABLE(tcp-transport, 740205b261ecSmrg AC_HELP_STRING([--enable-tcp-transport],[Enable TCP socket transport]), 740305b261ecSmrg [TCPCONN=$enableval], [TCPCONN=yes]) 740405b261ecSmrg AC_MSG_CHECKING([if Xtrans should support TCP socket connections]) 740505b261ecSmrg AC_MSG_RESULT($TCPCONN) 740605b261ecSmrg if test "$TCPCONN" = "yes"; then 740705b261ecSmrg AC_DEFINE(TCPCONN,1,[Support TCP socket connections]) 740805b261ecSmrg XTRANS_TCP_FLAGS 740905b261ecSmrg fi 741005b261ecSmrg [case $host_os in 741105b261ecSmrg solaris*|sco*|sysv4*) localdef="yes" ;; 741205b261ecSmrg *) localdef="no" ;; 741305b261ecSmrg esac] 741405b261ecSmrg AC_ARG_ENABLE(local-transport, 741505b261ecSmrg AC_HELP_STRING([--enable-local-transport],[Enable os-specific local transport]), 741605b261ecSmrg [LOCALCONN=$enableval], [LOCALCONN=$localdef]) 741705b261ecSmrg AC_MSG_CHECKING([if Xtrans should support os-specific local connections]) 741805b261ecSmrg AC_MSG_RESULT($LOCALCONN) 741905b261ecSmrg if test "$LOCALCONN" = "yes"; then 742005b261ecSmrg AC_DEFINE(LOCALCONN,1,[Support os-specific local connections]) 742105b261ecSmrg fi 742205b261ecSmrg 742305b261ecSmrg]) # XTRANS_CONNECTION_FLAGS 742405b261ecSmrg 742505b261ecSmrg 742605b261ecSmrg# XTRANS_SECURE_RPC_FLAGS() 742705b261ecSmrg# ------------------------- 742805b261ecSmrg# Check for Secure RPC functions - must come after XTRANS_TCP_FLAGS 742905b261ecSmrg# so that any necessary networking libraries are already found 743005b261ecSmrgAC_DEFUN([XTRANS_SECURE_RPC_FLAGS], 743105b261ecSmrg[AC_REQUIRE([XTRANS_TCP_FLAGS]) 743205b261ecSmrg AC_ARG_ENABLE(secure-rpc, 743305b261ecSmrg AC_HELP_STRING([--enable-secure-rpc],[Enable Secure RPC]), 743405b261ecSmrg [SECURE_RPC=$enableval], [SECURE_RPC="try"]) 743505b261ecSmrg 743605b261ecSmrg if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then 743705b261ecSmrg FOUND_SECURE_RPC="no" 743805b261ecSmrg AC_CHECK_FUNCS([authdes_seccreate authdes_create], 743905b261ecSmrg [FOUND_SECURE_RPC="yes"]) 744005b261ecSmrg if test "x$FOUND_SECURE_RPC" = "xno" ; then 744105b261ecSmrg if test "x$SECURE_RPC" = "xyes" ; then 744205b261ecSmrg AC_MSG_ERROR([Secure RPC requested, but required functions not found]) 744305b261ecSmrg fi 744405b261ecSmrg SECURE_RPC="no" 744505b261ecSmrg else 744605b261ecSmrg dnl FreeBSD keeps getsecretkey in librpcsvc 744705b261ecSmrg AC_SEARCH_LIBS(getsecretkey, [rpcsvc]) 744805b261ecSmrg SECURE_RPC="yes" 744905b261ecSmrg fi 745005b261ecSmrg fi 745105b261ecSmrg AC_MSG_CHECKING([if Secure RPC authentication ("SUN-DES-1") should be supported]) 745205b261ecSmrg if test "x$SECURE_RPC" = "xyes" ; then 745305b261ecSmrg AC_DEFINE(SECURE_RPC, 1, [Support Secure RPC ("SUN-DES-1") authentication for X11 clients]) 745405b261ecSmrg fi 745505b261ecSmrg AC_MSG_RESULT($SECURE_RPC) 745605b261ecSmrg]) # XTRANS_SECURE_RPC_FLAGS 745705b261ecSmrg 745805b261ecSmrg 745905b261ecSmrg# Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc. 746005b261ecSmrg# 746105b261ecSmrg# This file is free software; the Free Software Foundation 746205b261ecSmrg# gives unlimited permission to copy and/or distribute it, 746305b261ecSmrg# with or without modifications, as long as this notice is preserved. 746405b261ecSmrg 746505b261ecSmrg# AM_AUTOMAKE_VERSION(VERSION) 746605b261ecSmrg# ---------------------------- 746705b261ecSmrg# Automake X.Y traces this macro to ensure aclocal.m4 has been 746805b261ecSmrg# generated from the m4 files accompanying Automake X.Y. 746905b261ecSmrg# (This private macro should not be called outside this file.) 747005b261ecSmrgAC_DEFUN([AM_AUTOMAKE_VERSION], 747105b261ecSmrg[am__api_version='1.10' 747205b261ecSmrgdnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 747305b261ecSmrgdnl require some minimum version. Point them to the right macro. 747405b261ecSmrgm4_if([$1], [1.10.1], [], 747505b261ecSmrg [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 747605b261ecSmrg]) 747705b261ecSmrg 747805b261ecSmrg# _AM_AUTOCONF_VERSION(VERSION) 747905b261ecSmrg# ----------------------------- 748005b261ecSmrg# aclocal traces this macro to find the Autoconf version. 748105b261ecSmrg# This is a private macro too. Using m4_define simplifies 748205b261ecSmrg# the logic in aclocal, which can simply ignore this definition. 748305b261ecSmrgm4_define([_AM_AUTOCONF_VERSION], []) 748405b261ecSmrg 748505b261ecSmrg# AM_SET_CURRENT_AUTOMAKE_VERSION 748605b261ecSmrg# ------------------------------- 748705b261ecSmrg# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 748805b261ecSmrg# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. 748905b261ecSmrgAC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 749005b261ecSmrg[AM_AUTOMAKE_VERSION([1.10.1])dnl 749105b261ecSmrgm4_ifndef([AC_AUTOCONF_VERSION], 749205b261ecSmrg [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 749305b261ecSmrg_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)]) 749405b261ecSmrg 749505b261ecSmrg# Figure out how to run the assembler. -*- Autoconf -*- 749605b261ecSmrg 749705b261ecSmrg# Copyright (C) 2001, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 749805b261ecSmrg# 749905b261ecSmrg# This file is free software; the Free Software Foundation 750005b261ecSmrg# gives unlimited permission to copy and/or distribute it, 750105b261ecSmrg# with or without modifications, as long as this notice is preserved. 750205b261ecSmrg 750305b261ecSmrg# serial 5 750405b261ecSmrg 750505b261ecSmrg# AM_PROG_AS 750605b261ecSmrg# ---------- 750705b261ecSmrgAC_DEFUN([AM_PROG_AS], 750805b261ecSmrg[# By default we simply use the C compiler to build assembly code. 750905b261ecSmrgAC_REQUIRE([AC_PROG_CC]) 751005b261ecSmrgtest "${CCAS+set}" = set || CCAS=$CC 751105b261ecSmrgtest "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS 751205b261ecSmrgAC_ARG_VAR([CCAS], [assembler compiler command (defaults to CC)]) 751305b261ecSmrgAC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)]) 751405b261ecSmrg_AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl 751505b261ecSmrg]) 751605b261ecSmrg 751705b261ecSmrg# AM_AUX_DIR_EXPAND -*- Autoconf -*- 751805b261ecSmrg 751905b261ecSmrg# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 752005b261ecSmrg# 752105b261ecSmrg# This file is free software; the Free Software Foundation 752205b261ecSmrg# gives unlimited permission to copy and/or distribute it, 752305b261ecSmrg# with or without modifications, as long as this notice is preserved. 752405b261ecSmrg 752505b261ecSmrg# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 752605b261ecSmrg# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 752705b261ecSmrg# `$srcdir', `$srcdir/..', or `$srcdir/../..'. 752805b261ecSmrg# 752905b261ecSmrg# Of course, Automake must honor this variable whenever it calls a 753005b261ecSmrg# tool from the auxiliary directory. The problem is that $srcdir (and 753105b261ecSmrg# therefore $ac_aux_dir as well) can be either absolute or relative, 753205b261ecSmrg# depending on how configure is run. This is pretty annoying, since 753305b261ecSmrg# it makes $ac_aux_dir quite unusable in subdirectories: in the top 753405b261ecSmrg# source directory, any form will work fine, but in subdirectories a 753505b261ecSmrg# relative path needs to be adjusted first. 753605b261ecSmrg# 753705b261ecSmrg# $ac_aux_dir/missing 753805b261ecSmrg# fails when called from a subdirectory if $ac_aux_dir is relative 753905b261ecSmrg# $top_srcdir/$ac_aux_dir/missing 754005b261ecSmrg# fails if $ac_aux_dir is absolute, 754105b261ecSmrg# fails when called from a subdirectory in a VPATH build with 754205b261ecSmrg# a relative $ac_aux_dir 754305b261ecSmrg# 754405b261ecSmrg# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 754505b261ecSmrg# are both prefixed by $srcdir. In an in-source build this is usually 754605b261ecSmrg# harmless because $srcdir is `.', but things will broke when you 754705b261ecSmrg# start a VPATH build or use an absolute $srcdir. 754805b261ecSmrg# 754905b261ecSmrg# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 755005b261ecSmrg# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 755105b261ecSmrg# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 755205b261ecSmrg# and then we would define $MISSING as 755305b261ecSmrg# MISSING="\${SHELL} $am_aux_dir/missing" 755405b261ecSmrg# This will work as long as MISSING is not called from configure, because 755505b261ecSmrg# unfortunately $(top_srcdir) has no meaning in configure. 755605b261ecSmrg# However there are other variables, like CC, which are often used in 755705b261ecSmrg# configure, and could therefore not use this "fixed" $ac_aux_dir. 755805b261ecSmrg# 755905b261ecSmrg# Another solution, used here, is to always expand $ac_aux_dir to an 756005b261ecSmrg# absolute PATH. The drawback is that using absolute paths prevent a 756105b261ecSmrg# configured tree to be moved without reconfiguration. 756205b261ecSmrg 756305b261ecSmrgAC_DEFUN([AM_AUX_DIR_EXPAND], 756405b261ecSmrg[dnl Rely on autoconf to set up CDPATH properly. 756505b261ecSmrgAC_PREREQ([2.50])dnl 756605b261ecSmrg# expand $ac_aux_dir to an absolute path 756705b261ecSmrgam_aux_dir=`cd $ac_aux_dir && pwd` 756805b261ecSmrg]) 756905b261ecSmrg 757005b261ecSmrg# AM_CONDITIONAL -*- Autoconf -*- 757105b261ecSmrg 757205b261ecSmrg# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 757305b261ecSmrg# Free Software Foundation, Inc. 757405b261ecSmrg# 757505b261ecSmrg# This file is free software; the Free Software Foundation 757605b261ecSmrg# gives unlimited permission to copy and/or distribute it, 757705b261ecSmrg# with or without modifications, as long as this notice is preserved. 757805b261ecSmrg 757905b261ecSmrg# serial 8 758005b261ecSmrg 758105b261ecSmrg# AM_CONDITIONAL(NAME, SHELL-CONDITION) 758205b261ecSmrg# ------------------------------------- 758305b261ecSmrg# Define a conditional. 758405b261ecSmrgAC_DEFUN([AM_CONDITIONAL], 758505b261ecSmrg[AC_PREREQ(2.52)dnl 758605b261ecSmrg ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 758705b261ecSmrg [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 758805b261ecSmrgAC_SUBST([$1_TRUE])dnl 758905b261ecSmrgAC_SUBST([$1_FALSE])dnl 759005b261ecSmrg_AM_SUBST_NOTMAKE([$1_TRUE])dnl 759105b261ecSmrg_AM_SUBST_NOTMAKE([$1_FALSE])dnl 759205b261ecSmrgif $2; then 759305b261ecSmrg $1_TRUE= 759405b261ecSmrg $1_FALSE='#' 759505b261ecSmrgelse 759605b261ecSmrg $1_TRUE='#' 759705b261ecSmrg $1_FALSE= 759805b261ecSmrgfi 759905b261ecSmrgAC_CONFIG_COMMANDS_PRE( 760005b261ecSmrg[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 760105b261ecSmrg AC_MSG_ERROR([[conditional "$1" was never defined. 760205b261ecSmrgUsually this means the macro was only invoked conditionally.]]) 760305b261ecSmrgfi])]) 760405b261ecSmrg 760505b261ecSmrg# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 760605b261ecSmrg# Free Software Foundation, Inc. 760705b261ecSmrg# 760805b261ecSmrg# This file is free software; the Free Software Foundation 760905b261ecSmrg# gives unlimited permission to copy and/or distribute it, 761005b261ecSmrg# with or without modifications, as long as this notice is preserved. 761105b261ecSmrg 761205b261ecSmrg# serial 9 761305b261ecSmrg 761405b261ecSmrg# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 761505b261ecSmrg# written in clear, in which case automake, when reading aclocal.m4, 761605b261ecSmrg# will think it sees a *use*, and therefore will trigger all it's 761705b261ecSmrg# C support machinery. Also note that it means that autoscan, seeing 761805b261ecSmrg# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 761905b261ecSmrg 762005b261ecSmrg 762105b261ecSmrg# _AM_DEPENDENCIES(NAME) 762205b261ecSmrg# ---------------------- 762305b261ecSmrg# See how the compiler implements dependency checking. 762405b261ecSmrg# NAME is "CC", "CXX", "GCJ", or "OBJC". 762505b261ecSmrg# We try a few techniques and use that to set a single cache variable. 762605b261ecSmrg# 762705b261ecSmrg# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 762805b261ecSmrg# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 762905b261ecSmrg# dependency, and given that the user is not expected to run this macro, 763005b261ecSmrg# just rely on AC_PROG_CC. 763105b261ecSmrgAC_DEFUN([_AM_DEPENDENCIES], 763205b261ecSmrg[AC_REQUIRE([AM_SET_DEPDIR])dnl 763305b261ecSmrgAC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 763405b261ecSmrgAC_REQUIRE([AM_MAKE_INCLUDE])dnl 763505b261ecSmrgAC_REQUIRE([AM_DEP_TRACK])dnl 763605b261ecSmrg 763705b261ecSmrgifelse([$1], CC, [depcc="$CC" am_compiler_list=], 763805b261ecSmrg [$1], CXX, [depcc="$CXX" am_compiler_list=], 763905b261ecSmrg [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 764005b261ecSmrg [$1], UPC, [depcc="$UPC" am_compiler_list=], 764105b261ecSmrg [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 764205b261ecSmrg [depcc="$$1" am_compiler_list=]) 764305b261ecSmrg 764405b261ecSmrgAC_CACHE_CHECK([dependency style of $depcc], 764505b261ecSmrg [am_cv_$1_dependencies_compiler_type], 764605b261ecSmrg[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 764705b261ecSmrg # We make a subdir and do the tests there. Otherwise we can end up 764805b261ecSmrg # making bogus files that we don't know about and never remove. For 764905b261ecSmrg # instance it was reported that on HP-UX the gcc test will end up 765005b261ecSmrg # making a dummy file named `D' -- because `-MD' means `put the output 765105b261ecSmrg # in D'. 765205b261ecSmrg mkdir conftest.dir 765305b261ecSmrg # Copy depcomp to subdir because otherwise we won't find it if we're 765405b261ecSmrg # using a relative directory. 765505b261ecSmrg cp "$am_depcomp" conftest.dir 765605b261ecSmrg cd conftest.dir 765705b261ecSmrg # We will build objects and dependencies in a subdirectory because 765805b261ecSmrg # it helps to detect inapplicable dependency modes. For instance 765905b261ecSmrg # both Tru64's cc and ICC support -MD to output dependencies as a 766005b261ecSmrg # side effect of compilation, but ICC will put the dependencies in 766105b261ecSmrg # the current directory while Tru64 will put them in the object 766205b261ecSmrg # directory. 766305b261ecSmrg mkdir sub 766405b261ecSmrg 766505b261ecSmrg am_cv_$1_dependencies_compiler_type=none 766605b261ecSmrg if test "$am_compiler_list" = ""; then 766705b261ecSmrg am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 766805b261ecSmrg fi 766905b261ecSmrg for depmode in $am_compiler_list; do 767005b261ecSmrg # Setup a source with many dependencies, because some compilers 767105b261ecSmrg # like to wrap large dependency lists on column 80 (with \), and 767205b261ecSmrg # we should not choose a depcomp mode which is confused by this. 767305b261ecSmrg # 767405b261ecSmrg # We need to recreate these files for each test, as the compiler may 767505b261ecSmrg # overwrite some of them when testing with obscure command lines. 767605b261ecSmrg # This happens at least with the AIX C compiler. 767705b261ecSmrg : > sub/conftest.c 767805b261ecSmrg for i in 1 2 3 4 5 6; do 767905b261ecSmrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 768005b261ecSmrg # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 768105b261ecSmrg # Solaris 8's {/usr,}/bin/sh. 768205b261ecSmrg touch sub/conftst$i.h 768305b261ecSmrg done 768405b261ecSmrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 768505b261ecSmrg 768605b261ecSmrg case $depmode in 768705b261ecSmrg nosideeffect) 768805b261ecSmrg # after this tag, mechanisms are not by side-effect, so they'll 768905b261ecSmrg # only be used when explicitly requested 769005b261ecSmrg if test "x$enable_dependency_tracking" = xyes; then 769105b261ecSmrg continue 769205b261ecSmrg else 769305b261ecSmrg break 769405b261ecSmrg fi 769505b261ecSmrg ;; 769605b261ecSmrg none) break ;; 769705b261ecSmrg esac 769805b261ecSmrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 769905b261ecSmrg # mode. It turns out that the SunPro C++ compiler does not properly 770005b261ecSmrg # handle `-M -o', and we need to detect this. 770105b261ecSmrg if depmode=$depmode \ 770205b261ecSmrg source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 770305b261ecSmrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 770405b261ecSmrg $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 770505b261ecSmrg >/dev/null 2>conftest.err && 770605b261ecSmrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 770705b261ecSmrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 770805b261ecSmrg grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 770905b261ecSmrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 771005b261ecSmrg # icc doesn't choke on unknown options, it will just issue warnings 771105b261ecSmrg # or remarks (even with -Werror). So we grep stderr for any message 771205b261ecSmrg # that says an option was ignored or not supported. 771305b261ecSmrg # When given -MP, icc 7.0 and 7.1 complain thusly: 771405b261ecSmrg # icc: Command line warning: ignoring option '-M'; no argument required 771505b261ecSmrg # The diagnosis changed in icc 8.0: 771605b261ecSmrg # icc: Command line remark: option '-MP' not supported 771705b261ecSmrg if (grep 'ignoring option' conftest.err || 771805b261ecSmrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 771905b261ecSmrg am_cv_$1_dependencies_compiler_type=$depmode 772005b261ecSmrg break 772105b261ecSmrg fi 772205b261ecSmrg fi 772305b261ecSmrg done 772405b261ecSmrg 772505b261ecSmrg cd .. 772605b261ecSmrg rm -rf conftest.dir 772705b261ecSmrgelse 772805b261ecSmrg am_cv_$1_dependencies_compiler_type=none 772905b261ecSmrgfi 773005b261ecSmrg]) 773105b261ecSmrgAC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 773205b261ecSmrgAM_CONDITIONAL([am__fastdep$1], [ 773305b261ecSmrg test "x$enable_dependency_tracking" != xno \ 773405b261ecSmrg && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 773505b261ecSmrg]) 773605b261ecSmrg 773705b261ecSmrg 773805b261ecSmrg# AM_SET_DEPDIR 773905b261ecSmrg# ------------- 774005b261ecSmrg# Choose a directory name for dependency files. 774105b261ecSmrg# This macro is AC_REQUIREd in _AM_DEPENDENCIES 774205b261ecSmrgAC_DEFUN([AM_SET_DEPDIR], 774305b261ecSmrg[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 774405b261ecSmrgAC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 774505b261ecSmrg]) 774605b261ecSmrg 774705b261ecSmrg 774805b261ecSmrg# AM_DEP_TRACK 774905b261ecSmrg# ------------ 775005b261ecSmrgAC_DEFUN([AM_DEP_TRACK], 775105b261ecSmrg[AC_ARG_ENABLE(dependency-tracking, 775205b261ecSmrg[ --disable-dependency-tracking speeds up one-time build 775305b261ecSmrg --enable-dependency-tracking do not reject slow dependency extractors]) 775405b261ecSmrgif test "x$enable_dependency_tracking" != xno; then 775505b261ecSmrg am_depcomp="$ac_aux_dir/depcomp" 775605b261ecSmrg AMDEPBACKSLASH='\' 775705b261ecSmrgfi 775805b261ecSmrgAM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 775905b261ecSmrgAC_SUBST([AMDEPBACKSLASH])dnl 776005b261ecSmrg_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 776105b261ecSmrg]) 776205b261ecSmrg 776305b261ecSmrg# Generate code to set up dependency tracking. -*- Autoconf -*- 776405b261ecSmrg 776505b261ecSmrg# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 776605b261ecSmrg# Free Software Foundation, Inc. 776705b261ecSmrg# 776805b261ecSmrg# This file is free software; the Free Software Foundation 776905b261ecSmrg# gives unlimited permission to copy and/or distribute it, 777005b261ecSmrg# with or without modifications, as long as this notice is preserved. 777105b261ecSmrg 777205b261ecSmrg#serial 3 777305b261ecSmrg 777405b261ecSmrg# _AM_OUTPUT_DEPENDENCY_COMMANDS 777505b261ecSmrg# ------------------------------ 777605b261ecSmrgAC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 777705b261ecSmrg[for mf in $CONFIG_FILES; do 777805b261ecSmrg # Strip MF so we end up with the name of the file. 777905b261ecSmrg mf=`echo "$mf" | sed -e 's/:.*$//'` 778005b261ecSmrg # Check whether this is an Automake generated Makefile or not. 778105b261ecSmrg # We used to match only the files named `Makefile.in', but 778205b261ecSmrg # some people rename them; so instead we look at the file content. 778305b261ecSmrg # Grep'ing the first line is not enough: some people post-process 778405b261ecSmrg # each Makefile.in and add a new line on top of each file to say so. 778505b261ecSmrg # Grep'ing the whole file is not good either: AIX grep has a line 778605b261ecSmrg # limit of 2048, but all sed's we know have understand at least 4000. 778705b261ecSmrg if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 778805b261ecSmrg dirpart=`AS_DIRNAME("$mf")` 778905b261ecSmrg else 779005b261ecSmrg continue 779105b261ecSmrg fi 779205b261ecSmrg # Extract the definition of DEPDIR, am__include, and am__quote 779305b261ecSmrg # from the Makefile without running `make'. 779405b261ecSmrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 779505b261ecSmrg test -z "$DEPDIR" && continue 779605b261ecSmrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 779705b261ecSmrg test -z "am__include" && continue 779805b261ecSmrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 779905b261ecSmrg # When using ansi2knr, U may be empty or an underscore; expand it 780005b261ecSmrg U=`sed -n 's/^U = //p' < "$mf"` 780105b261ecSmrg # Find all dependency output files, they are included files with 780205b261ecSmrg # $(DEPDIR) in their names. We invoke sed twice because it is the 780305b261ecSmrg # simplest approach to changing $(DEPDIR) to its actual value in the 780405b261ecSmrg # expansion. 780505b261ecSmrg for file in `sed -n " 780605b261ecSmrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 780705b261ecSmrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 780805b261ecSmrg # Make sure the directory exists. 780905b261ecSmrg test -f "$dirpart/$file" && continue 781005b261ecSmrg fdir=`AS_DIRNAME(["$file"])` 781105b261ecSmrg AS_MKDIR_P([$dirpart/$fdir]) 781205b261ecSmrg # echo "creating $dirpart/$file" 781305b261ecSmrg echo '# dummy' > "$dirpart/$file" 781405b261ecSmrg done 781505b261ecSmrgdone 781605b261ecSmrg])# _AM_OUTPUT_DEPENDENCY_COMMANDS 781705b261ecSmrg 781805b261ecSmrg 781905b261ecSmrg# AM_OUTPUT_DEPENDENCY_COMMANDS 782005b261ecSmrg# ----------------------------- 782105b261ecSmrg# This macro should only be invoked once -- use via AC_REQUIRE. 782205b261ecSmrg# 782305b261ecSmrg# This code is only required when automatic dependency tracking 782405b261ecSmrg# is enabled. FIXME. This creates each `.P' file that we will 782505b261ecSmrg# need in order to bootstrap the dependency handling code. 782605b261ecSmrgAC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 782705b261ecSmrg[AC_CONFIG_COMMANDS([depfiles], 782805b261ecSmrg [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 782905b261ecSmrg [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 783005b261ecSmrg]) 783105b261ecSmrg 783205b261ecSmrg# Do all the work for Automake. -*- Autoconf -*- 783305b261ecSmrg 783405b261ecSmrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 783505b261ecSmrg# 2005, 2006, 2008 Free Software Foundation, Inc. 783605b261ecSmrg# 783705b261ecSmrg# This file is free software; the Free Software Foundation 783805b261ecSmrg# gives unlimited permission to copy and/or distribute it, 783905b261ecSmrg# with or without modifications, as long as this notice is preserved. 784005b261ecSmrg 784105b261ecSmrg# serial 13 784205b261ecSmrg 784305b261ecSmrg# This macro actually does too much. Some checks are only needed if 784405b261ecSmrg# your package does certain things. But this isn't really a big deal. 784505b261ecSmrg 784605b261ecSmrg# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 784705b261ecSmrg# AM_INIT_AUTOMAKE([OPTIONS]) 784805b261ecSmrg# ----------------------------------------------- 784905b261ecSmrg# The call with PACKAGE and VERSION arguments is the old style 785005b261ecSmrg# call (pre autoconf-2.50), which is being phased out. PACKAGE 785105b261ecSmrg# and VERSION should now be passed to AC_INIT and removed from 785205b261ecSmrg# the call to AM_INIT_AUTOMAKE. 785305b261ecSmrg# We support both call styles for the transition. After 785405b261ecSmrg# the next Automake release, Autoconf can make the AC_INIT 785505b261ecSmrg# arguments mandatory, and then we can depend on a new Autoconf 785605b261ecSmrg# release and drop the old call support. 785705b261ecSmrgAC_DEFUN([AM_INIT_AUTOMAKE], 785805b261ecSmrg[AC_PREREQ([2.60])dnl 785905b261ecSmrgdnl Autoconf wants to disallow AM_ names. We explicitly allow 786005b261ecSmrgdnl the ones we care about. 786105b261ecSmrgm4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 786205b261ecSmrgAC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 786305b261ecSmrgAC_REQUIRE([AC_PROG_INSTALL])dnl 786405b261ecSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 786505b261ecSmrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 786605b261ecSmrg # is not polluted with repeated "-I." 786705b261ecSmrg AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 786805b261ecSmrg # test to see if srcdir already configured 786905b261ecSmrg if test -f $srcdir/config.status; then 787005b261ecSmrg AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 787105b261ecSmrg fi 787205b261ecSmrgfi 787305b261ecSmrg 787405b261ecSmrg# test whether we have cygpath 787505b261ecSmrgif test -z "$CYGPATH_W"; then 787605b261ecSmrg if (cygpath --version) >/dev/null 2>/dev/null; then 787705b261ecSmrg CYGPATH_W='cygpath -w' 787805b261ecSmrg else 787905b261ecSmrg CYGPATH_W=echo 788005b261ecSmrg fi 788105b261ecSmrgfi 788205b261ecSmrgAC_SUBST([CYGPATH_W]) 788305b261ecSmrg 788405b261ecSmrg# Define the identity of the package. 788505b261ecSmrgdnl Distinguish between old-style and new-style calls. 788605b261ecSmrgm4_ifval([$2], 788705b261ecSmrg[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 788805b261ecSmrg AC_SUBST([PACKAGE], [$1])dnl 788905b261ecSmrg AC_SUBST([VERSION], [$2])], 789005b261ecSmrg[_AM_SET_OPTIONS([$1])dnl 789105b261ecSmrgdnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 789205b261ecSmrgm4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, 789305b261ecSmrg [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 789405b261ecSmrg AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 789505b261ecSmrg AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 789605b261ecSmrg 789705b261ecSmrg_AM_IF_OPTION([no-define],, 789805b261ecSmrg[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 789905b261ecSmrg AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 790005b261ecSmrg 790105b261ecSmrg# Some tools Automake needs. 790205b261ecSmrgAC_REQUIRE([AM_SANITY_CHECK])dnl 790305b261ecSmrgAC_REQUIRE([AC_ARG_PROGRAM])dnl 790405b261ecSmrgAM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) 790505b261ecSmrgAM_MISSING_PROG(AUTOCONF, autoconf) 790605b261ecSmrgAM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) 790705b261ecSmrgAM_MISSING_PROG(AUTOHEADER, autoheader) 790805b261ecSmrgAM_MISSING_PROG(MAKEINFO, makeinfo) 790905b261ecSmrgAM_PROG_INSTALL_SH 791005b261ecSmrgAM_PROG_INSTALL_STRIP 791105b261ecSmrgAC_REQUIRE([AM_PROG_MKDIR_P])dnl 791205b261ecSmrg# We need awk for the "check" target. The system "awk" is bad on 791305b261ecSmrg# some platforms. 791405b261ecSmrgAC_REQUIRE([AC_PROG_AWK])dnl 791505b261ecSmrgAC_REQUIRE([AC_PROG_MAKE_SET])dnl 791605b261ecSmrgAC_REQUIRE([AM_SET_LEADING_DOT])dnl 791705b261ecSmrg_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 791805b261ecSmrg [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 791905b261ecSmrg [_AM_PROG_TAR([v7])])]) 792005b261ecSmrg_AM_IF_OPTION([no-dependencies],, 792105b261ecSmrg[AC_PROVIDE_IFELSE([AC_PROG_CC], 792205b261ecSmrg [_AM_DEPENDENCIES(CC)], 792305b261ecSmrg [define([AC_PROG_CC], 792405b261ecSmrg defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl 792505b261ecSmrgAC_PROVIDE_IFELSE([AC_PROG_CXX], 792605b261ecSmrg [_AM_DEPENDENCIES(CXX)], 792705b261ecSmrg [define([AC_PROG_CXX], 792805b261ecSmrg defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 792905b261ecSmrgAC_PROVIDE_IFELSE([AC_PROG_OBJC], 793005b261ecSmrg [_AM_DEPENDENCIES(OBJC)], 793105b261ecSmrg [define([AC_PROG_OBJC], 793205b261ecSmrg defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl 793305b261ecSmrg]) 793405b261ecSmrg]) 793505b261ecSmrg 793605b261ecSmrg 793705b261ecSmrg# When config.status generates a header, we must update the stamp-h file. 793805b261ecSmrg# This file resides in the same directory as the config header 793905b261ecSmrg# that is generated. The stamp files are numbered to have different names. 794005b261ecSmrg 794105b261ecSmrg# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 794205b261ecSmrg# loop where config.status creates the headers, so we can generate 794305b261ecSmrg# our stamp files there. 794405b261ecSmrgAC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 794505b261ecSmrg[# Compute $1's index in $config_headers. 794605b261ecSmrg_am_arg=$1 794705b261ecSmrg_am_stamp_count=1 794805b261ecSmrgfor _am_header in $config_headers :; do 794905b261ecSmrg case $_am_header in 795005b261ecSmrg $_am_arg | $_am_arg:* ) 795105b261ecSmrg break ;; 795205b261ecSmrg * ) 795305b261ecSmrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 795405b261ecSmrg esac 795505b261ecSmrgdone 795605b261ecSmrgecho "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 795705b261ecSmrg 795805b261ecSmrg# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 795905b261ecSmrg# 796005b261ecSmrg# This file is free software; the Free Software Foundation 796105b261ecSmrg# gives unlimited permission to copy and/or distribute it, 796205b261ecSmrg# with or without modifications, as long as this notice is preserved. 796305b261ecSmrg 796405b261ecSmrg# AM_PROG_INSTALL_SH 796505b261ecSmrg# ------------------ 796605b261ecSmrg# Define $install_sh. 796705b261ecSmrgAC_DEFUN([AM_PROG_INSTALL_SH], 796805b261ecSmrg[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 796905b261ecSmrginstall_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 797005b261ecSmrgAC_SUBST(install_sh)]) 797105b261ecSmrg 797205b261ecSmrg# Copyright (C) 2003, 2005 Free Software Foundation, Inc. 797305b261ecSmrg# 797405b261ecSmrg# This file is free software; the Free Software Foundation 797505b261ecSmrg# gives unlimited permission to copy and/or distribute it, 797605b261ecSmrg# with or without modifications, as long as this notice is preserved. 797705b261ecSmrg 797805b261ecSmrg# serial 2 797905b261ecSmrg 798005b261ecSmrg# Check whether the underlying file-system supports filenames 798105b261ecSmrg# with a leading dot. For instance MS-DOS doesn't. 798205b261ecSmrgAC_DEFUN([AM_SET_LEADING_DOT], 798305b261ecSmrg[rm -rf .tst 2>/dev/null 798405b261ecSmrgmkdir .tst 2>/dev/null 798505b261ecSmrgif test -d .tst; then 798605b261ecSmrg am__leading_dot=. 798705b261ecSmrgelse 798805b261ecSmrg am__leading_dot=_ 798905b261ecSmrgfi 799005b261ecSmrgrmdir .tst 2>/dev/null 799105b261ecSmrgAC_SUBST([am__leading_dot])]) 799205b261ecSmrg 799305b261ecSmrg# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- 799405b261ecSmrg# From Jim Meyering 799505b261ecSmrg 799605b261ecSmrg# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005 799705b261ecSmrg# Free Software Foundation, Inc. 799805b261ecSmrg# 799905b261ecSmrg# This file is free software; the Free Software Foundation 800005b261ecSmrg# gives unlimited permission to copy and/or distribute it, 800105b261ecSmrg# with or without modifications, as long as this notice is preserved. 800205b261ecSmrg 800305b261ecSmrg# serial 4 800405b261ecSmrg 800505b261ecSmrgAC_DEFUN([AM_MAINTAINER_MODE], 800605b261ecSmrg[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) 800705b261ecSmrg dnl maintainer-mode is disabled by default 800805b261ecSmrg AC_ARG_ENABLE(maintainer-mode, 800905b261ecSmrg[ --enable-maintainer-mode enable make rules and dependencies not useful 801005b261ecSmrg (and sometimes confusing) to the casual installer], 801105b261ecSmrg USE_MAINTAINER_MODE=$enableval, 801205b261ecSmrg USE_MAINTAINER_MODE=no) 801305b261ecSmrg AC_MSG_RESULT([$USE_MAINTAINER_MODE]) 801405b261ecSmrg AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) 801505b261ecSmrg MAINT=$MAINTAINER_MODE_TRUE 801605b261ecSmrg AC_SUBST(MAINT)dnl 801705b261ecSmrg] 801805b261ecSmrg) 801905b261ecSmrg 802005b261ecSmrgAU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) 802105b261ecSmrg 802205b261ecSmrg# Check to see how 'make' treats includes. -*- Autoconf -*- 802305b261ecSmrg 802405b261ecSmrg# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. 802505b261ecSmrg# 802605b261ecSmrg# This file is free software; the Free Software Foundation 802705b261ecSmrg# gives unlimited permission to copy and/or distribute it, 802805b261ecSmrg# with or without modifications, as long as this notice is preserved. 802905b261ecSmrg 803005b261ecSmrg# serial 3 803105b261ecSmrg 803205b261ecSmrg# AM_MAKE_INCLUDE() 803305b261ecSmrg# ----------------- 803405b261ecSmrg# Check to see how make treats includes. 803505b261ecSmrgAC_DEFUN([AM_MAKE_INCLUDE], 803605b261ecSmrg[am_make=${MAKE-make} 803705b261ecSmrgcat > confinc << 'END' 803805b261ecSmrgam__doit: 803905b261ecSmrg @echo done 804005b261ecSmrg.PHONY: am__doit 804105b261ecSmrgEND 804205b261ecSmrg# If we don't find an include directive, just comment out the code. 804305b261ecSmrgAC_MSG_CHECKING([for style of include used by $am_make]) 804405b261ecSmrgam__include="#" 804505b261ecSmrgam__quote= 804605b261ecSmrg_am_result=none 804705b261ecSmrg# First try GNU make style include. 804805b261ecSmrgecho "include confinc" > confmf 804905b261ecSmrg# We grep out `Entering directory' and `Leaving directory' 805005b261ecSmrg# messages which can occur if `w' ends up in MAKEFLAGS. 805105b261ecSmrg# In particular we don't look at `^make:' because GNU make might 805205b261ecSmrg# be invoked under some other name (usually "gmake"), in which 805305b261ecSmrg# case it prints its new name instead of `make'. 805405b261ecSmrgif test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 805505b261ecSmrg am__include=include 805605b261ecSmrg am__quote= 805705b261ecSmrg _am_result=GNU 805805b261ecSmrgfi 805905b261ecSmrg# Now try BSD make style include. 806005b261ecSmrgif test "$am__include" = "#"; then 806105b261ecSmrg echo '.include "confinc"' > confmf 806205b261ecSmrg if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 806305b261ecSmrg am__include=.include 806405b261ecSmrg am__quote="\"" 806505b261ecSmrg _am_result=BSD 806605b261ecSmrg fi 806705b261ecSmrgfi 806805b261ecSmrgAC_SUBST([am__include]) 806905b261ecSmrgAC_SUBST([am__quote]) 807005b261ecSmrgAC_MSG_RESULT([$_am_result]) 807105b261ecSmrgrm -f confinc confmf 807205b261ecSmrg]) 807305b261ecSmrg 807405b261ecSmrg# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 807505b261ecSmrg 807605b261ecSmrg# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 807705b261ecSmrg# Free Software Foundation, Inc. 807805b261ecSmrg# 807905b261ecSmrg# This file is free software; the Free Software Foundation 808005b261ecSmrg# gives unlimited permission to copy and/or distribute it, 808105b261ecSmrg# with or without modifications, as long as this notice is preserved. 808205b261ecSmrg 808305b261ecSmrg# serial 5 808405b261ecSmrg 808505b261ecSmrg# AM_MISSING_PROG(NAME, PROGRAM) 808605b261ecSmrg# ------------------------------ 808705b261ecSmrgAC_DEFUN([AM_MISSING_PROG], 808805b261ecSmrg[AC_REQUIRE([AM_MISSING_HAS_RUN]) 808905b261ecSmrg$1=${$1-"${am_missing_run}$2"} 809005b261ecSmrgAC_SUBST($1)]) 809105b261ecSmrg 809205b261ecSmrg 809305b261ecSmrg# AM_MISSING_HAS_RUN 809405b261ecSmrg# ------------------ 809505b261ecSmrg# Define MISSING if not defined so far and test if it supports --run. 809605b261ecSmrg# If it does, set am_missing_run to use it, otherwise, to nothing. 809705b261ecSmrgAC_DEFUN([AM_MISSING_HAS_RUN], 809805b261ecSmrg[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 809905b261ecSmrgAC_REQUIRE_AUX_FILE([missing])dnl 810005b261ecSmrgtest x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 810105b261ecSmrg# Use eval to expand $SHELL 810205b261ecSmrgif eval "$MISSING --run true"; then 810305b261ecSmrg am_missing_run="$MISSING --run " 810405b261ecSmrgelse 810505b261ecSmrg am_missing_run= 810605b261ecSmrg AC_MSG_WARN([`missing' script is too old or missing]) 810705b261ecSmrgfi 810805b261ecSmrg]) 810905b261ecSmrg 811005b261ecSmrg# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 811105b261ecSmrg# 811205b261ecSmrg# This file is free software; the Free Software Foundation 811305b261ecSmrg# gives unlimited permission to copy and/or distribute it, 811405b261ecSmrg# with or without modifications, as long as this notice is preserved. 811505b261ecSmrg 811605b261ecSmrg# AM_PROG_MKDIR_P 811705b261ecSmrg# --------------- 811805b261ecSmrg# Check for `mkdir -p'. 811905b261ecSmrgAC_DEFUN([AM_PROG_MKDIR_P], 812005b261ecSmrg[AC_PREREQ([2.60])dnl 812105b261ecSmrgAC_REQUIRE([AC_PROG_MKDIR_P])dnl 812205b261ecSmrgdnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, 812305b261ecSmrgdnl while keeping a definition of mkdir_p for backward compatibility. 812405b261ecSmrgdnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. 812505b261ecSmrgdnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of 812605b261ecSmrgdnl Makefile.ins that do not define MKDIR_P, so we do our own 812705b261ecSmrgdnl adjustment using top_builddir (which is defined more often than 812805b261ecSmrgdnl MKDIR_P). 812905b261ecSmrgAC_SUBST([mkdir_p], ["$MKDIR_P"])dnl 813005b261ecSmrgcase $mkdir_p in 813105b261ecSmrg [[\\/$]]* | ?:[[\\/]]*) ;; 813205b261ecSmrg */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 813305b261ecSmrgesac 813405b261ecSmrg]) 813505b261ecSmrg 813605b261ecSmrg# Helper functions for option handling. -*- Autoconf -*- 813705b261ecSmrg 813805b261ecSmrg# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. 813905b261ecSmrg# 814005b261ecSmrg# This file is free software; the Free Software Foundation 814105b261ecSmrg# gives unlimited permission to copy and/or distribute it, 814205b261ecSmrg# with or without modifications, as long as this notice is preserved. 814305b261ecSmrg 814405b261ecSmrg# serial 3 814505b261ecSmrg 814605b261ecSmrg# _AM_MANGLE_OPTION(NAME) 814705b261ecSmrg# ----------------------- 814805b261ecSmrgAC_DEFUN([_AM_MANGLE_OPTION], 814905b261ecSmrg[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 815005b261ecSmrg 815105b261ecSmrg# _AM_SET_OPTION(NAME) 815205b261ecSmrg# ------------------------------ 815305b261ecSmrg# Set option NAME. Presently that only means defining a flag for this option. 815405b261ecSmrgAC_DEFUN([_AM_SET_OPTION], 815505b261ecSmrg[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 815605b261ecSmrg 815705b261ecSmrg# _AM_SET_OPTIONS(OPTIONS) 815805b261ecSmrg# ---------------------------------- 815905b261ecSmrg# OPTIONS is a space-separated list of Automake options. 816005b261ecSmrgAC_DEFUN([_AM_SET_OPTIONS], 816105b261ecSmrg[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 816205b261ecSmrg 816305b261ecSmrg# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 816405b261ecSmrg# ------------------------------------------- 816505b261ecSmrg# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 816605b261ecSmrgAC_DEFUN([_AM_IF_OPTION], 816705b261ecSmrg[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 816805b261ecSmrg 816905b261ecSmrg# Check to make sure that the build environment is sane. -*- Autoconf -*- 817005b261ecSmrg 817105b261ecSmrg# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 817205b261ecSmrg# Free Software Foundation, Inc. 817305b261ecSmrg# 817405b261ecSmrg# This file is free software; the Free Software Foundation 817505b261ecSmrg# gives unlimited permission to copy and/or distribute it, 817605b261ecSmrg# with or without modifications, as long as this notice is preserved. 817705b261ecSmrg 817805b261ecSmrg# serial 4 817905b261ecSmrg 818005b261ecSmrg# AM_SANITY_CHECK 818105b261ecSmrg# --------------- 818205b261ecSmrgAC_DEFUN([AM_SANITY_CHECK], 818305b261ecSmrg[AC_MSG_CHECKING([whether build environment is sane]) 818405b261ecSmrg# Just in case 818505b261ecSmrgsleep 1 818605b261ecSmrgecho timestamp > conftest.file 818705b261ecSmrg# Do `set' in a subshell so we don't clobber the current shell's 818805b261ecSmrg# arguments. Must try -L first in case configure is actually a 818905b261ecSmrg# symlink; some systems play weird games with the mod time of symlinks 819005b261ecSmrg# (eg FreeBSD returns the mod time of the symlink's containing 819105b261ecSmrg# directory). 819205b261ecSmrgif ( 819305b261ecSmrg set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 819405b261ecSmrg if test "$[*]" = "X"; then 819505b261ecSmrg # -L didn't work. 819605b261ecSmrg set X `ls -t $srcdir/configure conftest.file` 819705b261ecSmrg fi 819805b261ecSmrg rm -f conftest.file 819905b261ecSmrg if test "$[*]" != "X $srcdir/configure conftest.file" \ 820005b261ecSmrg && test "$[*]" != "X conftest.file $srcdir/configure"; then 820105b261ecSmrg 820205b261ecSmrg # If neither matched, then we have a broken ls. This can happen 820305b261ecSmrg # if, for instance, CONFIG_SHELL is bash and it inherits a 820405b261ecSmrg # broken ls alias from the environment. This has actually 820505b261ecSmrg # happened. Such a system could not be considered "sane". 820605b261ecSmrg AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 820705b261ecSmrgalias in your environment]) 820805b261ecSmrg fi 820905b261ecSmrg 821005b261ecSmrg test "$[2]" = conftest.file 821105b261ecSmrg ) 821205b261ecSmrgthen 821305b261ecSmrg # Ok. 821405b261ecSmrg : 821505b261ecSmrgelse 821605b261ecSmrg AC_MSG_ERROR([newly created file is older than distributed files! 821705b261ecSmrgCheck your system clock]) 821805b261ecSmrgfi 821905b261ecSmrgAC_MSG_RESULT(yes)]) 822005b261ecSmrg 822105b261ecSmrg# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 822205b261ecSmrg# 822305b261ecSmrg# This file is free software; the Free Software Foundation 822405b261ecSmrg# gives unlimited permission to copy and/or distribute it, 822505b261ecSmrg# with or without modifications, as long as this notice is preserved. 822605b261ecSmrg 822705b261ecSmrg# AM_PROG_INSTALL_STRIP 822805b261ecSmrg# --------------------- 822905b261ecSmrg# One issue with vendor `install' (even GNU) is that you can't 823005b261ecSmrg# specify the program used to strip binaries. This is especially 823105b261ecSmrg# annoying in cross-compiling environments, where the build's strip 823205b261ecSmrg# is unlikely to handle the host's binaries. 823305b261ecSmrg# Fortunately install-sh will honor a STRIPPROG variable, so we 823405b261ecSmrg# always use install-sh in `make install-strip', and initialize 823505b261ecSmrg# STRIPPROG with the value of the STRIP variable (set by the user). 823605b261ecSmrgAC_DEFUN([AM_PROG_INSTALL_STRIP], 823705b261ecSmrg[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 823805b261ecSmrg# Installed binaries are usually stripped using `strip' when the user 823905b261ecSmrg# run `make install-strip'. However `strip' might not be the right 824005b261ecSmrg# tool to use in cross-compilation environments, therefore Automake 824105b261ecSmrg# will honor the `STRIP' environment variable to overrule this program. 824205b261ecSmrgdnl Don't test for $cross_compiling = yes, because it might be `maybe'. 824305b261ecSmrgif test "$cross_compiling" != no; then 824405b261ecSmrg AC_CHECK_TOOL([STRIP], [strip], :) 824505b261ecSmrgfi 824605b261ecSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 824705b261ecSmrgAC_SUBST([INSTALL_STRIP_PROGRAM])]) 824805b261ecSmrg 824905b261ecSmrg# Copyright (C) 2006 Free Software Foundation, Inc. 825005b261ecSmrg# 825105b261ecSmrg# This file is free software; the Free Software Foundation 825205b261ecSmrg# gives unlimited permission to copy and/or distribute it, 825305b261ecSmrg# with or without modifications, as long as this notice is preserved. 825405b261ecSmrg 825505b261ecSmrg# _AM_SUBST_NOTMAKE(VARIABLE) 825605b261ecSmrg# --------------------------- 825705b261ecSmrg# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 825805b261ecSmrg# This macro is traced by Automake. 825905b261ecSmrgAC_DEFUN([_AM_SUBST_NOTMAKE]) 826005b261ecSmrg 826105b261ecSmrg# Check how to create a tarball. -*- Autoconf -*- 826205b261ecSmrg 826305b261ecSmrg# Copyright (C) 2004, 2005 Free Software Foundation, Inc. 826405b261ecSmrg# 826505b261ecSmrg# This file is free software; the Free Software Foundation 826605b261ecSmrg# gives unlimited permission to copy and/or distribute it, 826705b261ecSmrg# with or without modifications, as long as this notice is preserved. 826805b261ecSmrg 826905b261ecSmrg# serial 2 827005b261ecSmrg 827105b261ecSmrg# _AM_PROG_TAR(FORMAT) 827205b261ecSmrg# -------------------- 827305b261ecSmrg# Check how to create a tarball in format FORMAT. 827405b261ecSmrg# FORMAT should be one of `v7', `ustar', or `pax'. 827505b261ecSmrg# 827605b261ecSmrg# Substitute a variable $(am__tar) that is a command 827705b261ecSmrg# writing to stdout a FORMAT-tarball containing the directory 827805b261ecSmrg# $tardir. 827905b261ecSmrg# tardir=directory && $(am__tar) > result.tar 828005b261ecSmrg# 828105b261ecSmrg# Substitute a variable $(am__untar) that extract such 828205b261ecSmrg# a tarball read from stdin. 828305b261ecSmrg# $(am__untar) < result.tar 828405b261ecSmrgAC_DEFUN([_AM_PROG_TAR], 828505b261ecSmrg[# Always define AMTAR for backward compatibility. 828605b261ecSmrgAM_MISSING_PROG([AMTAR], [tar]) 828705b261ecSmrgm4_if([$1], [v7], 828805b261ecSmrg [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], 828905b261ecSmrg [m4_case([$1], [ustar],, [pax],, 829005b261ecSmrg [m4_fatal([Unknown tar format])]) 829105b261ecSmrgAC_MSG_CHECKING([how to create a $1 tar archive]) 829205b261ecSmrg# Loop over all known methods to create a tar archive until one works. 829305b261ecSmrg_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 829405b261ecSmrg_am_tools=${am_cv_prog_tar_$1-$_am_tools} 829505b261ecSmrg# Do not fold the above two line into one, because Tru64 sh and 829605b261ecSmrg# Solaris sh will not grok spaces in the rhs of `-'. 829705b261ecSmrgfor _am_tool in $_am_tools 829805b261ecSmrgdo 829905b261ecSmrg case $_am_tool in 830005b261ecSmrg gnutar) 830105b261ecSmrg for _am_tar in tar gnutar gtar; 830205b261ecSmrg do 830305b261ecSmrg AM_RUN_LOG([$_am_tar --version]) && break 830405b261ecSmrg done 830505b261ecSmrg am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 830605b261ecSmrg am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 830705b261ecSmrg am__untar="$_am_tar -xf -" 830805b261ecSmrg ;; 830905b261ecSmrg plaintar) 831005b261ecSmrg # Must skip GNU tar: if it does not support --format= it doesn't create 831105b261ecSmrg # ustar tarball either. 831205b261ecSmrg (tar --version) >/dev/null 2>&1 && continue 831305b261ecSmrg am__tar='tar chf - "$$tardir"' 831405b261ecSmrg am__tar_='tar chf - "$tardir"' 831505b261ecSmrg am__untar='tar xf -' 831605b261ecSmrg ;; 831705b261ecSmrg pax) 831805b261ecSmrg am__tar='pax -L -x $1 -w "$$tardir"' 831905b261ecSmrg am__tar_='pax -L -x $1 -w "$tardir"' 832005b261ecSmrg am__untar='pax -r' 832105b261ecSmrg ;; 832205b261ecSmrg cpio) 832305b261ecSmrg am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 832405b261ecSmrg am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 832505b261ecSmrg am__untar='cpio -i -H $1 -d' 832605b261ecSmrg ;; 832705b261ecSmrg none) 832805b261ecSmrg am__tar=false 832905b261ecSmrg am__tar_=false 833005b261ecSmrg am__untar=false 833105b261ecSmrg ;; 833205b261ecSmrg esac 833305b261ecSmrg 833405b261ecSmrg # If the value was cached, stop now. We just wanted to have am__tar 833505b261ecSmrg # and am__untar set. 833605b261ecSmrg test -n "${am_cv_prog_tar_$1}" && break 833705b261ecSmrg 833805b261ecSmrg # tar/untar a dummy directory, and stop if the command works 833905b261ecSmrg rm -rf conftest.dir 834005b261ecSmrg mkdir conftest.dir 834105b261ecSmrg echo GrepMe > conftest.dir/file 834205b261ecSmrg AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 834305b261ecSmrg rm -rf conftest.dir 834405b261ecSmrg if test -s conftest.tar; then 834505b261ecSmrg AM_RUN_LOG([$am__untar <conftest.tar]) 834605b261ecSmrg grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 834705b261ecSmrg fi 834805b261ecSmrgdone 834905b261ecSmrgrm -rf conftest.dir 835005b261ecSmrg 835105b261ecSmrgAC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 835205b261ecSmrgAC_MSG_RESULT([$am_cv_prog_tar_$1])]) 835305b261ecSmrgAC_SUBST([am__tar]) 835405b261ecSmrgAC_SUBST([am__untar]) 835505b261ecSmrg]) # _AM_PROG_TAR 835605b261ecSmrg 835705b261ecSmrgm4_include([acinclude.m4]) 8358