diff options
| author | Rob Richards <rrichards@php.net> | 2003-12-04 13:32:22 +0000 |
|---|---|---|
| committer | Rob Richards <rrichards@php.net> | 2003-12-04 13:32:22 +0000 |
| commit | c09003a91079619e51574df129cd8000fc3d58a9 (patch) | |
| tree | a7bafbb28bba61d450b1989d9c530bfb1d9239d0 | |
| parent | 2fb978a77389e2b2ec961a831ddba4f5f12bf70b (diff) | |
| download | php-git-c09003a91079619e51574df129cd8000fc3d58a9.tar.gz | |
test for dom extension
| -rw-r--r-- | ext/xsl/config.w32 | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/ext/xsl/config.w32 b/ext/xsl/config.w32 index 70fd1a129b..f56d0f482f 100644 --- a/ext/xsl/config.w32 +++ b/ext/xsl/config.w32 @@ -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"); } } |
