From 2f7de4c6607ce43466d5b2e63fd89dae129e9ce8 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/raul@1251 a436a847-0d15-0410-975c-d299462d15a1 --- configure.ac | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 7753507..e85cbc6 100644 --- a/configure.ac +++ b/configure.ac @@ -163,10 +163,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