summaryrefslogtreecommitdiff
path: root/ext/xmlwriter/config.w32
blob: c18b2c13fd5e37464bdcf2ed9f2500b673371de7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// $Id$
// vim:ft=javascript

ARG_WITH("xmlwriter", "XMLWriter support", "no");

if (PHP_XMLWRITER == "yes" && PHP_LIBXML == "yes") {
	if (CHECK_HEADER_ADD_INCLUDE('libxml/xmlwriter.h', 'CFLAGS_XMLWRITER', PHP_XMLWRITER)) {
		EXTENSION("xmlwriter", "php_xmlwriter.c");
		AC_DEFINE("HAVE_XMLWRITER", 1, "XMLWriter support");
		if (!PHP_XMLWRITER_SHARED) {
			ADD_FLAG("CFLAGS_XMLWRITER", "/D LIBXML_STATIC");
		}
		ADD_EXTENSION_DEP('xmlwriter', 'libxml');
	} else {
		WARNING('Could not find xmlwriter.h');
	}
}