2006-09-20 13:16:17 +02:00
|
|
|
|
2006-09-12 23:21:48 +02:00
|
|
|
AC_DEFUN([ARABICA_HAS_XML_PARSER],
|
|
|
|
[
|
2007-08-29 01:33:35 +02:00
|
|
|
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)
|
2007-08-29 01:33:35 +02:00
|
|
|
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)
|
2007-08-29 01:33:35 +02:00
|
|
|
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)
|
2007-08-29 01:33:35 +02:00
|
|
|
elif test "$USE_GARDEN" = "1"; then
|
2006-09-20 13:16:17 +02:00
|
|
|
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
|
|
|
|
])
|