mirror of
https://github.com/php/php-src.git
synced 2025-08-20 09:24:05 +02:00
test for dom extension
This commit is contained in:
parent
2fb978a773
commit
c09003a910
1 changed files with 12 additions and 8 deletions
|
@ -4,15 +4,19 @@
|
||||||
ARG_WITH("xsl", "xsl support", "no");
|
ARG_WITH("xsl", "xsl support", "no");
|
||||||
|
|
||||||
if (PHP_XSL != "no") {
|
if (PHP_XSL != "no") {
|
||||||
if (CHECK_LIB("libxslt.lib", "xsl", PHP_XSL) &&
|
if (PHP_DOM == "yes" && PHP_LIBXML == "yes") {
|
||||||
CHECK_LIB("libxml2.lib", "xsl") &&
|
if (CHECK_LIB("libxslt.lib", "xsl", PHP_XSL) &&
|
||||||
CHECK_HEADER_ADD_INCLUDE("libxslt\\xslt.h", "CFLAGS_XSL")) {
|
CHECK_LIB("libxml2.lib", "xsl") &&
|
||||||
EXTENSION("xsl", "php_xsl.c xsltprocessor.c", PHP_XSL_SHARED);
|
CHECK_HEADER_ADD_INCLUDE("libxslt\\xslt.h", "CFLAGS_XSL")) {
|
||||||
AC_DEFINE("HAVE_XSL", 1, "Define if xsl extension is enabled");
|
EXTENSION("xsl", "php_xsl.c xsltprocessor.c", PHP_XSL_SHARED);
|
||||||
if (! PHP_XSL_SHARED) {
|
AC_DEFINE("HAVE_XSL", 1, "Define if xsl extension is enabled");
|
||||||
ADD_FLAG("CFLAGS_XSL", "/D DOM_EXPORTS ");
|
if (! PHP_XSL_SHARED) {
|
||||||
|
ADD_FLAG("CFLAGS_XSL", "/D DOM_EXPORTS ");
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
WARNING("xsl not enabled; libraries and headers not found");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
WARNING("xsl not enabled; libraries and headers not found");
|
WARNING("xsl not enabled; DOM extension required");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue