📄 aclocal.m4
字号:
# generated automatically by aclocal 1.10.1 -*- Autoconf -*-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,# 2005, 2006, 2007, 2008 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.m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnlm4_if(AC_AUTOCONF_VERSION, [2.63],,[m4_warning([this file was generated for autoconf 2.63.You have another version of autoconf. It may work, but is not guaranteed to.If you have problems, you may need to regenerate the build system entirely.To do so, use the procedure documented by the package, typically `autoreconf'.])])# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-# # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.## This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation; either version 2 of the License, or# (at your option) any later version.## This program is distributed in the hope that it will be useful, but# WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU# General Public License for more details.## You should have received a copy of the GNU General Public License# along with this program; if not, write to the Free Software# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.## As a special exception to the GNU General Public License, if you# distribute this file as part of a program that contains a# configuration script generated by Autoconf, you may include it under# the same distribution terms that you use for the rest of that program.# PKG_PROG_PKG_CONFIG([MIN-VERSION])# ----------------------------------AC_DEFUN([PKG_PROG_PKG_CONFIG],[m4_pattern_forbid([^_?PKG_[A-Z_]+$])m4_pattern_allow([^PKG_CONFIG(_PATH)?$])AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnlif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then AC_PATH_TOOL([PKG_CONFIG], [pkg-config])fiif test -n "$PKG_CONFIG"; then _pkg_min_version=m4_default([$1], [0.9.0]) AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) PKG_CONFIG="" fi fi[]dnl])# PKG_PROG_PKG_CONFIG# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])## Check to see whether a particular set of modules exists. Similar# to PKG_CHECK_MODULES(), but does not set variables or print errors.### Similar to PKG_CHECK_MODULES, make sure that the first instance of# this or PKG_CHECK_MODULES is called, or make sure to call# PKG_CHECK_EXISTS manually# --------------------------------------------------------------AC_DEFUN([PKG_CHECK_EXISTS],[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnlif test -n "$PKG_CONFIG" && \ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then m4_ifval([$2], [$2], [:])m4_ifvaln([$3], [else $3])dnlfi])# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])# ---------------------------------------------m4_define([_PKG_CONFIG],[if test -n "$$1"; then pkg_cv_[]$1="$$1" elif test -n "$PKG_CONFIG"; then PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], [pkg_failed=yes]) else pkg_failed=untriedfi[]dnl])# _PKG_CONFIG# _PKG_SHORT_ERRORS_SUPPORTED# -----------------------------AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],[AC_REQUIRE([PKG_PROG_PKG_CONFIG])if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yeselse _pkg_short_errors_supported=nofi[]dnl])# _PKG_SHORT_ERRORS_SUPPORTED# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],# [ACTION-IF-NOT-FOUND])### Note that if there is a possibility the first call to# PKG_CHECK_MODULES might not happen, you should be sure to include an# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac### --------------------------------------------------------------AC_DEFUN([PKG_CHECK_MODULES],[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnlAC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnlAC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnlpkg_failed=noAC_MSG_CHECKING([for $1])_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])_PKG_CONFIG([$1][_LIBS], [libs], [$2])m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGSand $1[]_LIBS to avoid the need to call pkg-config.See the pkg-config man page for more details.])if test $pkg_failed = yes; then _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1` else $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD ifelse([$4], , [AC_MSG_ERROR(dnl[Package requirements ($2) were not met:$$1_PKG_ERRORSConsider adjusting the PKG_CONFIG_PATH environment variable if youinstalled software in a non-standard prefix._PKG_TEXT])], [AC_MSG_RESULT([no]) $4])elif test $pkg_failed = untried; then ifelse([$4], , [AC_MSG_FAILURE(dnl[The pkg-config script could not be found or is too old. Make sure itis in your PATH or set the PKG_CONFIG environment variable to the fullpath to pkg-config._PKG_TEXTTo get pkg-config, see <http://pkg-config.freedesktop.org/>.])], [$4])else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) ifelse([$3], , :, [$3])fi[]dnl])# PKG_CHECK_MODULES# Copyright (C) 2002, 2003, 2005, 2006, 2007 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.# AM_AUTOMAKE_VERSION(VERSION)# ----------------------------# Automake X.Y traces this macro to ensure aclocal.m4 has been# generated from the m4 files accompanying Automake X.Y.# (This private macro should not be called outside this file.)AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version='1.10'dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way todnl require some minimum version. Point them to the right macro.m4_if([$1], [1.10.1], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl])# _AM_AUTOCONF_VERSION(VERSION)# -----------------------------# aclocal traces this macro to find the Autoconf version.# This is a private macro too. Using m4_define simplifies# the logic in aclocal, which can simply ignore this definition.m4_define([_AM_AUTOCONF_VERSION], [])# AM_SET_CURRENT_AUTOMAKE_VERSION# -------------------------------# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],[AM_AUTOMAKE_VERSION([1.10.1])dnlm4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])# AM_AUX_DIR_EXPAND -*- Autoconf -*-# Copyright (C) 2001, 2003, 2005 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.# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to# `$srcdir', `$srcdir/..', or `$srcdir/../..'.## Of course, Automake must honor this variable whenever it calls a# tool from the auxiliary directory. The problem is that $srcdir (and# therefore $ac_aux_dir as well) can be either absolute or relative,# depending on how configure is run. This is pretty annoying, since# it makes $ac_aux_dir quite unusable in subdirectories: in the top# source directory, any form will work fine, but in subdirectories a# relative path needs to be adjusted first.## $ac_aux_dir/missing# fails when called from a subdirectory if $ac_aux_dir is relative# $top_srcdir/$ac_aux_dir/missing# fails if $ac_aux_dir is absolute,# fails when called from a subdirectory in a VPATH build with# a relative $ac_aux_dir## The reason of the latter failure is that $top_srcdir and $ac_aux_dir# are both prefixed by $srcdir. In an in-source build this is usually# harmless because $srcdir is `.', but things will broke when you# start a VPATH build or use an absolute $srcdir.## So we could use something similar to $top_srcdir/$ac_aux_dir/missing,# iff we strip the leading $srcdir from $ac_aux_dir. That would be:# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`# and then we would define $MISSING as# MISSING="\${SHELL} $am_aux_dir/missing"# This will work as long as MISSING is not called from configure, because# unfortunately $(top_srcdir) has no meaning in configure.# However there are other variables, like CC, which are often used in# configure, and could therefore not use this "fixed" $ac_aux_dir.## Another solution, used here, is to always expand $ac_aux_dir to an# absolute PATH. The drawback is that using absolute paths prevent a# configured tree to be moved without reconfiguration.AC_DEFUN([AM_AUX_DIR_EXPAND],[dnl Rely on autoconf to set up CDPATH properly.AC_PREREQ([2.50])dnl# expand $ac_aux_dir to an absolute patham_aux_dir=`cd $ac_aux_dir && pwd`])# AM_CONDITIONAL -*- Autoconf -*-# Copyright (C) 1997, 2000, 2001, 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.# serial 8# AM_CONDITIONAL(NAME, SHELL-CONDITION)# -------------------------------------# Define a conditional.AC_DEFUN([AM_CONDITIONAL],[AC_PREREQ(2.52)dnl ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnlAC_SUBST([$1_TRUE])dnlAC_SUBST([$1_FALSE])dnl_AM_SUBST_NOTMAKE([$1_TRUE])dnl_AM_SUBST_NOTMAKE([$1_FALSE])dnlif $2; then $1_TRUE= $1_FALSE='#'else $1_TRUE='#' $1_FALSE=fiAC_CONFIG_COMMANDS_PRE([if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined.Usually this means the macro was only invoked conditionally.]])fi])])# Copyright (C) 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.# serial 9# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be# written in clear, in which case automake, when reading aclocal.m4,# will think it sees a *use*, and therefore will trigger all it's# C support machinery. Also note that it means that autoscan, seeing# CC etc. in the Makefile, will ask for an AC_PROG_CC use...# _AM_DEPENDENCIES(NAME)# ----------------------# See how the compiler implements dependency checking.# NAME is "CC", "CXX", "GCJ", or "OBJC".# We try a few techniques and use that to set a single cache variable.## We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular# dependency, and given that the user is not expected to run this macro,# just rely on AC_PROG_CC.AC_DEFUN([_AM_DEPENDENCIES],[AC_REQUIRE([AM_SET_DEPDIR])dnlAC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnlAC_REQUIRE([AM_MAKE_INCLUDE])dnlAC_REQUIRE([AM_DEP_TRACK])dnlifelse([$1], CC, [depcc="$CC" am_compiler_list=], [$1], CXX, [depcc="$CXX" am_compiler_list=], [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], UPC, [depcc="$UPC" am_compiler_list=], [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=])AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type],[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -