diff options
Diffstat (limited to 'ext/zlib')
-rw-r--r-- | ext/zlib/config0.m4 | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/zlib/config0.m4 b/ext/zlib/config0.m4 index 918849078f..ef44a63265 100644 --- a/ext/zlib/config0.m4 +++ b/ext/zlib/config0.m4 @@ -3,7 +3,7 @@ dnl $Id$ dnl PHP_ARG_WITH(zlib,for ZLIB support, -[ --with-zlib[=DIR] Include ZLIB support.]) +[ --with-zlib[=DIR] Include ZLIB support (requires zlib >= 1.0.9).]) PHP_ARG_WITH(zlib-dir,if the location of ZLIB install directory is defined, [ --with-zlib-dir=<DIR> Define the location of zlib install directory], no, no) @@ -36,7 +36,11 @@ if test "$PHP_ZLIB" != "no" -o "$PHP_ZLIB_DIR" != "no"; then AC_MSG_ERROR(Cannot find libz) fi - AC_DEFINE(HAVE_ZLIB,1,[ ]) + AC_CHECK_LIB(z, gzgets, [ + AC_DEFINE(HAVE_ZLIB,1,[ ]) + ],[ + AC_MSG_ERROR(ZLIB extension requires zlib >= 1.0.9) + ]) PHP_ADD_LIBPATH($ZLIB_DIR/lib, ZLIB_SHARED_LIBADD) |