From: Adam Dickmeiss Date: Thu, 16 Jun 2011 08:00:21 +0000 (+0200) Subject: Fix test for Boost version / presence X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=4f4f4349139aad0bc00bd62c4ea4ab4239f34af4;p=m4-moved-to-github.git Fix test for Boost version / presence BOOST_GOT_VERSION might be "" on new GCCs. --- diff --git a/boost.m4 b/boost.m4 index bffcf4a..0540465 100644 --- a/boost.m4 +++ b/boost.m4 @@ -57,7 +57,8 @@ AC_DEFUN([ID_BOOST], version_is:BOOST_VERSION ]])]) BOOST_GOT_VERSION=`(eval "$ac_cpp conftest.$ac_ext") 2>&AS_MESSAGE_LOG_FD | $EGREP version_is 2>/dev/null | cut -d ":" -f2` - if test "$BOOST_GOT_VERSION" = "BOOST_VERSION"; then + if test -z "$BOOST_GOT_VERSION" -o \ + "$BOOST_GOT_VERSION" = "BOOST_VERSION"; then AC_MSG_RESULT([no]) AC_MSG_ERROR([Boost development libraries required]) fi