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