- [ --enable-docs build the documentation],
- [case "${enableval}" in
- yes) build_docs=true;;
- no) build_docs=false;;
- *) AC_MSG_ERROR(unknown value ${enableval} for --enable-docs);;
- esac],[build_docs=false])
-
-dnl ideally we'd look for other tools and support them
-if test x$build_docs = xtrue; then
- AC_CHECK_PROGS([XSLTPROC], xsltproc, [/bin/false])
- AC_CHECK_PROGS([PDFXMLTEX], pdfxmltex, [/bin/false])
- if test "x$XSLTPROC" = "x/bin/false" || test "x$PDFXMLTEX" = "x/bin/false"; then
- build_docs=false
+ AC_HELP_STRING([--enable-docs], [build the documentation]))
+
+if test "x$enable_docs" = xyes; then
+ AC_CHECK_PROGS([PDFLATEX], pdflatex, [/bin/false])
+ AC_CHECK_PROGS([HTLATEX], htlatex, [/bin/false])
+ if test "x$PDFLATEX" = x/bin/false || test "x$HTLATEX" = x/bin/false; then
+ enable_docs=no