xref: /PHP-8.3/ext/bz2/config.w32 (revision 8d3f8ca1)
1// vim:ft=javascript
2
3ARG_WITH("bz2", "BZip2", "no");
4
5if (PHP_BZ2 != "no") {
6	if (CHECK_LIB("libbz2_a.lib;libbz2.lib", "bz2", PHP_BZ2) &&
7			CHECK_HEADER_ADD_INCLUDE("bzlib.h", "CFLAGS_BZ2")) {
8		EXTENSION("bz2", "bz2.c bz2_filter.c");
9		AC_DEFINE('HAVE_BZ2', 1, 'Have BZ2 library');
10		// BZ2 extension does this slightly differently from others
11		if (PHP_BZ2_SHARED) {
12			ADD_FLAG("CFLAGS_BZ2", "/D PHP_BZ2_EXPORTS ");
13		}
14	} else {
15		WARNING("bz2 not enabled; libraries and headers not found");
16	}
17}
18