prepare 3.1.0
[m6w6/ext-http] / autoconf / pecl / zlib.m4
1 dnl
2 dnl PECL_CHECK_ZLIB(
3 dnl
4 dnl Calls PECL_CHECK_CUSTOM(zlib ...) for its tests.
5 dnl Call PECL_CHECK_DONE(zlib[, success]) yourself when you're done
6 dnl with any subtests. This is IMPORTANT!
7 dnl
8 AC_DEFUN([PECL_CHECK_ZLIB], [
9 PECL_CHECK_CUSTOM(zlib, ["$1" "$PHP_ZLIB_DIR" "$PHP_ZLIB"], zlib.h, z,
10 [$($EGREP "define ZLIB_VERSION" "$path/include/zlib.h" | $SED -e 's/@<:@^0-9\.@:>@//g')])
11 ifelse([$2],,,[PECL_HAVE_VERSION(zlib, $2)])
12 ])