diff options
Diffstat (limited to 'ext/xml/config.m4')
| -rw-r--r-- | ext/xml/config.m4 | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ext/xml/config.m4 b/ext/xml/config.m4 new file mode 100644 index 0000000000..c4b871107d --- /dev/null +++ b/ext/xml/config.m4 @@ -0,0 +1,24 @@ +dnl $Id$ + +AC_MSG_CHECKING(for XML support) +AC_ARG_WITH(xml, +[ --with-xml Include XML support],[ + if test "$withval" != "no"; then + if test "$withval" = "yes"; then + XML_LIBS="-lexpat" + XML_INCLUDE="" + else + XML_LIBS="-L$withval/lib -lexpat" + XML_INCLUDE="-I$withval/include" + fi + AC_DEFINE(HAVE_LIBEXPAT, 1) + AC_MSG_RESULT(yes) + PHP_EXTENSION(xml) + EXTRA_LIBS="$EXTRA_LIBS $XML_LIBS" + INCLUDES="$INCLUDES $XML_INCLUDE" + else + AC_MSG_RESULT(no) + fi +],[ + AC_MSG_RESULT(no) +]) |
