configure check for boost::algorithm::string

This commit is contained in:
Moritz Bunkus 2011-08-07 22:26:20 +02:00
parent 155e0a3170
commit 10ccb35711
3 changed files with 12 additions and 0 deletions

5
ac/ax_boost_others.m4 Normal file
View File

@ -0,0 +1,5 @@
AC_DEFUN([AX_BOOST_ALGORITHM_STRING],[
AC_LANG_PUSH(C++)
AC_CHECK_HEADERS(boost/algorithm/string.hpp, , ax_cv_boost_algorithm_string=no)
AC_LANG_POP()
])

View File

@ -46,3 +46,9 @@ fi
if test x"$ax_cv_boost_property_tree" = "xincluded"; then
EXTRA_CFLAGS="-I$boost_exception_dir $EXTRA_CFLAGS -I$boost_property_tree_dir"
fi
# boost::algorithm::string must be present
AX_BOOST_ALGORITHM_STRING()
if test x"$ax_cv_boost_algorithm_string" = xno ; then
AC_MSG_ERROR(The Boost String Algorithm Library was not found.)
fi

View File

@ -46,6 +46,7 @@ m4_include(ac/ax_boost_foreach.m4)
m4_include(ac/ax_boost_property_tree.m4)
m4_include(ac/ax_boost_regex.m4)
m4_include(ac/ax_boost_system.m4)
m4_include(ac/ax_boost_others.m4)
m4_include(ac/boost.m4)
m4_include(ac/etags.m4)
m4_include(ac/pandoc.m4)