summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/boost.m45
1 files changed, 3 insertions, 2 deletions
diff --git a/config/boost.m4 b/config/boost.m4
index 80a696881..da49c5ebe 100644
--- a/config/boost.m4
+++ b/config/boost.m4
@@ -72,7 +72,8 @@ dnl boost_cv_lib_version='1_37\r' for instance, which breaks
dnl everything else.
dnl Cannot use 'dnl' after [$4] because a trailing dnl may break AC_CACHE_CHECK
(eval "$ac_cpp conftest.$ac_ext") 2>&AS_MESSAGE_LOG_FD |
- tr -d '\r' |
+ grep -v "^#" |
+ tr -d '\r\n ' |
$SED -n -e "$1" >conftest.i 2>&1],
[$3],
[$4])
@@ -206,7 +207,7 @@ AC_LANG_POP([C++])dnl
AC_CACHE_CHECK([for Boost's header version],
[boost_cv_lib_version],
[m4_pattern_allow([^BOOST_LIB_VERSION$])dnl
- _BOOST_SED_CPP([/^boost-lib-version = /{s///;s/\"//g;p;q;}],
+ _BOOST_SED_CPP([/^boost-lib-version=/{s///;s/\"//g;p;q;}],
[#include <boost/version.hpp>
boost-lib-version = BOOST_LIB_VERSION],
[boost_cv_lib_version=`cat conftest.i`])])
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback