diff options
author | michael-grunder <michael.grunder@gmail.com> | 2019-06-21 21:19:19 +0300 |
---|---|---|
committer | Michael Grunder <michael.grunder@gmail.com> | 2019-06-21 21:55:13 +0300 |
commit | aa110feb8206aa514889d588c03b71f44ec70b76 (patch) | |
tree | 7bc1afe606c3dca3749f1b8f04f4fcc7b6558db9 /config.m4 | |
parent | 6973478c3214208fe3fdac5aa088cacd802011fc (diff) |
Cleanup version check output
Diffstat (limited to 'config.m4')
-rw-r--r-- | config.m4 | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -135,16 +135,15 @@ if test "$PHP_REDIS" != "no"; then fi fi - AC_MSG_CHECKING([for redis msgpack support]) if test "$PHP_REDIS_MSGPACK" != "no"; then - AC_MSG_CHECKING([for php_msgpack version >= 2.0.3]) + AC_MSG_CHECKING([for php msgpack version >= 2.0.3]) MSGPACK_VERSION=`$EGREP "define PHP_MSGPACK_VERSION" $msgpack_inc_path/ext/msgpack/php_msgpack.h | $SED -e 's/[[^0-9\.]]//g'` - AC_MSG_RESULT([$MSGPACK_VERSION]) if test `echo $MSGPACK_VERSION | $SED -e 's/[[^0-9]]/ /g' | $AWK '{print $1*1000 + $2*100 + $3*10 + $4}'` -lt 2030; then - AC_MSG_ERROR([php msgpack version >= 2.0.3 required]) + AC_MSG_ERROR([version $MSGPACK_VERSION is too old]) + else + AC_MSG_RESULT([yes]) fi - AC_MSG_RESULT([enabled]) AC_DEFINE(HAVE_REDIS_MSGPACK,1,[Whether redis msgpack serializer is enabled]) MSGPACK_INCLUDES="-I$msgpack_inc_path" MSGPACK_EXT_DIR="$msgpack_inc_path/ext" @@ -155,7 +154,6 @@ if test "$PHP_REDIS" != "no"; then PHP_ADD_INCLUDE($MSGPACK_EXT_DIR) else MSGPACK_INCLUDES="" - AC_MSG_RESULT([disabled]) fi if test "$PHP_REDIS_LZF" != "no"; then |