📄 aclocal.m4
字号:
# generated automatically by aclocal 1.10 -*- Autoconf -*-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,# 2005, 2006 Free Software Foundation, Inc.# This file is free software; the Free Software Foundation# gives unlimited permission to copy and/or distribute it,# with or without modifications, as long as this notice is preserved.# This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY, to the extent permitted by law; without# even the implied warranty of MERCHANTABILITY or FITNESS FOR A# PARTICULAR PURPOSE.# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-# serial 48 AC_PROG_LIBTOOL# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)# -----------------------------------------------------------# If this macro is not defined by Autoconf, define it here.m4_ifdef([AC_PROVIDE_IFELSE], [], [m4_define([AC_PROVIDE_IFELSE], [m4_ifdef([AC_PROVIDE_$1], [$2], [$3])])])# AC_PROG_LIBTOOL# ---------------AC_DEFUN([AC_PROG_LIBTOOL],[AC_REQUIRE([_AC_PROG_LIBTOOL])dnldnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXXdnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. AC_PROVIDE_IFELSE([AC_PROG_CXX], [AC_LIBTOOL_CXX], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX ])])dnl And a similar setup for Fortran 77 support AC_PROVIDE_IFELSE([AC_PROG_F77], [AC_LIBTOOL_F77], [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77])])dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, rundnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. AC_PROVIDE_IFELSE([AC_PROG_GCJ], [AC_LIBTOOL_GCJ], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], [AC_LIBTOOL_GCJ], [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], [AC_LIBTOOL_GCJ], [ifdef([AC_PROG_GCJ], [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) ifdef([A][M_PROG_GCJ], [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) ifdef([LT_AC_PROG_GCJ], [define([LT_AC_PROG_GCJ], defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])])])# AC_PROG_LIBTOOL# _AC_PROG_LIBTOOL# ----------------AC_DEFUN([_AC_PROG_LIBTOOL],[AC_REQUIRE([AC_LIBTOOL_SETUP])dnlAC_BEFORE([$0],[AC_LIBTOOL_CXX])dnlAC_BEFORE([$0],[AC_LIBTOOL_F77])dnlAC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl# This can be used to rebuild libtool when neededLIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"# Always use our own libtool.LIBTOOL='$(SHELL) $(top_builddir)/libtool'AC_SUBST(LIBTOOL)dnl# Prevent multiple expansiondefine([AC_PROG_LIBTOOL], [])])# _AC_PROG_LIBTOOL# AC_LIBTOOL_SETUP# ----------------AC_DEFUN([AC_LIBTOOL_SETUP],[AC_PREREQ(2.50)dnlAC_REQUIRE([AC_ENABLE_SHARED])dnlAC_REQUIRE([AC_ENABLE_STATIC])dnlAC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnlAC_REQUIRE([AC_CANONICAL_HOST])dnlAC_REQUIRE([AC_CANONICAL_BUILD])dnlAC_REQUIRE([AC_PROG_CC])dnlAC_REQUIRE([AC_PROG_LD])dnlAC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnlAC_REQUIRE([AC_PROG_NM])dnlAC_REQUIRE([AC_PROG_LN_S])dnlAC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!AC_REQUIRE([AC_OBJEXT])dnlAC_REQUIRE([AC_EXEEXT])dnldnlAC_LIBTOOL_SYS_MAX_CMD_LENAC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPEAC_LIBTOOL_OBJDIRAC_REQUIRE([_LT_AC_SYS_COMPILER])dnl_LT_AC_PROG_ECHO_BACKSLASHcase $host_os inaix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;;esac# Sed substitution that helps us do robust quoting. It backslashifies# metacharacters that are still active within double-quoted strings.Xsed='sed -e 1s/^X//'[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']# Same as above, but do not quote variable references.[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']# Sed substitution to delay expansion of an escaped shell variable in a# double_quote_subst'ed string.delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'# Sed substitution to avoid accidental globbing in evaled expressionsno_glob_subst='s/\*/\\\*/g'# Constants:rm="rm -f"# Global variables:default_ofile=libtoolcan_build_shared=yes# All known linkers require a `.a' archive for static linking (except MSVC,# which needs '.lib').libext=altmain="$ac_aux_dir/ltmain.sh"ofile="$default_ofile"with_gnu_ld="$lt_cv_prog_gnu_ld"AC_CHECK_TOOL(AR, ar, false)AC_CHECK_TOOL(RANLIB, ranlib, :)AC_CHECK_TOOL(STRIP, strip, :)old_CC="$CC"old_CFLAGS="$CFLAGS"# Set sane defaults for various variablestest -z "$AR" && AR=artest -z "$AR_FLAGS" && AR_FLAGS=crutest -z "$AS" && AS=astest -z "$CC" && CC=cctest -z "$LTCC" && LTCC=$CCtest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGStest -z "$DLLTOOL" && DLLTOOL=dlltooltest -z "$LD" && LD=ldtest -z "$LN_S" && LN_S="ln -s"test -z "$MAGIC_CMD" && MAGIC_CMD=filetest -z "$NM" && NM=nmtest -z "$SED" && SED=sedtest -z "$OBJDUMP" && OBJDUMP=objdumptest -z "$RANLIB" && RANLIB=:test -z "$STRIP" && STRIP=:test -z "$ac_objext" && ac_objext=o# Determine commands to create old-style static archives.old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'old_postinstall_cmds='chmod 644 $oldlib'old_postuninstall_cmds=if test -n "$RANLIB"; then case $host_os in openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"fi_LT_CC_BASENAME([$compiler])# Only perform the check for file, if the check method requires itcase $deplibs_check_method infile_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then AC_PATH_MAGIC fi ;;esacAC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],enable_win32_dll=yes, enable_win32_dll=no)AC_ARG_ENABLE([libtool-lock], [AC_HELP_STRING([--disable-libtool-lock], [avoid locking (might break parallel builds)])])test "x$enable_libtool_lock" != xno && enable_libtool_lock=yesAC_ARG_WITH([pic], [AC_HELP_STRING([--with-pic], [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], [pic_mode="$withval"], [pic_mode=default])test -z "$pic_mode" && pic_mode=default# Check if we have a version mismatch between libtool.m4 and ltmain.sh.## Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.# We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually# calls AC_LIBTOOL_CONFIG and creates libtool.#_LT_VERSION_CHECK# Use C for the default configuration in the libtool scripttagname=AC_LIBTOOL_LANG_C_CONFIG_LT_AC_TAGCONFIG])# AC_LIBTOOL_SETUP# _LT_VERSION_CHECK# -----------------AC_DEFUN([_LT_VERSION_CHECK],[AC_MSG_CHECKING([for correct ltmain.sh version])if test "x$ltmain" = "x" ; then AC_MSG_RESULT(no) AC_MSG_ERROR([*** @<:@Gentoo@:>@ sanity check failed! ****** \$ltmain is not defined, please check the patch for consistency! ***])figentoo_lt_version="1.5.22"gentoo_ltmain_version=`sed -n '/^[[ ]]*VERSION=/{s/^[[ ]]*VERSION=//;p;q;}' "$ltmain"`if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then AC_MSG_RESULT(no) AC_MSG_ERROR([*** @<:@Gentoo@:>@ sanity check failed! ****** libtool.m4 and ltmain.sh have a version mismatch! ****** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***Please run: libtoolize --copy --forceif appropriate, please contact the maintainer of thispackage (or your distribution) for help.])else AC_MSG_RESULT(yes)fi])# _LT_VERSION_CHECK# _LT_AC_SYS_COMPILER# -------------------AC_DEFUN([_LT_AC_SYS_COMPILER],[AC_REQUIRE([AC_PROG_CC])dnl# If no C compiler was specified, use CC.LTCC=${LTCC-"$CC"}# If no C compiler flags were specified, use CFLAGS.LTCFLAGS=${LTCFLAGS-"$CFLAGS"}# Allow CC to be a program name with arguments.compiler=$CC])# _LT_AC_SYS_COMPILER# _LT_CC_BASENAME(CC)# -------------------# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.AC_DEFUN([_LT_CC_BASENAME],[for cc_temp in $1""; do case $cc_temp in compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; \-*) ;; *) break;; esacdonecc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`])# _LT_COMPILER_BOILERPLATE# ------------------------# Check for compiler boilerplate output or warnings with# the simple compiler test code.AC_DEFUN([_LT_COMPILER_BOILERPLATE],[ac_outfile=conftest.$ac_objextprintf "$lt_simple_compile_test_code" >conftest.$ac_exteval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err_lt_compiler_boilerplate=`cat conftest.err`$rm conftest*])# _LT_COMPILER_BOILERPLATE# _LT_LINKER_BOILERPLATE# ----------------------# Check for linker boilerplate output or warnings with# the simple link test code.AC_DEFUN([_LT_LINKER_BOILERPLATE],[ac_outfile=conftest.$ac_objextprintf "$lt_simple_link_test_code" >conftest.$ac_exteval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err_lt_linker_boilerplate=`cat conftest.err`$rm conftest*])# _LT_LINKER_BOILERPLATE# _LT_AC_SYS_LIBPATH_AIX# ----------------------# Links a minimal program and checks the executable# for the system default hardcoded library path. In most cases,# this is /usr/lib:/lib, but when the MPI compilers are used# the location of the communication and MPI libs are included too.# If we don't find anything, use the default library path according# to the aix ld manual.AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],[AC_LINK_IFELSE(AC_LANG_PROGRAM,[aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }}'`# Check for a 64-bit object if we didn't find anything.if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }}'`; fi],[])if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi])# _LT_AC_SYS_LIBPATH_AIX# _LT_AC_SHELL_INIT(ARG)# ----------------------AC_DEFUN([_LT_AC_SHELL_INIT],[ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], [AC_DIVERT_PUSH(NOTICE)])$1AC_DIVERT_POP])# _LT_AC_SHELL_INIT# _LT_AC_PROG_ECHO_BACKSLASH# --------------------------# Add some code to the start of the generated configure script which# will find an echo command which doesn't interpret backslashes.AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],[_LT_AC_SHELL_INIT([# Check that we are running under the correct shell.SHELL=${CONFIG_SHELL-/bin/sh}case X$ECHO inX*--fallback-echo) # Remove one level of quotation (which was required for Make). ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` ;;esacecho=${ECHO-echo}if test "X[$]1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shiftelif test "X[$]1" = X--fallback-echo; then # Avoid inline document here, it may be left over :elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then # Yippee, $echo works! :else # Restart under the correct shell. exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}fiif test "X[$]1" = X--fallback-echo; then # used as fallback echo shift cat <<EOF[$]*EOF exit 0fi# The HP-UX ksh and POSIX shell print the target directory to stdout# if CDPATH is set.(unset CDPATH) >/dev/null 2>&1 && unset CDPATHif test -z "$ECHO"; thenif test "X${echo_test_string+set}" != Xset; then# find a string as large as possible, as long as the shell can cope with it for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... if (echo_test_string=`eval $cmd`) 2>/dev/null && echo_test_string=`eval $cmd` && (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null then break fi
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -