xref: /php-src/ext/zlib/config0.m4 (revision f66feaec)
1PHP_ARG_WITH([zlib],
2  [for ZLIB support],
3  [AS_HELP_STRING([--with-zlib],
4    [Include ZLIB support (requires zlib library)])])
5
6if test "$PHP_ZLIB" != "no"; then
7  PHP_SETUP_ZLIB([ZLIB_SHARED_LIBADD], [dnl
8    AC_DEFINE([HAVE_ZLIB], [1],
9      [Define to 1 if the PHP extension 'zlib' is available.])
10    PHP_NEW_EXTENSION([zlib],
11      [zlib.c zlib_fopen_wrapper.c zlib_filter.c],
12      [$ext_shared],,
13      [-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1])
14    PHP_SUBST([ZLIB_SHARED_LIBADD])])
15fi
16