xref: /PHP-7.3/ext/libxml/config0.m4 (revision 8d3f8ca1)
1dnl config.m4 for extension libxml
2
3PHP_ARG_ENABLE(libxml, whether to enable LIBXML support,
4[  --disable-libxml        Disable LIBXML support], yes)
5
6if test -z "$PHP_LIBXML_DIR"; then
7  PHP_ARG_WITH(libxml-dir, libxml2 install dir,
8  [  --with-libxml-dir[=DIR]   LIBXML: libxml2 install prefix], no, no)
9fi
10
11if test "$PHP_LIBXML" != "no"; then
12
13  dnl This extension can not be build as shared
14  ext_shared=no
15
16  PHP_SETUP_LIBXML(LIBXML_SHARED_LIBADD, [
17    AC_DEFINE(HAVE_LIBXML,1,[ ])
18    PHP_NEW_EXTENSION(libxml, [libxml.c], $ext_shared,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
19    PHP_INSTALL_HEADERS([ext/libxml/php_libxml.h])
20  ], [
21    AC_MSG_ERROR([libxml2 not found. Please check your libxml2 installation.])
22  ])
23fi
24