From 2d8308bfa0f6ef0f65174c6e2d165e1475475e30 Mon Sep 17 00:00:00 2001 From: "Donald A. Peterson" Date: Thu, 4 Apr 2002 22:30:23 +0000 Subject: [PATCH] If db2html is found, further check to ensure that the gnome-doc-tools DTD can be found as well before allowing docs to be created via 'make' svn: r888 --- gramps/configure.in | 46 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/gramps/configure.in b/gramps/configure.in index f03254d65..f453c01b2 100644 --- a/gramps/configure.in +++ b/gramps/configure.in @@ -7,7 +7,6 @@ PACKAGE=gramps AC_PATH_PROG(PYTHON, python) AC_PATH_PROG(BINSH, sh) -AC_PATH_PROG(DOCBOOKHTML, db2html) changequote(<<, >>)dnl PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[:3]"` @@ -265,6 +264,51 @@ AC_MSG_RESULT(ok) dnl Checks for typedefs, structures, and compiler characteristics. + +AC_PATH_PROG(DOCBOOKHTML, db2html) +if test $DOCBOOKHTML; then + AC_MSG_CHECKING(for correct gnome-doc DTD) + changequote(,) + cat > conftest.sgml < +]> +
+ + Test + + + + A Test + + This is a test. + + +
+EOF + $DOCBOOKHTML conftest.sgml -o conftest >&5 2>dbconf.err + testresult=`cat dbconf.err | wc | awk '{print $1}'` + changequote([, ]) + if test $testresult = "0"; then + rm -f dbconf.err + AC_MSG_RESULT(ok) + else + AC_MSG_RESULT([ +******** + I had some problem with the gnome-doc DTD. Please install + gnome-doc-tools from http://people.redhat.com/dcm/software.html. + Refer to dbconf.err for details. + I will not create documentation. +********]) + DOCBOOKHTML= + fi + rm -rf conftest +else + AC_MSG_RESULT([******** + Failed to find docbook (db2html) so will not create documentation. +********]) +fi + dnl Checks for library functions. AC_OUTPUT(Makefile \