From 8328fa9fa20336b6dc5534d4eeca0d49f8262dbf Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 29 Jun 2011 16:11:46 +0200 Subject: [PATCH] ID_BOOST may check for regex --- boost.m4 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/boost.m4 b/boost.m4 index 0540465..1f6f03a 100644 --- a/boost.m4 +++ b/boost.m4 @@ -117,6 +117,28 @@ BOOST_AUTO_TEST_CASE( t ) fi LIBS="${saveLIBS}" ;; + regex) + AC_MSG_CHECKING([Boost regex]) + AC_SUBST([BOOST_REGEX_LIB]) + saveLIBS="${LIBS}" + BOOST_REGEX_LIB="" + for l in boost_regex${BOOST_TOOLSET}-mt boost_regex${BOOST_TOOLSET}; do + LIBS="${saveLIBS} -l${l}" + AC_LINK_IFELSE([AC_LANG_PROGRAM([[ +#include +#include +]],[[ +int x = BOOST_VERSION; +]])],[ + BOOST_REGEX_LIB="-l${l}" + break],[]) + done + if test "${BOOST_REGEX_LIB}"; then + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + fi + ;; esac done fi -- 1.7.10.4