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