dnl Zebra, Index Data ApS, 1995-2006
-dnl $Id: configure.ac,v 1.35 2006-11-03 23:17:08 adam Exp $
+dnl $Id: configure.ac,v 1.37 2006-11-06 20:48:42 adam Exp $
dnl
AC_PREREQ(2.59)
-AC_INIT([idzebra],[2.0.4],[adam@indexdata.dk])
+AC_INIT([idzebra],[2.0.5],[adam@indexdata.dk])
AC_CONFIG_SRCDIR(configure.ac)
AC_CONFIG_AUX_DIR(config)
AM_INIT_AUTOMAKE([1.8])
fi
])
-ZEBRA_MODULE(text,static, [ --enable-mod-text Text filter])
-ZEBRA_MODULE(grs-sgml,static,[ --enable-mod-grs-sgml Simple SGML/XML filter])
+AC_DEFINE(IDZEBRA_STATIC_GRS_SGML)
+ZEBRA_MODULE(text,shared, [ --enable-mod-text Text filter])
ZEBRA_MODULE(grs-regx,shared,[ --enable-mod-grs-regx REGX/TCL filter])
ZEBRA_MODULE(grs-marc,shared,[ --enable-mod-grs-marc MARC filter])
ZEBRA_MODULE(safari,shared, [ --enable-mod-safari Safari filter (DBC)])
oldCPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $YAZINC"
AC_PREPROC_IFELSE(
- [AC_LANG_PROGRAM([[#include <stdio.h>]],
- [[
-#if YAZ_HAVE_XSLT
+ [AC_LANG_PROGRAM([[
+#if YAZ_HAVE_XML2
+#include <libxml/xmlversion.h>
+#include <libxml/parser.h>
+#include <libxml/tree.h>
+#include <libxml/xmlIO.h>
+#include <libxslt/transform.h>
+#include <libxslt/xsltutils.h>
#else
-#error no xslt
+#error Libxml2 not available
+#endif
+]],[[
+#if LIBXML_VERSION < 20615
+#error Libxml2 version < 2.6.15. xmlreader not reliable/present
#endif
]])],
[def="shared"],