xref: /PHP-7.1/ext/dom/config.w32 (revision becfdeb2)
1// $Id$
2// vim:ft=javascript
3
4ARG_WITH("dom", "DOM support", "yes");
5
6if (PHP_DOM == "yes") {
7	if (PHP_LIBXML == "yes" &&
8		ADD_EXTENSION_DEP('dom', 'libxml') &&
9		CHECK_HEADER_ADD_INCLUDE("libxml/parser.h", "CFLAGS_DOM", PHP_PHP_BUILD + "\\include\\libxml2")
10	) {
11		EXTENSION("dom", "php_dom.c attr.c document.c domerrorhandler.c \
12			domstringlist.c domexception.c namelist.c processinginstruction.c \
13			cdatasection.c documentfragment.c domimplementation.c element.c \
14			node.c string_extend.c characterdata.c documenttype.c \
15			domimplementationlist.c entity.c nodelist.c text.c comment.c \
16			domconfiguration.c domimplementationsource.c entityreference.c \
17			notation.c xpath.c dom_iterators.c typeinfo.c domerror.c \
18			domlocator.c namednodemap.c userdatahandler.c");
19
20		AC_DEFINE("HAVE_DOM", 1, "DOM support");
21
22		if (!PHP_DOM_SHARED) {
23			ADD_FLAG("CFLAGS_DOM", "/D LIBXML_STATIC ");
24		} else {
25			if (!CHECK_LIB("libxml2.lib", "dom")) {
26				WARNING("dom support can't be enabled, libxml is not found")
27			}
28		}
29		PHP_INSTALL_HEADERS("ext/dom", "xml_common.h");
30	} else {
31		WARNING("dom support can't be enabled, libxml is not enabled")
32		PHP_DOM = "no"
33	}
34}
35