From 7dc27891fb8ea417a309ee0af63df84827558fcf Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 9 Jun 2008 18:26:14 +0000 Subject: Fix documentation building. git-svn-id: http://svn.drobilla.net/lad/slv2@1251 a436a847-0d15-0410-975c-d299462d15a1 --- configure.ac | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 6cc7b82..f916a55 100644 --- a/configure.ac +++ b/configure.ac @@ -180,10 +180,12 @@ build_documentation="yes" AC_ARG_ENABLE(documentation, [AS_HELP_STRING(--enable-documentation, [Build documentation (no)])], [build_documentation="$enableval"]) -AC_CHECK_PROG(HAVE_DOXYGEN, doxygen, true, false) -if test $HAVE_DOXYGEN = "false"; then - AC_MSG_WARN([*** Doxygen not found, API documentation will not be built]) - build_documentation="no" +if test "$build_documentation" = "yes"; then + AC_CHECK_PROG(HAVE_DOXYGEN, doxygen, true, false) + if test $HAVE_DOXYGEN = "false"; then + AC_MSG_WARN([*** Doxygen not found, API documentation will not be built]) + build_documentation="no" + fi fi AM_CONDITIONAL(HAVE_DOXYGEN, [test "x$build_documentation" = "xyes"]) -- cgit v1.2.1