diff options
author | Akira TAGOH <akira@tagoh.org> | 2012-07-03 19:56:56 +0900 |
---|---|---|
committer | Akira TAGOH <akira@tagoh.org> | 2012-07-05 16:25:05 +0900 |
commit | 5b2d065ef87514ca32af325f793ee37fabd6af19 (patch) | |
tree | 1430c55577daee06efeafe8d40f6f9df89d46585 | |
parent | 9c377192bf7d59336dbe4603d73449c7090c11ca (diff) |
Bug 34266 - configs silently ignored if libxml2 doesn't support SAX1 interface
Check if libxml2 has built with --with-sax1
-rw-r--r-- | configure.ac | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 644fc1a5..140cb70a 100644 --- a/configure.ac +++ b/configure.ac @@ -353,6 +353,18 @@ if test "$enable_libxml2" = "yes"; then AC_SUBST(LIBXML2_CFLAGS) AC_SUBST(LIBXML2_LIBS) + + fc_saved_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $LIBXML2_CFLAGS" + AC_MSG_CHECKING([SAX1 support in libxml2]) + AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ + #include <libxml/xmlversion.h> + #if !defined(LIBXML_SAX1_ENABLED) + # include "error: No SAX1 support in libxml2" + #endif + ]])], [AC_MSG_RESULT([found])], [AC_MSG_ERROR([ +*** SAX1 support in libxml2 is required. enable it or use expat instead.])]) + CFLAGS="$fc_saved_CFLAGS" fi # |