]> granicus.if.org Git - php/commitdiff
test for dom extension
authorRob Richards <rrichards@php.net>
Thu, 4 Dec 2003 13:32:22 +0000 (13:32 +0000)
committerRob Richards <rrichards@php.net>
Thu, 4 Dec 2003 13:32:22 +0000 (13:32 +0000)
ext/xsl/config.w32

index 70fd1a129b7385cf1a8c7a77eccc746a007767b8..f56d0f482fb6934a9a4940da242dcfe56837879e 100644 (file)
@@ -4,15 +4,19 @@
 ARG_WITH("xsl", "xsl support", "no");
 
 if (PHP_XSL != "no") {
-       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 ");
+       if (PHP_DOM == "yes" && PHP_LIBXML == "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");
                }
        } else {
-               WARNING("xsl not enabled; libraries and headers not found");
+               WARNING("xsl not enabled; DOM extension required");
        }
 }