AC_DEFUN([DOCBOOK_CHECKS],[ AC_ARG_WITH(docbook-tools, [ --with-docbook-tools if you have a complete build environment for docbook, you can use this flag so that various targets (PDF, HTML, etc.) will be generated during the build process. [default=no]], [ if test "$with_docbook_tools" = yes; then AC_CHECK_PROG(DB, db2pdf, "yes") if test "$DB" = yes; then AM_CONDITIONAL(DOCBOOK, true) else AM_CONDITIONAL(DOCBOOK, false) fi fi ],[ AM_CONDITIONAL(DOCBOOK, false) ]) ])