monotone

monotone Mtn Source Tree

Root/m4/boost.m4

1dnl Grab-bag of checks related to boost.
2
3# Check for suitably new version of boost.
4AC_DEFUN([BOOST_VERSION_CHECK],
5[AC_LANG_ASSERT([C++])
6 AC_CACHE_CHECK([boost version 1.33.0 or newer],
7 ac_cv_boost_version_least_1_33_0,
8 [
9 AC_COMPILE_IFELSE(
10 [#include <boost/version.hpp>
11 #if BOOST_VERSION >= 103300
12 int main() { return 0; }
13 #else
14 #error boost version is too old
15 #endif
16 ],
17 ac_cv_boost_version_least_1_33_0=yes,
18 ac_cv_boost_version_least_1_33_0=no)
19 ])
20 if test x$ac_cv_boost_version_least_1_33_0 = xno; then
21 AC_MSG_ERROR([boost 1.33.0 or newer required])
22 fi
23])
24
25# We currently don't need any checks for boost version-specific bugs,
26# but we have in the past and may again. They go in this macro.
27AC_DEFUN([BOOST_VERSION_SPECIFIC_BUGS],
28[AC_LANG_ASSERT([C++])
29])

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status