xref: /PHP-7.2/ext/simplexml/config.w32 (revision becfdeb2)
1// $Id$
2// vim:ft=javascript
3
4ARG_WITH("simplexml", "Simple XML support", "yes");
5
6if (PHP_SIMPLEXML == "yes") {
7	if(PHP_LIBXML == "yes" &&
8		ADD_EXTENSION_DEP('simplexml', 'libxml') &&
9		CHECK_HEADER_ADD_INCLUDE("libxml/tree.h", "CFLAGS_SIMPLEXML", PHP_PHP_BUILD + "\\include\\libxml2")
10	) {
11		EXTENSION("simplexml", "simplexml.c sxe.c");
12		AC_DEFINE("HAVE_SIMPLEXML", 1, "Simple XML support");
13		if (!PHP_SIMPLEXML_SHARED) {
14			ADD_FLAG("CFLAGS_SIMPLEXML", "/D LIBXML_STATIC");
15		} else {
16			if (!CHECK_LIB("libxml2.lib", "simplexml")) {
17				WARNING("simplexml support can't be enabled, libxml is not found")
18			}
19		}
20
21		if (!ADD_EXTENSION_DEP('simplexml', 'spl', true)) {
22			MESSAGE("\tSPL support in simplexml disabled");
23		}
24		ADD_FLAG("CFLAGS_SIMPLEXML", "/D PHP_SIMPLEXML_EXPORTS ");
25		PHP_INSTALL_HEADERS("ext/simplexml/", "php_simplexml.h php_simplexml_exports.h");
26	} else {
27		PHP_SIMPLEXML = "no";
28		WARNING("simplexml not enabled; libraries and headers not found");
29	}
30}
31