]> granicus.if.org Git - php/commitdiff
Add xsl config for new win build
authorRob Richards <rrichards@php.net>
Thu, 4 Dec 2003 12:37:04 +0000 (12:37 +0000)
committerRob Richards <rrichards@php.net>
Thu, 4 Dec 2003 12:37:04 +0000 (12:37 +0000)
ext/xsl/config.w32 [new file with mode: 0644]

diff --git a/ext/xsl/config.w32 b/ext/xsl/config.w32
new file mode 100644 (file)
index 0000000..4aed6e6
--- /dev/null
@@ -0,0 +1,18 @@
+// $Id$
+// vim: ft=javascript
+
+ARG_WITH("xsl", "xsl support", "no");
+
+if (PHP_XSL == "yes") {
+       if (CHECK_LIB("libxslt.lib", "xsl", PHP_XSL) && 
+                       CHECK_LIB("libxml2.lib", "xsl") &&
+                       CHECK_HEADER_ADD_INCLUDE("libxslt\\xslt.h", "CFLAGS_XSL")) {
+               EXTENSION("xsl", "php_xsl.c xsltprocessor.c", PHP_XSL_SHARED);
+               AC_DEFINE("HAVE_XSL", 1, "Define if xsl extension is enabled");
+               if (! PHP_XSL_SHARED) {
+                       ADD_FLAG("CFLAGS_XSL", "/D DOM_EXPORTS ");
+               }
+       } else {
+               WARNING("xsl not enabled; libraries and headers not found");
+       }
+}