summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGergely Madarász <gorgo@php.net>1999-09-03 16:37:00 +0000
committerGergely Madarász <gorgo@php.net>1999-09-03 16:37:00 +0000
commit9a17e7b6f5a6c4d355083b21d884abf7511ed990 (patch)
tree76a0a7d0f728b8281b19941882b3038efa4d89cd
parentd447d17602a8e9a6db257f09d356057eec875851 (diff)
downloadphp-git-9a17e7b6f5a6c4d355083b21d884abf7511ed990.tar.gz
Small cleanup
-rw-r--r--ext/xml/config.m49
1 files changed, 7 insertions, 2 deletions
diff --git a/ext/xml/config.m4 b/ext/xml/config.m4
index d0ada5b18c..93b6ed424d 100644
--- a/ext/xml/config.m4
+++ b/ext/xml/config.m4
@@ -27,10 +27,15 @@ AC_ARG_WITH(xml,
AC_MSG_RESULT([yes (static)])
fi
if test "$withval" = "yes"; then
- test -d /usr/include/xmltok && XML_INCLUDE="/usr/include/xmltok"
test -d /usr/include/xml && XML_INCLUDE="/usr/include/xml"
test -d /usr/local/include/xml && XML_INCLUDE="/usr/local/include/xml"
- AC_CHECK_LIB(expat, main, XML_LIBS="-lexpat", XML_LIBS="-lxmlparse -lxmltok")
+ test -d /usr/include/xmltok && XML_INCLUDE="/usr/include/xmltok"
+ AC_CHECK_LIB(expat, main, XML_LIBS="-lexpat",
+ AC_CHECK_LIB(xmltok, main,
+ AC_CHECK_LIB(xmlparse, main, XML_LIBS="-lxmlparse -lxmltok",
+ AC_MSG_ERROR(No expat library found for the xml module),"-lxmltok"),
+ AC_MSG_ERROR(No expart library found for the xml module))
+ )
else
XML_LIBS="-L$withval/lib -lexpat"
if test -d $withval/include/xml; then