X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=yaz.m4;h=4e6df3e0304cd454c3c490271664a004645728d7;hb=acee1cf4678c8c0908d65fcbc19f49c7c5aa677f;hp=96c7a36d13223b1125a07041162935947459bf1d;hpb=bb5fcf812f2da644c0f5bb824c0d03df0309d00c;p=m4-moved-to-github.git diff --git a/yaz.m4 b/yaz.m4 index 96c7a36..4e6df3e 100644 --- a/yaz.m4 +++ b/yaz.m4 @@ -4,6 +4,22 @@ 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) +MAN_COMPILE='$(XSLTPROC_COMPILE) $(srcdir)/common/id.man.xsl' +AC_SUBST(HTML_COMPILE) +HTML_COMPILE='$(XSLTPROC_COMPILE) $(srcdir)/common/id.htmlhelp.xsl' +AC_SUBST(TKL_COMPILE) +TKL_COMPILE='$(XSLTPROC_COMPILE) $(srcdir)/common/id.tkl.xsl' +AC_SUBST(PDF_COMPILE) +PDF_COMPILE='dblatex -P latex.class.options=a4paper,12pt,twoside,openright' + AC_SUBST(DTD_DIR) AC_ARG_WITH(docbook-dtd,[[ --with-docbook-dtd=DIR use docbookx.dtd in DIR]], [ @@ -62,6 +78,7 @@ AC_ARG_WITH(docbook-xsl,[[ --with-docbook-xsl=DIR use Docbook XSL in DIR/{html ],[ AC_MSG_CHECKING(for htmlhelp.xsl) for d in /usr/share/sgml/docbook/stylesheet/xsl/nwalsh \ + /usr/local/share/xsl/docbook \ /usr/share/sgml/docbook/xsl-stylesheets-1.* do if test -f $d/htmlhelp/htmlhelp.xsl; then