xref: /php-src/ext/xsl/config.m4 (revision 2cbde5ae)
1PHP_ARG_WITH([xsl],
2  [whether to build with XSL support],
3  [AS_HELP_STRING([--with-xsl],
4    [Build with XSL support])])
5
6if test "$PHP_XSL" != "no"; then
7  PKG_CHECK_MODULES([XSL], [libxslt >= 1.1.0])
8
9  PHP_EVAL_INCLINE([$XSL_CFLAGS])
10  PHP_EVAL_LIBLINE([$XSL_LIBS], [XSL_SHARED_LIBADD])
11
12  PKG_CHECK_MODULES([EXSLT], [libexslt],
13  [
14    PHP_EVAL_INCLINE([$EXSLT_CFLAGS])
15    PHP_EVAL_LIBLINE([$EXSLT_LIBS], [XSL_SHARED_LIBADD])
16    AC_DEFINE([HAVE_XSL_EXSLT], [1],
17      [Define to 1 if the system has the EXSLT extension library for XSLT.])
18  ], [:])
19
20  AC_DEFINE([HAVE_XSL], [1],
21    [Define to 1 if the PHP extension 'xsl' is available.])
22  PHP_NEW_EXTENSION([xsl], [php_xsl.c xsltprocessor.c], [$ext_shared])
23  PHP_SUBST([XSL_SHARED_LIBADD])
24  PHP_ADD_EXTENSION_DEP(xsl, libxml)
25  PHP_ADD_EXTENSION_DEP(xsl, dom)
26fi
27