]> granicus.if.org Git - php/commitdiff
Small cleanup
authorGergely Madarász <gorgo@php.net>
Fri, 3 Sep 1999 16:37:00 +0000 (16:37 +0000)
committerGergely Madarász <gorgo@php.net>
Fri, 3 Sep 1999 16:37:00 +0000 (16:37 +0000)
ext/xml/config.m4

index d0ada5b18c5f977cf84343aad64d623d92744940..93b6ed424d24b00468797804f96a279a0774b61f 100644 (file)
@@ -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