added 2 new configure option: --with-reader --with-sax1 to allow removing
* Makefile.am SAX.c SAX2.c configure.in globals.c parser.c
parserInternals.c testReader.c testSAX.c xmlIO.c xmllint.c
xmlreader.c example/gjobread.c include/libxml/xmlversion.h.in:
added 2 new configure option: --with-reader --with-sax1
to allow removing the reader or non-xmlReadxxx() interfaces.
Daniel
diff --git a/example/gjobread.c b/example/gjobread.c
index a447959..b192bf4 100644
--- a/example/gjobread.c
+++ b/example/gjobread.c
@@ -184,11 +184,18 @@
xmlNsPtr ns;
xmlNodePtr cur;
+#ifdef LIBXML_SAX1_ENABLED
/*
* build an XML tree from a the file;
*/
doc = xmlParseFile(filename);
if (doc == NULL) return(NULL);
+#else
+ /*
+ * the library has been compiled without some of the old interfaces
+ */
+ return(NULL);
+#endif /* LIBXML_SAX1_ENABLED */
/*
* Check the document is of the right kind