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