xref: /php-src/ext/simplexml/config.m4 (revision f66feaec)
1PHP_ARG_ENABLE([simplexml],
2  [whether to enable SimpleXML support],
3  [AS_HELP_STRING([--disable-simplexml],
4    [Disable SimpleXML support])],
5  [yes])
6
7if test "$PHP_SIMPLEXML" != "no"; then
8  PHP_SETUP_LIBXML([SIMPLEXML_SHARED_LIBADD], [
9    AC_DEFINE([HAVE_SIMPLEXML], [1],
10      [Define to 1 if the PHP extension 'simplexml' is available.])
11    PHP_NEW_EXTENSION([simplexml], [simplexml.c], [$ext_shared])
12    PHP_ADD_EXTENSION_DEP(simplexml, libxml)
13    PHP_ADD_EXTENSION_DEP(simplexml, spl)
14    PHP_INSTALL_HEADERS([ext/simplexml], m4_normalize([
15      php_simplexml_exports.h
16      php_simplexml.h
17    ]))
18    PHP_SUBST([SIMPLEXML_SHARED_LIBADD])
19  ])
20fi
21