summaryrefslogtreecommitdiff
path: root/ext/zlib
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2002-10-07 21:13:46 +0000
committerRasmus Lerdorf <rasmus@php.net>2002-10-07 21:13:46 +0000
commit74286bd28dd977af556a8f1c2e2befea25b19156 (patch)
tree9b666e8e48c75a6e2d3d10eefcd9e18023d18bd2 /ext/zlib
parentd6775c5c3f3bf1288360ef24834f377bdf9da60d (diff)
downloadphp-git-74286bd28dd977af556a8f1c2e2befea25b19156.tar.gz
Argh! Revert. I'm on drugs. Was linking in a newer libz when I checked
this.
Diffstat (limited to 'ext/zlib')
-rw-r--r--ext/zlib/config0.m48
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)