From: Jakub Bogusz <qboosh@pld-linux.org>
Date: Sun, 15 May 2016 17:57:26 +0200
Subject: Fix gtkdoc build

https://github.com/pld-linux/ots
---
 configure.in      | 21 +--------------------
 doc/ots-docs.sgml | 16 +++++++++-------
 2 files changed, 10 insertions(+), 27 deletions(-)

diff --git a/configure.in b/configure.in
index eebb2aa..1750a19 100644
--- a/configure.in
+++ b/configure.in
@@ -129,27 +129,8 @@ AC_SUBST(HTML_DIR)
 
 AC_CHECK_PROG(GTKDOC, gtkdoc-mkdb, true, false)
 
-gtk_doc_min_version=0.9
 if $GTKDOC ; then 
-    gtk_doc_version=`gtkdoc-mkdb --version`
-    AC_MSG_CHECKING([gtk-doc version ($gtk_doc_version) >= $gtk_doc_min_version])
-
-    IFS="${IFS= 	}"; gtk_save_IFS="$IFS"; IFS="."
-    set $gtk_doc_version
-    for min in $gtk_doc_min_version ; do
-        cur=$1; shift
-        if test -z $min ; then break; fi
-        if test -z $cur ; then GTKDOC=false; break; fi
-        if test $cur -gt $min ; then break ; fi
-        if test $cur -lt $min ; then GTKDOC=false; break ; fi
-    done
-    IFS="$gtk_save_IFS"
-
-    if $GTKDOC ; then
-      AC_MSG_RESULT(yes)
-   else
-      AC_MSG_RESULT(no)
-   fi
+GTK_DOC_CHECK([0.9])
 fi
 
 AC_CHECK_PROG(DB2HTML, db2html, true, false)
diff --git a/doc/ots-docs.sgml b/doc/ots-docs.sgml
index 199983e..e9a64e5 100644
--- a/doc/ots-docs.sgml
+++ b/doc/ots-docs.sgml
@@ -1,11 +1,13 @@
-<!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN" [
-	<!notation PNG system "PNG">
-	<!entity % local.notation.class "| PNG">
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook V4.1.2//EN"
+ "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"
+[
+	<!NOTATION PNG SYSTEM "PNG">
+	<!ENTITY % local.notation.class "| PNG">
 
-	<!entity hash "#">
-	<!entity percent "%">
-	<!entity ObjectIndex	SYSTEM "sgml/object_index.sgml">
-	<!entity TreeIndex	SYSTEM "sgml/tree_index.sgml">
+	<!ENTITY hash "#">
+	<!-- !ENTITY percent "%" -->
+	<!ENTITY ObjectIndex	SYSTEM "sgml/object_index.sgml">
+	<!ENTITY TreeIndex	SYSTEM "sgml/tree_index.sgml">
 ]>
 
 <book id="index">
