Skip to content

Commit 687eb91

Browse files
authored
Autotools: Remove dependency related errors (php#15344)
- ext/dom - ext/xsl These use the PHP_ADD_EXTENSION_DEP macro which throws error when one of the dependencies is disabled or not configured properly. For example: ./configure --disable-all --enable-dom or ./configure --disable-all --with-xsl Will throw default PHP dependency error info, when using PHP_ADD_EXTENSION_DEP. These errors were once done when PHP_ADD_EXTENSION_DEP macro wasn't yet available.
1 parent 5d1db3d commit 687eb91

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

ext/dom/config.m4

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ PHP_ARG_ENABLE([dom],
55
[yes])
66

77
if test "$PHP_DOM" != "no"; then
8-
9-
if test "$PHP_LIBXML" = "no"; then
10-
AC_MSG_ERROR([DOM extension requires LIBXML extension, add --with-libxml])
11-
fi
12-
138
PHP_SETUP_LIBXML([DOM_SHARED_LIBADD], [
149
AC_DEFINE([HAVE_DOM], [1],
1510
[Define to 1 if the PHP extension 'dom' is available.])

ext/xsl/config.m4

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,6 @@ PHP_ARG_WITH([xsl],
44
[Build with XSL support])])
55

66
if test "$PHP_XSL" != "no"; then
7-
8-
if test "$PHP_LIBXML" = "no"; then
9-
AC_MSG_ERROR([XSL extension requires LIBXML extension, add --with-libxml])
10-
fi
11-
12-
if test "$PHP_DOM" = "no"; then
13-
AC_MSG_ERROR([XSL extension requires DOM extension, add --enable-dom])
14-
fi
15-
167
PKG_CHECK_MODULES([XSL], [libxslt >= 1.1.0])
178

189
PHP_EVAL_INCLINE([$XSL_CFLAGS])

0 commit comments

Comments
 (0)