Fixed bug #1201: ./buildconf.sh fails on sarge. PAZPAR2.1.0.0
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 18 Jun 2007 18:44:33 +0000 (18:44 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 18 Jun 2007 18:44:33 +0000 (18:44 +0000)
yaz.m4

diff --git a/yaz.m4 b/yaz.m4
index ebfd774..eebfa70 100644 (file)
--- a/yaz.m4
+++ b/yaz.m4
@@ -4,6 +4,11 @@
 dnl ----- Setup Docbook documentation for YAZ
 AC_DEFUN([YAZ_DOC],
 [
+dnl autoconf < 2.60 does not define docdir
+if test -n "$docdir"; then
+        docdir="${datadir}/doc/${PACKAGE}"
+        AC_SUBST([docdir])
+fi
 AC_SUBST(XSLTPROC_COMPILE)
 XSLTPROC_COMPILE='xsltproc -path ".:$(srcdir)"'
 AC_SUBST(MAN_COMPILE)