Upgrade to 0.99.8 cleanup of spec and makefiles to include doc, Daniel.
diff --git a/ChangeLog b/ChangeLog
index c71dcce..a76b485 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Feb 16 17:27:29 CET 1999 Daniel Veillard <Daniel.Veillard@w3.org>
+
+	* Makefile.am, spec, doc/Makefile.am : upgrading to 0.99.8, fixing
+	  the tar and spec file to include the beginning of the doc.
+
 1999-02-13  Nuno Ferreira  <nmrf@rnl.ist.utl.pt>
 
 	* doc/.cvsignore: Added this file.
diff --git a/Makefile.am b/Makefile.am
index 0ee6959..b8bcdbf 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -57,7 +57,7 @@
 confexecdir=$(libdir)
 confexec_DATA = xmlConf.sh
 
-EXTRA_DIST = xmlConf.sh.in libxml.spec
+EXTRA_DIST = xmlConf.sh.in libxml.spec doc/*.html doc/*.gif
 
 ## We create xmlConf.sh here and not from configure because we want
 ## to get the paths expanded correctly.  Macros like srcdir are given
diff --git a/config.h.in b/config.h.in
index dea5799..6778ed0 100644
--- a/config.h.in
+++ b/config.h.in
@@ -63,3 +63,10 @@
 
 /* Define if you have the <zlib.h> header file.  */
 #undef HAVE_ZLIB_H
+
+/* Name of package */
+#undef PACKAGE
+
+/* Version number of package */
+#undef VERSION
+
diff --git a/configure.in b/configure.in
index 7608694..fb6b513 100644
--- a/configure.in
+++ b/configure.in
@@ -2,7 +2,9 @@
 AC_PREREQ(2.2)
 AC_INIT(entities.h)
 AM_CONFIG_HEADER(config.h)
-AM_INIT_AUTOMAKE(libxml, 0.99.5)
+AM_INIT_AUTOMAKE(libxml, 0.99.8)
+
+AC_ARG_WITH(html-dir, [  --with-html-dir=PATH path to installed docs ])
 
 dnl Checks for programs.
 AC_PROG_CC
@@ -28,6 +30,15 @@
 AC_CHECK_HEADERS(fcntl.h unistd.h ctype.h dirent.h errno.h malloc.h)
 AC_CHECK_HEADERS(stdarg.h sys/stat.h sys/types.h time.h zlib.h)
 
+dnl Specific dir for HTML output ?
+if test "x$with_html_dir" = "x" ; then
+  HTML_DIR='${datadir}/gtk-doc/html'
+else
+  HTML_DIR=$with_html_dir
+fi
+
+AC_SUBST(HTML_DIR)
+
 XML_LIBDIR='-L${libdir}'
 XML_INCLUDEDIR='-I${includedir}'
 XML_LIBS="-lxml $Z_LIBS"
@@ -35,6 +46,7 @@
 AC_SUBST(XML_LIBDIR)
 AC_SUBST(XML_LIBS)
 AC_SUBST(XML_INCLUDEDIR)
+AC_SUBST(HTML_DIR)
 
 AC_ARG_ENABLE(corba,    [  --enable-corba           Add Corba support (default)])
 
diff --git a/doc/Makefile.am b/doc/Makefile.am
index ca7fb5b..059dff8 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -1,3 +1,41 @@
-htmldir = $(prefix)/html
-html_DATA = xml.html structure.gif DOM.gif
+## Process this file with automake to produce Makefile.in
 
+# The name of the module.
+DOC_MODULE=gnome-xml
+
+# The top-level SGML file.
+DOC_MAIN_SGML_FILE=gnome-xml.sgml
+
+# The directory containing the source code (if it contains documentation).
+DOC_SOURCE_DIR=..
+
+
+TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)
+
+scan:
+	gtkdoc-scan --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) --ignore-headers="acconfig.h config.h"
+
+templates: scan
+	gtkdoc-mktmpl --module=$(DOC_MODULE)
+
+sgml:
+	gtkdoc-mkdb --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR)
+
+html:
+	if ! test -d html ; then mkdir html ; fi
+	-cd html && gtkdoc-mkhtml $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE)
+
+clean-local:
+	rm -f *~ *.bak *.hierarchy *.signals *-unused.txt
+
+maintainer-clean-local: clean
+	rm -rf sgml html $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt 
+
+install-data-local:
+	install -d -m 0755 $(TARGET_DIR)
+	install -m 0644 xml.html structure.gif DOM.gif $(TARGET_DIR)
+#	install -m 0644 html/*.html $(TARGET_DIR)
+#	install -m 0644 html/index.sgml $(TARGET_DIR)
+#	gtkdoc-fixxref --module=$(DOC_MODULE) --html-dir=$(HTML_DIR)
+
+.PHONY : html sgml templates scan
diff --git a/libxml.spec b/libxml.spec
index c3d1020..e118851 100644
--- a/libxml.spec
+++ b/libxml.spec
@@ -1,5 +1,5 @@
 # Note that this is NOT a relocatable package
-%define ver      0.99.5
+%define ver      0.99.8
 %define rel      SNAP
 %define prefix   /usr
 
@@ -73,7 +73,6 @@
 %defattr(-, root, root)
 
 %doc AUTHORS ChangeLog NEWS README COPYING COPYING.LIB TODO
-%doc doc/DOM.gif doc/structure.gif doc/xml.html
 %{prefix}/lib/lib*.so.*
 %{prefix}/bin/xml-config
 
diff --git a/parser.c b/parser.c
index fd6b6d0..671bf73 100644
--- a/parser.c
+++ b/parser.c
@@ -4677,6 +4677,7 @@
  * 
  * xmlParserFindNodeInfoIndex : Find the index that the info record for
  *   the given node is or should be at in a sorted sequence
+ *
  * return values: a long indicating the position of the record
  */
 unsigned long xmlParserFindNodeInfoIndex(const xmlParserNodeInfoSeq* seq,