diff options
author | Pavlo Yatsukhnenko <yatsukhnenko@gmail.com> | 2019-03-23 17:16:21 +0300 |
---|---|---|
committer | Pavlo Yatsukhnenko <yatsukhnenko@gmail.com> | 2019-03-23 17:55:43 +0300 |
commit | 823978b4e337bff0b2d3dd7b01f1cb643de4fcf7 (patch) | |
tree | a8e137ba1be51de6d42ee5b292a674a47e3e4de9 /config.m4 | |
parent | aff75ffdb38821109259f578f33ceb7dd243e0be (diff) |
msgpack 2.0.3 or greater required
Diffstat (limited to 'config.m4')
-rw-r--r-- | config.m4 | 23 |
1 files changed, 14 insertions, 9 deletions
@@ -133,15 +133,20 @@ dnl Check for msgpack AC_MSG_CHECKING([for redis msgpack support]) if test "$PHP_REDIS_MSGPACK" != "no"; then - 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" - ifdef([PHP_ADD_EXTENSION_DEP], - [ - PHP_ADD_EXTENSION_DEP(redis, msgpack) - ]) - PHP_ADD_INCLUDE($MSGPACK_EXT_DIR) + msgpack_version=`grep -o 'PHP_MSGPACK_VERSION "[0-9\.]\+"' $msgpack_inc_path/ext/msgpack/php_msgpack.h | awk '{print $2}' | tr -d '"'` + if expr $msgpack_version "<" "2.0.3" > /dev/null; then + AC_MSG_ERROR([msgpack 2.0.3 or greater required]) + else + 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" + ifdef([PHP_ADD_EXTENSION_DEP], + [ + PHP_ADD_EXTENSION_DEP(redis, msgpack) + ]) + PHP_ADD_INCLUDE($MSGPACK_EXT_DIR) + fi else MSGPACK_INCLUDES="" AC_MSG_RESULT([disabled]) |