Check for an expat function that won't be there if expat is too old.
authorNoah Levitt <nlevitt@gmail.com>
Thu, 1 May 2003 16:15:28 +0000 (16:15 +0000)
committerNoah Levitt <nlevitt@gmail.com>
Thu, 1 May 2003 16:15:28 +0000 (16:15 +0000)
configure.in

index 3453bae..9093e7a 100644 (file)
@@ -190,7 +190,7 @@ no)
                expat=no
                ;;
        yes)
-               AC_CHECK_FUNCS(XML_ParserCreate)
+               AC_CHECK_FUNCS(XML_SetDoctypeDeclHandler)
                case "$ac_cv_func_XML_ParserCreate" in
                no)
                        expat=no
@@ -213,7 +213,7 @@ AC_SUBST(EXPAT_CFLAGS)
        
 case "$expat" in
 no)
-       AC_MSG_ERROR([cannot find expat library])
+       AC_MSG_ERROR([Cannot find usable expat library. This could mean that your version is too old.])
        ;;
 esac