summaryrefslogtreecommitdiff
path: root/ext/xsl
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2005-04-27 13:12:55 +0000
committerfoobar <sniper@php.net>2005-04-27 13:12:55 +0000
commit39bcbfc3064f8a393d5ff7d951d303dedfe6a00d (patch)
tree26e554d302221d1f85232daa14cfcb715af2f2c8 /ext/xsl
parentaba79c268c2cd2b5fd5df3277c463121913433fb (diff)
downloadphp-git-39bcbfc3064f8a393d5ff7d951d303dedfe6a00d.tar.gz
- Made the libxml related stuff to error out if someone does --disable-all
or --disable-libxml. Better than silently just leave the ext out..
Diffstat (limited to 'ext/xsl')
-rw-r--r--ext/xsl/config.m412
1 files changed, 8 insertions, 4 deletions
diff --git a/ext/xsl/config.m4 b/ext/xsl/config.m4
index b1cb844882..abb6df2686 100644
--- a/ext/xsl/config.m4
+++ b/ext/xsl/config.m4
@@ -6,12 +6,16 @@ PHP_ARG_WITH(xsl, for XSL support,
[ --with-xsl[=DIR] Include new XSL support (requires libxslt >= 1.0.18).
DIR is the libxslt install directory.])
-if test "$PHP_XSL" != "no" -a "$PHP_DOM" = "no"; then
- AC_MSG_ERROR([XSL extension requires DOM extension, add --enable-dom.])
-fi
-
if test "$PHP_XSL" != "no"; then
+ if test "$PHP_LIBXML" = "no"; then
+ AC_MSG_ERROR([XSL extension requires LIBXML extension, add --enable-libxml])
+ fi
+
+ if test "$PHP_DOM" = "no"; then
+ AC_MSG_ERROR([XSL extension requires DOM extension, add --enable-dom])
+ fi
+
for i in $PHP_XSL /usr/local /usr; do
if test -x "$i/bin/xslt-config"; then
XSLT_CONFIG=$i/bin/xslt-config