[hipl-commit] [trunk] Rev 4416: Check for the availability of xmlto and only then build the XML documentation.

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Mon, 26 Apr 2010 21:49:17 +0300

Committer: Diego Biurrun <diego@xxxxxxxxxx>
Date: 26/04/2010 at 21:49:17
Revision: 4416
Revision-id: diego@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  Check for the availability of xmlto and only then build the XML documentation.

Modified:
  M  Makefile.am
  M  configure.ac

=== modified file 'Makefile.am'
--- Makefile.am 2010-04-21 14:47:24 +0000
+++ Makefile.am 2010-04-26 18:48:41 +0000
@@ -444,7 +444,9 @@
 doxygen: doc/Doxyfile
        doxygen $<
 
+if HAVE_XMLTO
 nodist_doc_DATA = doc/HOWTO.html doc/HOWTO.txt $(wildcard $(addprefix 
$(srcdir)/doc/,*.png))
+endif
 
 doc/HOWTO.html:  doc/HOWTO.xml
        xmlto -o $(@D) html-nochunks $<

=== modified file 'configure.ac'
--- configure.ac        2010-04-17 11:17:20 +0000
+++ configure.ac        2010-04-26 18:48:41 +0000
@@ -20,6 +20,9 @@
 # LT_INIT(disable-shared)
 AC_PROG_LIBTOOL(disable-shared)
 
+AC_CHECK_PROG(have_xmlto, xmlto, yes)
+AM_CONDITIONAL(HAVE_XMLTO, test x"$have_xmlto" = x"yes")
+
 AM_INIT_AUTOMAKE([foreign subdir-objects])
 AM_PROG_CC_C_O # Required in CentOS

Other related posts:

  • » [hipl-commit] [trunk] Rev 4416: Check for the availability of xmlto and only then build the XML documentation. - Diego Biurrun