- Timestamp:
- 09/17/16 19:06:39 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/aclocal.m4
r18603 r18604 1 # generated automatically by aclocal 1.1 5-*- Autoconf -*-2 3 # Copyright (C) 1996-201 4Free Software Foundation, Inc.1 # generated automatically by aclocal 1.14.1 -*- Autoconf -*- 2 3 # Copyright (C) 1996-2013 Free Software Foundation, Inc. 4 4 5 5 # This file is free software; the Free Software Foundation … … 130 130 LDFLAGS="$LDFLAGS_SAVED" 131 131 fi 132 ])133 134 # ===========================================================================135 # http://www.gnu.org/software/autoconf-archive/ax_boost_base.html136 # ===========================================================================137 #138 # SYNOPSIS139 #140 # AX_BOOST_BASE([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])141 #142 # DESCRIPTION143 #144 # Test for the Boost C++ libraries of a particular version (or newer)145 #146 # If no path to the installed boost library is given the macro searchs147 # under /usr, /usr/local, /opt and /opt/local and evaluates the148 # $BOOST_ROOT environment variable. Further documentation is available at149 # <http://randspringer.de/boost/index.html>.150 #151 # This macro calls:152 #153 # AC_SUBST(BOOST_CPPFLAGS) / AC_SUBST(BOOST_LDFLAGS)154 #155 # And sets:156 #157 # HAVE_BOOST158 #159 # LICENSE160 #161 # Copyright (c) 2008 Thomas Porschberg <thomas@randspringer.de>162 # Copyright (c) 2009 Peter Adolphs163 #164 # Copying and distribution of this file, with or without modification, are165 # permitted in any medium without royalty provided the copyright notice166 # and this notice are preserved. This file is offered as-is, without any167 # warranty.168 169 #serial 26170 171 AC_DEFUN([AX_BOOST_BASE],172 [173 AC_ARG_WITH([boost],174 [AS_HELP_STRING([--with-boost@<:@=ARG@:>@],175 [use Boost library from a standard location (ARG=yes),176 from the specified location (ARG=<path>),177 or disable it (ARG=no)178 @<:@ARG=yes@:>@ ])],179 [180 if test "$withval" = "no"; then181 want_boost="no"182 elif test "$withval" = "yes"; then183 want_boost="yes"184 ac_boost_path=""185 else186 want_boost="yes"187 ac_boost_path="$withval"188 fi189 ],190 [want_boost="yes"])191 192 193 AC_ARG_WITH([boost-libdir],194 AS_HELP_STRING([--with-boost-libdir=LIB_DIR],195 [Force given directory for boost libraries. Note that this will override library path detection, so use this parameter only if default library detection fails and you know exactly where your boost libraries are located.]),196 [197 if test -d "$withval"198 then199 ac_boost_lib_path="$withval"200 else201 AC_MSG_ERROR(--with-boost-libdir expected directory name)202 fi203 ],204 [ac_boost_lib_path=""]205 )206 207 if test "x$want_boost" = "xyes"; then208 boost_lib_version_req=ifelse([$1], ,1.20.0,$1)209 boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([[0-9]]*\.[[0-9]]*\)'`210 boost_lib_version_req_major=`expr $boost_lib_version_req : '\([[0-9]]*\)'`211 boost_lib_version_req_minor=`expr $boost_lib_version_req : '[[0-9]]*\.\([[0-9]]*\)'`212 boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[[0-9]]*\.[[0-9]]*\.\([[0-9]]*\)'`213 if test "x$boost_lib_version_req_sub_minor" = "x" ; then214 boost_lib_version_req_sub_minor="0"215 fi216 WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`217 AC_MSG_CHECKING(for boostlib >= $boost_lib_version_req)218 succeeded=no219 220 dnl On 64-bit systems check for system libraries in both lib64 and lib.221 dnl The former is specified by FHS, but e.g. Debian does not adhere to222 dnl this (as it rises problems for generic multi-arch support).223 dnl The last entry in the list is chosen by default when no libraries224 dnl are found, e.g. when only header-only libraries are installed!225 libsubdirs="lib"226 ax_arch=`uname -m`227 case $ax_arch in228 x86_64)229 libsubdirs="lib64 libx32 lib lib64"230 ;;231 ppc64|s390x|sparc64|aarch64|ppc64le)232 libsubdirs="lib64 lib lib64 ppc64le"233 ;;234 esac235 236 dnl allow for real multi-arch paths e.g. /usr/lib/x86_64-linux-gnu. Give237 dnl them priority over the other paths since, if libs are found there, they238 dnl are almost assuredly the ones desired.239 AC_REQUIRE([AC_CANONICAL_HOST])240 libsubdirs="lib/${host_cpu}-${host_os} $libsubdirs"241 242 case ${host_cpu} in243 i?86)244 libsubdirs="lib/i386-${host_os} $libsubdirs"245 ;;246 esac247 248 dnl first we check the system location for boost libraries249 dnl this location ist chosen if boost libraries are installed with the --layout=system option250 dnl or if you install boost with RPM251 if test "$ac_boost_path" != ""; then252 BOOST_CPPFLAGS="-I$ac_boost_path/include"253 for ac_boost_path_tmp in $libsubdirs; do254 if test -d "$ac_boost_path"/"$ac_boost_path_tmp" ; then255 BOOST_LDFLAGS="-L$ac_boost_path/$ac_boost_path_tmp"256 break257 fi258 done259 elif test "$cross_compiling" != yes; then260 for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do261 if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then262 for libsubdir in $libsubdirs ; do263 if ls "$ac_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi264 done265 BOOST_LDFLAGS="-L$ac_boost_path_tmp/$libsubdir"266 BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"267 break;268 fi269 done270 fi271 272 dnl overwrite ld flags if we have required special directory with273 dnl --with-boost-libdir parameter274 if test "$ac_boost_lib_path" != ""; then275 BOOST_LDFLAGS="-L$ac_boost_lib_path"276 fi277 278 CPPFLAGS_SAVED="$CPPFLAGS"279 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"280 export CPPFLAGS281 282 LDFLAGS_SAVED="$LDFLAGS"283 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"284 export LDFLAGS285 286 AC_REQUIRE([AC_PROG_CXX])287 AC_LANG_PUSH(C++)288 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[289 @%:@include <boost/version.hpp>290 ]], [[291 #if BOOST_VERSION >= $WANT_BOOST_VERSION292 // Everything is okay293 #else294 # error Boost version is too old295 #endif296 ]])],[297 AC_MSG_RESULT(yes)298 succeeded=yes299 found_system=yes300 ],[301 ])302 AC_LANG_POP([C++])303 304 305 306 dnl if we found no boost with system layout we search for boost libraries307 dnl built and installed without the --layout=system option or for a staged(not installed) version308 if test "x$succeeded" != "xyes"; then309 CPPFLAGS="$CPPFLAGS_SAVED"310 LDFLAGS="$LDFLAGS_SAVED"311 BOOST_CPPFLAGS=312 BOOST_LDFLAGS=313 _version=0314 if test "$ac_boost_path" != ""; then315 if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then316 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do317 _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`318 V_CHECK=`expr $_version_tmp \> $_version`319 if test "$V_CHECK" = "1" ; then320 _version=$_version_tmp321 fi322 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`323 BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"324 done325 dnl if nothing found search for layout used in Windows distributions326 if test -z "$BOOST_CPPFLAGS"; then327 if test -d "$ac_boost_path/boost" && test -r "$ac_boost_path/boost"; then328 BOOST_CPPFLAGS="-I$ac_boost_path"329 fi330 fi331 fi332 else333 if test "$cross_compiling" != yes; then334 for ac_boost_path in /usr /usr/local /opt /opt/local ; do335 if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then336 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do337 _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`338 V_CHECK=`expr $_version_tmp \> $_version`339 if test "$V_CHECK" = "1" ; then340 _version=$_version_tmp341 best_path=$ac_boost_path342 fi343 done344 fi345 done346 347 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`348 BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"349 if test "$ac_boost_lib_path" = ""; then350 for libsubdir in $libsubdirs ; do351 if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi352 done353 BOOST_LDFLAGS="-L$best_path/$libsubdir"354 fi355 fi356 357 if test "x$BOOST_ROOT" != "x"; then358 for libsubdir in $libsubdirs ; do359 if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi360 done361 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then362 version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`363 stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`364 stage_version_shorten=`expr $stage_version : '\([[0-9]]*\.[[0-9]]*\)'`365 V_CHECK=`expr $stage_version_shorten \>\= $_version`366 if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then367 AC_MSG_NOTICE(We will use a staged boost library from $BOOST_ROOT)368 BOOST_CPPFLAGS="-I$BOOST_ROOT"369 BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"370 fi371 fi372 fi373 fi374 375 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"376 export CPPFLAGS377 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"378 export LDFLAGS379 380 AC_LANG_PUSH(C++)381 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[382 @%:@include <boost/version.hpp>383 ]], [[384 #if BOOST_VERSION >= $WANT_BOOST_VERSION385 // Everything is okay386 #else387 # error Boost version is too old388 #endif389 ]])],[390 AC_MSG_RESULT(yes)391 succeeded=yes392 found_system=yes393 ],[394 ])395 AC_LANG_POP([C++])396 fi397 398 if test "$succeeded" != "yes" ; then399 if test "$_version" = "0" ; then400 AC_MSG_NOTICE([[We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation.]])401 else402 AC_MSG_NOTICE([Your boost libraries seems to old (version $_version).])403 fi404 # execute ACTION-IF-NOT-FOUND (if present):405 ifelse([$3], , :, [$3])406 else407 AC_SUBST(BOOST_CPPFLAGS)408 AC_SUBST(BOOST_LDFLAGS)409 AC_DEFINE(HAVE_BOOST,,[define if the Boost library is available])410 # execute ACTION-IF-FOUND (if present):411 ifelse([$2], , :, [$2])412 fi413 414 CPPFLAGS="$CPPFLAGS_SAVED"415 LDFLAGS="$LDFLAGS_SAVED"416 fi417 418 132 ]) 419 133 … … 682 396 # warranty. 683 397 684 #serial 2 4398 #serial 22 685 399 686 400 AC_DEFUN([AX_BOOST_PROGRAM_OPTIONS], … … 716 430 ax_cv_boost_program_options, 717 431 [AC_LANG_PUSH(C++) 718 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <boost/program_options /errors.hpp>432 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <boost/program_options.hpp> 719 433 ]], 720 [[boost::program_options:: error err("Error message");434 [[boost::program_options::options_description generic("Generic options"); 721 435 return 0;]])], 722 436 ax_cv_boost_program_options=yes, ax_cv_boost_program_options=no) … … 1372 1086 # rm -rf @DX_DOCDIR@ 1373 1087 # $(DX_ENV) $(DX_DOXYGEN) $(srcdir)/$(DX_CONFIG) 1374 # echo Timestamp >$@1375 1088 # 1376 1089 # DX_CLEANFILES = \ … … 1400 1113 # warranty. 1401 1114 1402 #serial 1 31115 #serial 12 1403 1116 1404 1117 … … 2001 1714 ])dnl AX_PTHREAD 2002 1715 2003 dnl pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 2004 dnl serial 11 (pkg-config-0.29.1) 2005 dnl 2006 dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 2007 dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com> 2008 dnl 2009 dnl This program is free software; you can redistribute it and/or modify 2010 dnl it under the terms of the GNU General Public License as published by 2011 dnl the Free Software Foundation; either version 2 of the License, or 2012 dnl (at your option) any later version. 2013 dnl 2014 dnl This program is distributed in the hope that it will be useful, but 2015 dnl WITHOUT ANY WARRANTY; without even the implied warranty of 2016 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 2017 dnl General Public License for more details. 2018 dnl 2019 dnl You should have received a copy of the GNU General Public License 2020 dnl along with this program; if not, write to the Free Software 2021 dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 2022 dnl 02111-1307, USA. 2023 dnl 2024 dnl As a special exception to the GNU General Public License, if you 2025 dnl distribute this file as part of a program that contains a 2026 dnl configuration script generated by Autoconf, you may include it under 2027 dnl the same distribution terms that you use for the rest of that 2028 dnl program. 2029 2030 dnl PKG_PREREQ(MIN-VERSION) 2031 dnl ----------------------- 2032 dnl Since: 0.29 2033 dnl 2034 dnl Verify that the version of the pkg-config macros are at least 2035 dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's 2036 dnl installed version of pkg-config, this checks the developer's version 2037 dnl of pkg.m4 when generating configure. 2038 dnl 2039 dnl To ensure that this macro is defined, also add: 2040 dnl m4_ifndef([PKG_PREREQ], 2041 dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])]) 2042 dnl 2043 dnl See the "Since" comment for each macro you use to see what version 2044 dnl of the macros you require. 2045 m4_defun([PKG_PREREQ], 2046 [m4_define([PKG_MACROS_VERSION], [0.29.1]) 2047 m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1, 2048 [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])]) 2049 ])dnl PKG_PREREQ 2050 2051 dnl PKG_PROG_PKG_CONFIG([MIN-VERSION]) 2052 dnl ---------------------------------- 2053 dnl Since: 0.16 2054 dnl 2055 dnl Search for the pkg-config tool and set the PKG_CONFIG variable to 2056 dnl first found in the path. Checks that the version of pkg-config found 2057 dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is 2058 dnl used since that's the first version where most current features of 2059 dnl pkg-config existed. 1716 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 1717 # serial 1 (pkg-config-0.24) 1718 # 1719 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 1720 # 1721 # This program is free software; you can redistribute it and/or modify 1722 # it under the terms of the GNU General Public License as published by 1723 # the Free Software Foundation; either version 2 of the License, or 1724 # (at your option) any later version. 1725 # 1726 # This program is distributed in the hope that it will be useful, but 1727 # WITHOUT ANY WARRANTY; without even the implied warranty of 1728 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1729 # General Public License for more details. 1730 # 1731 # You should have received a copy of the GNU General Public License 1732 # along with this program; if not, write to the Free Software 1733 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 1734 # 1735 # As a special exception to the GNU General Public License, if you 1736 # distribute this file as part of a program that contains a 1737 # configuration script generated by Autoconf, you may include it under 1738 # the same distribution terms that you use for the rest of that program. 1739 1740 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 1741 # ---------------------------------- 2060 1742 AC_DEFUN([PKG_PROG_PKG_CONFIG], 2061 1743 [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) … … 2079 1761 fi 2080 1762 fi[]dnl 2081 ])dnl PKG_PROG_PKG_CONFIG 2082 2083 dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 2084 dnl ------------------------------------------------------------------- 2085 dnl Since: 0.18 2086 dnl 2087 dnl Check to see whether a particular set of modules exists. Similar to 2088 dnl PKG_CHECK_MODULES(), but does not set variables or print errors. 2089 dnl 2090 dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 2091 dnl only at the first occurence in configure.ac, so if the first place 2092 dnl it's called might be skipped (such as if it is within an "if", you 2093 dnl have to call PKG_CHECK_EXISTS manually 1763 ])# PKG_PROG_PKG_CONFIG 1764 1765 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 1766 # 1767 # Check to see whether a particular set of modules exists. Similar 1768 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 1769 # 1770 # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 1771 # only at the first occurence in configure.ac, so if the first place 1772 # it's called might be skipped (such as if it is within an "if", you 1773 # have to call PKG_CHECK_EXISTS manually 1774 # -------------------------------------------------------------- 2094 1775 AC_DEFUN([PKG_CHECK_EXISTS], 2095 1776 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl … … 2101 1782 fi]) 2102 1783 2103 dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 2104 dnl --------------------------------------------- 2105 dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting 2106 dnl pkg_failed based on the result. 1784 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 1785 # --------------------------------------------- 2107 1786 m4_define([_PKG_CONFIG], 2108 1787 [if test -n "$$1"; then … … 2116 1795 pkg_failed=untried 2117 1796 fi[]dnl 2118 ])dnl _PKG_CONFIG 2119 2120 dnl _PKG_SHORT_ERRORS_SUPPORTED 2121 dnl --------------------------- 2122 dnl Internal check to see if pkg-config supports short errors. 1797 ])# _PKG_CONFIG 1798 1799 # _PKG_SHORT_ERRORS_SUPPORTED 1800 # ----------------------------- 2123 1801 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], 2124 1802 [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) … … 2128 1806 _pkg_short_errors_supported=no 2129 1807 fi[]dnl 2130 ])dnl _PKG_SHORT_ERRORS_SUPPORTED 2131 2132 2133 dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 2134 dnl [ACTION-IF-NOT-FOUND]) 2135 dnl -------------------------------------------------------------- 2136 dnl Since: 0.4.0 2137 dnl 2138 dnl Note that if there is a possibility the first call to 2139 dnl PKG_CHECK_MODULES might not happen, you should be sure to include an 2140 dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 1808 ])# _PKG_SHORT_ERRORS_SUPPORTED 1809 1810 1811 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 1812 # [ACTION-IF-NOT-FOUND]) 1813 # 1814 # 1815 # Note that if there is a possibility the first call to 1816 # PKG_CHECK_MODULES might not happen, you should be sure to include an 1817 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 1818 # 1819 # 1820 # -------------------------------------------------------------- 2141 1821 AC_DEFUN([PKG_CHECK_MODULES], 2142 1822 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl … … 2192 1872 $3 2193 1873 fi[]dnl 2194 ])dnl PKG_CHECK_MODULES 2195 2196 2197 dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 2198 dnl [ACTION-IF-NOT-FOUND]) 2199 dnl --------------------------------------------------------------------- 2200 dnl Since: 0.29 2201 dnl 2202 dnl Checks for existence of MODULES and gathers its build flags with 2203 dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags 2204 dnl and VARIABLE-PREFIX_LIBS from --libs. 2205 dnl 2206 dnl Note that if there is a possibility the first call to 2207 dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to 2208 dnl include an explicit call to PKG_PROG_PKG_CONFIG in your 2209 dnl configure.ac. 2210 AC_DEFUN([PKG_CHECK_MODULES_STATIC], 2211 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 2212 _save_PKG_CONFIG=$PKG_CONFIG 2213 PKG_CONFIG="$PKG_CONFIG --static" 2214 PKG_CHECK_MODULES($@) 2215 PKG_CONFIG=$_save_PKG_CONFIG[]dnl 2216 ])dnl PKG_CHECK_MODULES_STATIC 2217 2218 2219 dnl PKG_INSTALLDIR([DIRECTORY]) 2220 dnl ------------------------- 2221 dnl Since: 0.27 2222 dnl 2223 dnl Substitutes the variable pkgconfigdir as the location where a module 2224 dnl should install pkg-config .pc files. By default the directory is 2225 dnl $libdir/pkgconfig, but the default can be changed by passing 2226 dnl DIRECTORY. The user can override through the --with-pkgconfigdir 2227 dnl parameter. 2228 AC_DEFUN([PKG_INSTALLDIR], 2229 [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) 2230 m4_pushdef([pkg_description], 2231 [pkg-config installation directory @<:@]pkg_default[@:>@]) 2232 AC_ARG_WITH([pkgconfigdir], 2233 [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],, 2234 [with_pkgconfigdir=]pkg_default) 2235 AC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) 2236 m4_popdef([pkg_default]) 2237 m4_popdef([pkg_description]) 2238 ])dnl PKG_INSTALLDIR 2239 2240 2241 dnl PKG_NOARCH_INSTALLDIR([DIRECTORY]) 2242 dnl -------------------------------- 2243 dnl Since: 0.27 2244 dnl 2245 dnl Substitutes the variable noarch_pkgconfigdir as the location where a 2246 dnl module should install arch-independent pkg-config .pc files. By 2247 dnl default the directory is $datadir/pkgconfig, but the default can be 2248 dnl changed by passing DIRECTORY. The user can override through the 2249 dnl --with-noarch-pkgconfigdir parameter. 2250 AC_DEFUN([PKG_NOARCH_INSTALLDIR], 2251 [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) 2252 m4_pushdef([pkg_description], 2253 [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@]) 2254 AC_ARG_WITH([noarch-pkgconfigdir], 2255 [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],, 2256 [with_noarch_pkgconfigdir=]pkg_default) 2257 AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) 2258 m4_popdef([pkg_default]) 2259 m4_popdef([pkg_description]) 2260 ])dnl PKG_NOARCH_INSTALLDIR 2261 2262 2263 dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, 2264 dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 2265 dnl ------------------------------------------- 2266 dnl Since: 0.28 2267 dnl 2268 dnl Retrieves the value of the pkg-config variable for the given module. 2269 AC_DEFUN([PKG_CHECK_VAR], 2270 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 2271 AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl 2272 2273 _PKG_CONFIG([$1], [variable="][$3]["], [$2]) 2274 AS_VAR_COPY([$1], [pkg_cv_][$1]) 2275 2276 AS_VAR_IF([$1], [""], [$5], [$4])dnl 2277 ])dnl PKG_CHECK_VAR 2278 2279 # Copyright (C) 2002-2014 Free Software Foundation, Inc. 1874 ])# PKG_CHECK_MODULES 1875 1876 # Copyright (C) 2002-2013 Free Software Foundation, Inc. 2280 1877 # 2281 1878 # This file is free software; the Free Software Foundation … … 2289 1886 # (This private macro should not be called outside this file.) 2290 1887 AC_DEFUN([AM_AUTOMAKE_VERSION], 2291 [am__api_version='1.1 5'1888 [am__api_version='1.14' 2292 1889 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 2293 1890 dnl require some minimum version. Point them to the right macro. 2294 m4_if([$1], [1.1 5], [],1891 m4_if([$1], [1.14.1], [], 2295 1892 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 2296 1893 ]) … … 2308 1905 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 2309 1906 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 2310 [AM_AUTOMAKE_VERSION([1.1 5])dnl1907 [AM_AUTOMAKE_VERSION([1.14.1])dnl 2311 1908 m4_ifndef([AC_AUTOCONF_VERSION], 2312 1909 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 2313 1910 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 2314 1911 2315 # Copyright (C) 2011-201 4Free Software Foundation, Inc.1912 # Copyright (C) 2011-2013 Free Software Foundation, Inc. 2316 1913 # 2317 1914 # This file is free software; the Free Software Foundation … … 2375 1972 # AM_AUX_DIR_EXPAND -*- Autoconf -*- 2376 1973 2377 # Copyright (C) 2001-201 4Free Software Foundation, Inc.1974 # Copyright (C) 2001-2013 Free Software Foundation, Inc. 2378 1975 # 2379 1976 # This file is free software; the Free Software Foundation … … 2420 2017 2421 2018 AC_DEFUN([AM_AUX_DIR_EXPAND], 2422 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl 2423 # Expand $ac_aux_dir to an absolute path. 2424 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2019 [dnl Rely on autoconf to set up CDPATH properly. 2020 AC_PREREQ([2.50])dnl 2021 # expand $ac_aux_dir to an absolute path 2022 am_aux_dir=`cd $ac_aux_dir && pwd` 2425 2023 ]) 2426 2024 2427 2025 # AM_COND_IF -*- Autoconf -*- 2428 2026 2429 # Copyright (C) 2008-201 4Free Software Foundation, Inc.2027 # Copyright (C) 2008-2013 Free Software Foundation, Inc. 2430 2028 # 2431 2029 # This file is free software; the Free Software Foundation … … 2464 2062 # AM_CONDITIONAL -*- Autoconf -*- 2465 2063 2466 # Copyright (C) 1997-201 4Free Software Foundation, Inc.2064 # Copyright (C) 1997-2013 Free Software Foundation, Inc. 2467 2065 # 2468 2066 # This file is free software; the Free Software Foundation … … 2495 2093 fi])]) 2496 2094 2497 # Copyright (C) 1999-201 4Free Software Foundation, Inc.2095 # Copyright (C) 1999-2013 Free Software Foundation, Inc. 2498 2096 # 2499 2097 # This file is free software; the Free Software Foundation … … 2686 2284 # Generate code to set up dependency tracking. -*- Autoconf -*- 2687 2285 2688 # Copyright (C) 1999-201 4Free Software Foundation, Inc.2286 # Copyright (C) 1999-2013 Free Software Foundation, Inc. 2689 2287 # 2690 2288 # This file is free software; the Free Software Foundation … … 2762 2360 # Do all the work for Automake. -*- Autoconf -*- 2763 2361 2764 # Copyright (C) 1996-201 4Free Software Foundation, Inc.2362 # Copyright (C) 1996-2013 Free Software Foundation, Inc. 2765 2363 # 2766 2364 # This file is free software; the Free Software Foundation … … 2852 2450 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2853 2451 AC_SUBST([mkdir_p], ['$(MKDIR_P)']) 2854 # We need awk for the "check" target (and possibly the TAP driver). The2855 # s ystem "awk" is bad on some platforms.2452 # We need awk for the "check" target. The system "awk" is bad on 2453 # some platforms. 2856 2454 AC_REQUIRE([AC_PROG_AWK])dnl 2857 2455 AC_REQUIRE([AC_PROG_MAKE_SET])dnl … … 2926 2524 AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) 2927 2525 fi 2928 fi 2929 dnl The trailing newline in this macro's definition is deliberate, for 2930 dnl backward compatibility and to allow trailing 'dnl'-style comments 2931 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. 2932 ]) 2526 fi]) 2933 2527 2934 2528 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not … … 2959 2553 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 2960 2554 2961 # Copyright (C) 2001-201 4Free Software Foundation, Inc.2555 # Copyright (C) 2001-2013 Free Software Foundation, Inc. 2962 2556 # 2963 2557 # This file is free software; the Free Software Foundation … … 2970 2564 AC_DEFUN([AM_PROG_INSTALL_SH], 2971 2565 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 2972 if test x"${install_sh +set}" != xset; then2566 if test x"${install_sh}" != xset; then 2973 2567 case $am_aux_dir in 2974 2568 *\ * | *\ *) … … 2980 2574 AC_SUBST([install_sh])]) 2981 2575 2982 # Copyright (C) 2003-201 4Free Software Foundation, Inc.2576 # Copyright (C) 2003-2013 Free Software Foundation, Inc. 2983 2577 # 2984 2578 # This file is free software; the Free Software Foundation … … 3001 2595 # Check to see how 'make' treats includes. -*- Autoconf -*- 3002 2596 3003 # Copyright (C) 2001-201 4Free Software Foundation, Inc.2597 # Copyright (C) 2001-2013 Free Software Foundation, Inc. 3004 2598 # 3005 2599 # This file is free software; the Free Software Foundation … … 3051 2645 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 3052 2646 3053 # Copyright (C) 1997-201 4Free Software Foundation, Inc.2647 # Copyright (C) 1997-2013 Free Software Foundation, Inc. 3054 2648 # 3055 2649 # This file is free software; the Free Software Foundation … … 3090 2684 # Helper functions for option handling. -*- Autoconf -*- 3091 2685 3092 # Copyright (C) 2001-201 4Free Software Foundation, Inc.2686 # Copyright (C) 2001-2013 Free Software Foundation, Inc. 3093 2687 # 3094 2688 # This file is free software; the Free Software Foundation … … 3119 2713 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 3120 2714 3121 # Copyright (C) 1999-201 4Free Software Foundation, Inc.2715 # Copyright (C) 1999-2013 Free Software Foundation, Inc. 3122 2716 # 3123 2717 # This file is free software; the Free Software Foundation … … 3166 2760 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) 3167 2761 3168 # Copyright (C) 2001-201 4Free Software Foundation, Inc.2762 # Copyright (C) 2001-2013 Free Software Foundation, Inc. 3169 2763 # 3170 2764 # This file is free software; the Free Software Foundation … … 3185 2779 # Check to make sure that the build environment is sane. -*- Autoconf -*- 3186 2780 3187 # Copyright (C) 1996-201 4Free Software Foundation, Inc.2781 # Copyright (C) 1996-2013 Free Software Foundation, Inc. 3188 2782 # 3189 2783 # This file is free software; the Free Software Foundation … … 3266 2860 ]) 3267 2861 3268 # Copyright (C) 2009-201 4Free Software Foundation, Inc.2862 # Copyright (C) 2009-2013 Free Software Foundation, Inc. 3269 2863 # 3270 2864 # This file is free software; the Free Software Foundation … … 3326 2920 ]) 3327 2921 3328 # Copyright (C) 2001-201 4Free Software Foundation, Inc.2922 # Copyright (C) 2001-2013 Free Software Foundation, Inc. 3329 2923 # 3330 2924 # This file is free software; the Free Software Foundation … … 3354 2948 AC_SUBST([INSTALL_STRIP_PROGRAM])]) 3355 2949 3356 # Copyright (C) 2006-201 4Free Software Foundation, Inc.2950 # Copyright (C) 2006-2013 Free Software Foundation, Inc. 3357 2951 # 3358 2952 # This file is free software; the Free Software Foundation … … 3373 2967 # Check how to create a tarball. -*- Autoconf -*- 3374 2968 3375 # Copyright (C) 2004-201 4Free Software Foundation, Inc.2969 # Copyright (C) 2004-2013 Free Software Foundation, Inc. 3376 2970 # 3377 2971 # This file is free software; the Free Software Foundation … … 3509 3103 m4_include([.macro_dir/ac_check_readline.m4]) 3510 3104 m4_include([.macro_dir/ac_find_motif.m4]) 3105 m4_include([.macro_dir/ax_boost_base.m4]) 3511 3106 m4_include([.macro_dir/ax_cxx_compile_stdcxx_0x.m4]) 3512 3107 m4_include([.macro_dir/libtool.m4])
Note:
See TracChangeset
for help on using the changeset viewer.