mirror of
https://github.com/php/php-src.git
synced 2024-12-13 03:44:17 +08:00
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2: Fix bug #65988: Zlib version check fails
This commit is contained in:
commit
523cf6e2e7
@ -40,7 +40,7 @@ if test "$PHP_ZLIB" != "no" || test "$PHP_ZLIB_DIR" != "no"; then
|
||||
esac
|
||||
|
||||
AC_MSG_CHECKING([for zlib version >= 1.2.0.4])
|
||||
ZLIB_VERSION=`$EGREP "define ZLIB_VERSION" $ZLIB_DIR/include/zlib.h | $SED -e 's/[[^0-9\.]]//g'`
|
||||
ZLIB_VERSION=`$EGREP "define ZLIB_VERSION" $ZLIB_INCDIR/zlib.h | $SED -e 's/[[^0-9\.]]//g'`
|
||||
AC_MSG_RESULT([$ZLIB_VERSION])
|
||||
if test `echo $ZLIB_VERSION | $SED -e 's/[[^0-9]]/ /g' | $AWK '{print $1*1000000 + $2*10000 + $3*100 + $4}'` -lt 1020004; then
|
||||
AC_MSG_ERROR([libz version greater or equal to 1.2.0.4 required])
|
||||
|
Loading…
Reference in New Issue
Block a user