1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Autotools: Remove dependency related errors (#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.
This commit is contained in:
Peter Kokot
2024-08-11 17:39:31 +02:00
committed by GitHub
parent 5d1db3dd56
commit 687eb9125a
2 changed files with 0 additions and 14 deletions

View File

@@ -5,11 +5,6 @@ PHP_ARG_ENABLE([dom],
[yes])
if test "$PHP_DOM" != "no"; then
if test "$PHP_LIBXML" = "no"; then
AC_MSG_ERROR([DOM extension requires LIBXML extension, add --with-libxml])
fi
PHP_SETUP_LIBXML([DOM_SHARED_LIBADD], [
AC_DEFINE([HAVE_DOM], [1],
[Define to 1 if the PHP extension 'dom' is available.])

View File

@@ -4,15 +4,6 @@ PHP_ARG_WITH([xsl],
[Build with XSL support])])
if test "$PHP_XSL" != "no"; then
if test "$PHP_LIBXML" = "no"; then
AC_MSG_ERROR([XSL extension requires LIBXML extension, add --with-libxml])
fi
if test "$PHP_DOM" = "no"; then
AC_MSG_ERROR([XSL extension requires DOM extension, add --enable-dom])
fi
PKG_CHECK_MODULES([XSL], [libxslt >= 1.1.0])
PHP_EVAL_INCLINE([$XSL_CFLAGS])