update config.m4; allow disabling idna; add idnkit
[m6w6/ext-http] / autoconf / pecl / zlib.m4
diff --git a/autoconf/pecl/zlib.m4 b/autoconf/pecl/zlib.m4
new file mode 100644 (file)
index 0000000..d3a04c6
--- /dev/null
@@ -0,0 +1,12 @@
+dnl
+dnl PECL_CHECK_ZLIB(
+dnl
+dnl Calls PECL_CHECK_CUSTOM(zlib ...) for its tests.
+dnl Call PECL_CHECK_DONE(zlib[, success]) yourself when you're done
+dnl with any subtests. This is IMPORTANT!
+dnl
+AC_DEFUN([PECL_CHECK_ZLIB], [
+       PECL_CHECK_CUSTOM(zlib, ["$1" "$PHP_ZLIB_DIR" "$PHP_ZLIB"], zlib.h, z,
+               [$($EGREP "define ZLIB_VERSION" "$path/include/zlib.h" | $SED -e 's/@<:@^0-9\.@:>@//g')])
+       ifelse([$2],,,[PECL_HAVE_VERSION(zlib, $2)])
+])
\ No newline at end of file