xref: /PHP-5.4/ext/libxml/config.w32 (revision aea6771d)
1// $Id$
2// vim:ft=javascript
3
4ARG_WITH("libxml", "LibXML support", "yes");
5
6if (PHP_LIBXML == "yes") {
7	if (CHECK_LIB("libxml2_a_dll.lib;libxml2_a.lib", "libxml") &&
8			CHECK_LIB("libiconv_a.lib;iconv_a.lib;libiconv.lib;iconv.lib", "libxml") &&
9			CHECK_HEADER_ADD_INCLUDE("libxml/parser.h", "CFLAGS_LIBXML") &&
10			ADD_EXTENSION_DEP('libxml', 'iconv')) {
11
12		EXTENSION("libxml", "libxml.c", false /* never shared */);
13		AC_DEFINE("HAVE_LIBXML", 1, "LibXML support");
14		ADD_FLAG("CFLAGS_LIBXML", "/D LIBXML_STATIC /D LIBXML_STATIC_FOR_DLL /D HAVE_WIN32_THREADS ");
15		if (!PHP_LIBXML_SHARED) {
16			ADD_DEF_FILE("ext\\libxml\\php_libxml2.def");
17		}
18		PHP_INSTALL_HEADERS("ext/libxml/", "php_libxml.h");
19	} else {
20		WARNING("libxml support can't be enabled, iconv or libxml are missing")
21		PHP_LIBXML = "no"
22	}
23}
24