]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
doc: let configure find the XML tools if possible
authorChas Williams (CONTRACTOR) <chas@cmf.nrl.navy.mil>
Thu, 2 Jun 2011 23:00:47 +0000 (19:00 -0400)
committerDerrick Brashear <shadow@dementia.org>
Mon, 6 Jun 2011 03:32:45 +0000 (20:32 -0700)
configure should attempt to find the XML tools we need to process
the documentation.  if it can't, it should provide a safe default.
still allow the user to override via command line.

Reviewed-on: http://gerrit.openafs.org/4766
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit cc2bc3e17ff5f7a10c515e309f8fec47a6fa14b6)

Change-Id: I4773affa193b5210da6416dd8b4321bd3f471429
Reviewed-on: http://gerrit.openafs.org/4794
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
acinclude.m4
doc/xml/AdminGuide/Makefile.in
doc/xml/QuickStartUnix/Makefile.in
doc/xml/UserGuide/Makefile.in

index 1dd4bfe61da9160e5e09d9b047cfe81525b7cd9a..98a4e0dadb01bdbeab449a46388e544ac28b2bac 100644 (file)
@@ -231,12 +231,11 @@ AC_ARG_ENABLE([linux-syscall-probing],
     ,
     [enable_linux_syscall_probing="maybe"])
     
-
 AC_ARG_WITH([xslt-processor],
        AS_HELP_STRING([--with-xslt-processor=ARG],
        [which XSLT processor to use (possible choices are: libxslt, saxon, xalan-j, xsltproc)]),
                XSLTPROC="$withval",
-               XSLTPROC="libxslt")
+       AC_CHECK_PROGS([XSLTPROC], [libxslt saxon xalan-j xsltproc], [echo]))
 
 AC_ARG_WITH([html-xsl], 
         AS_HELP_STRING([--with-html-xsl],
@@ -244,6 +243,12 @@ AC_ARG_WITH([html-xsl],
        HTML_XSL="$withval",
        HTML_XSL=no)
 
+AC_ARG_WITH([docbook2pdf],
+       AS_HELP_STRING([--with-docbook2pdf=ARG],
+       [which Docbook to PDF utility to use (possible choices are: docbook2pdf, dblatex)]),
+               DOCBOOK2PDF="$withval",
+       AC_CHECK_PROGS([DOCBOOK2PDF], [docbook2pdf dblatex], [echo]))
+
 enable_login="no"
 
 dnl weird ass systems
@@ -1428,6 +1433,7 @@ AC_SUBST(DARWIN_INFOFILE)
 AC_SUBST(IRIX_BUILD_IP35)
 AC_SUBST(HTML_XSL)
 AC_SUBST(XSLTPROC)
+AC_SUBST(DOCBOOK2PDF)
 
 OPENAFS_OSCONF
 OPENAFS_FUSE
index 76835254e541fd77b50ce995df477ba3bacf2b5f..d442707fc640d4669c758cc4a560bb2c2cb09e37 100644 (file)
@@ -27,13 +27,14 @@ SRCS     = $(BOOK) auagd005.xml auagd006.xml auagd007.xml auagd008.xml \
           auagd024.xml auagd025.xml
 HTML_XSL = @HTML_XSL@
 XSLTPROC = @XSLTPROC@
+DOCBOOK2PDF = @DOCBOOK2PDF@
 
 html: $(SRCS) $(VERSFILE).xml
        $(XSLTPROC) --param navig.graphics 1 \
            --stringparam navig.graphics.path ../ $(HTML_XSL) $(BOOK)
 
 pdf: $(SRCS) $(VERSFILE).xml
-       dblatex $(BOOK)
+       $(DOCBOOK2PDF) $(BOOK)
 
 check:
        xmllint --noout --valid $(BOOK)
index 2c2afb7536311a264bcfebfcd86ef5364bb7d96d..7d82c76f836968e0a9b026728a07f9254db14f5e 100644 (file)
@@ -24,13 +24,14 @@ SRCS     = $(BOOK) auqbg003.xml auqbg004.xml auqbg005.xml auqbg006.xml \
           auqbg007.xml auqbg008.xml appendix.xml appendix_dafs.xml
 HTML_XSL = @HTML_XSL@
 XSLTPROC = @XSLTPROC@
+DOCBOOK2PDF = @DOCBOOK2PDF@
 
 html: $(SRCS) $(VERSFILE).xml
        $(XSLTPROC) --param navig.graphics 1 \
            --stringparam navig.graphics.path ../ $(HTML_XSL) $(BOOK)
 
 pdf: $(SRCS) $(VERSFILE).xml
-       dblatex $(BOOK)
+       $(DOCBOOK2PDF) $(BOOK)
 
 check:
        xmllint --noout --valid $(BOOK)
index fe4fb91c69b3ca6c1c9ab737bb50c2dde5083692..40608a7c4f290cf8133388c894fe35353f8ef233 100644 (file)
@@ -25,13 +25,14 @@ SRCS     = $(BOOK) auusg003.xml auusg004.xml auusg005.xml auusg006.xml \
           auusg012.xml
 HTML_XSL = @HTML_XSL@
 XSLTPROC = @XSLTPROC@
+DOCBOOK2PDF = @DOCBOOK2PDF@
 
 html: $(SRCS) $(VERSFILE).xml
        $(XSLTPROC) --param navig.graphics 1 \
            --stringparam navig.graphics.path ../ $(HTML_XSL) $(BOOK)
 
 pdf: $(SRCS) $(VERSFILE).xml
-       dblatex $(BOOK)
+       $(DOCBOOK2PDF) $(BOOK)
 
 check:
        xmllint --noout --valid $(BOOK)