xref: /PHP-8.0/ext/xml/config.w32 (revision 8d3f8ca1)
1// vim:ft=javascript
2
3ARG_WITH("xml", "XML support", "yes");
4
5if (PHP_XML == "yes") {
6	if (PHP_LIBXML == "yes" &&
7		ADD_EXTENSION_DEP('xml', 'libxml') &&
8		CHECK_HEADER_ADD_INCLUDE("libxml/parser.h", "CFLAGS_XML", PHP_PHP_BUILD + "\\include\\libxml2") &&
9		CHECK_HEADER_ADD_INCLUDE("libxml/tree.h", "CFLAGS_XML", PHP_PHP_BUILD + "\\include\\libxml2")
10	) {
11		EXTENSION("xml", "xml.c compat.c", null, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
12		AC_DEFINE("HAVE_XML", 1, "XML support");
13		if (!PHP_XML_SHARED) {
14			ADD_FLAG("CFLAGS_XML", "/D LIBXML_STATIC ");
15		}
16		PHP_INSTALL_HEADERS("", "ext/xml");
17	} else {
18		WARNING("xml support can't be enabled, libraries or headers are missing")
19		PHP_ZLIB = "no"
20	}
21}
22