arabica/m4/has_parser.m4

24 lines
889 B
Text
Raw Normal View History

2006-09-12 23:21:48 +02:00
AC_DEFUN([ARABICA_HAS_XML_PARSER],
[
if test "$HAVE_EXPAT" = "1"; then
2007-07-19 19:04:18 +02:00
AC_DEFINE([USE_EXPAT], ,[define to build against Expat])
AC_SUBST([PARSER_HEADERS], $EXPAT_CFLAGS)
AC_SUBST([PARSER_LIBS], $EXPAT_LIBS)
elif test "$HAVE_LIBXML2" = "1"; then
2006-09-12 23:21:48 +02:00
AC_DEFINE(USE_LIBXML2, ,[define to build against LibXML2])
2007-07-19 19:04:18 +02:00
AC_SUBST([PARSER_HEADERS], $LIBXML2_CFLAGS)
AC_SUBST([PARSER_LIBS], $LIBXML2_LIBS)
elif test "$HAVE_XERCES" = "1"; then
2006-09-12 23:21:48 +02:00
AC_DEFINE(USE_XERCES, ,[define to build against Xerces])
2007-07-19 19:04:18 +02:00
AC_SUBST([PARSER_HEADERS], $XERCES_CFLAGS)
AC_SUBST([PARSER_LIBS], $XERCES_LIBS)
elif test "$USE_GARDEN" = "1"; then
AC_DEFINE(USE_GARDEN, ,[define to build using Garden])
2007-07-19 19:04:18 +02:00
AC_SUBST([PARSER_HEADERS], [])
AC_SUBST([PARSER_LIBS], [])
else
AC_MSG_ERROR([[Cannot find an XML parser library. Arabica needs one of Expat, LibXML2 or Xerces]])
2006-09-12 23:21:48 +02:00
fi
])