]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3067] Detect if elinks exists before trying to use it to generate docs
authorMukund Sivaraman <muks@isc.org>
Thu, 25 Jul 2013 05:55:39 +0000 (11:25 +0530)
committerMukund Sivaraman <muks@isc.org>
Thu, 25 Jul 2013 05:55:39 +0000 (11:25 +0530)
configure.ac
doc/guide/Makefile.am

index 72a825edd8f08d721e81295f9c45cab0d3ae7597..e0d0fd8bcbd5c9e01837bb75ad254feee8e7e418 100644 (file)
@@ -1132,6 +1132,11 @@ if test "x$enable_generate_docs" != xno ; then
     fi
     AC_MSG_RESULT(yes)
   fi
+
+  AC_PATH_PROG([ELINKS], [elinks])
+  if test -z "$ELINKS"; then
+    AC_MSG_ERROR("elinks not found; it is required for --enable-generate-docs")
+  fi
 fi
 
 
index 1d63c04b31df2f5c308a9e971585accb51df1a10..8f3aaaf23bd393f032046d865b32bc07c24995ec 100644 (file)
@@ -21,10 +21,8 @@ bind10-guide.html: bind10-guide.xml
                http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl \
                $(srcdir)/bind10-guide.xml
 
-HTML2TXT = elinks -dump -no-numbering -no-references
-
 bind10-guide.txt: bind10-guide.html
-       $(HTML2TXT) bind10-guide.html > $@
+       @ELINKS@ -dump -no-numbering -no-references bind10-guide.html > $@
 
 bind10-messages.html: bind10-messages.xml
        @XSLTPROC@ --novalid --xinclude --nonet \