xref: /PHP-7.2/ext/zlib/config.w32 (revision 60a69dae)
1// $Id$
2// vim:ft=javascript
3
4ARG_ENABLE("zlib", "ZLIB support", "yes");
5
6if (PHP_ZLIB == "yes") {
7	if (CHECK_LIB("zlib_a.lib;zlib.lib", "zlib", PHP_ZLIB) &&
8		CHECK_HEADER_ADD_INCLUDE("zlib.h", "CFLAGS", "..\\zlib;" + php_usual_include_suspects)) {
9
10		EXTENSION("zlib", "zlib.c zlib_fopen_wrapper.c zlib_filter.c", PHP_ZLIB_SHARED, "/D ZLIB_EXPORTS /DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
11		AC_DEFINE("HAVE_ZLIB", 1, "ZLIB support");
12
13		if (!PHP_ZLIB_SHARED) {
14			ADD_DEF_FILE("ext\\zlib\\php_zlib.def");
15		}
16	} else {
17		WARNING("zlib support can't be enabled, zlib is missing")
18		PHP_ZLIB = "no"
19	}
20}
21