diff mbox

[7/7] configure: add a check if doxygen is installed

Message ID 1418943710-17817-8-git-send-email-anders.roxell@linaro.org
State Accepted
Commit 0b3c2b87cfec6a51574da627815e84e65ea53536
Headers show

Commit Message

Anders Roxell Dec. 18, 2014, 11:01 p.m. UTC
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
---
 configure.ac    | 2 ++
 doc/Makefile.am | 3 +++
 2 files changed, 5 insertions(+)
diff mbox

Patch

diff --git a/configure.ac b/configure.ac
index bc7fdac..377e8be 100644
--- a/configure.ac
+++ b/configure.ac
@@ -123,6 +123,8 @@  if test -z "$DOXYGEN";
    then AC_MSG_WARN([Doxygen not found - continuing without Doxygen support])
 fi
 
+AM_CONDITIONAL([HAVE_DOXYGEN], [test "x${DOXYGEN}" = "xdoxygen"])
+
 ##########################################################################
 # Set optional OpenSSL path
 ##########################################################################
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 67727e1..8b894d3 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -1,3 +1,5 @@ 
+if HAVE_DOXYGEN
+
 noinst_docdatadir = ${datadir}/doc
 noinst_imagedir = ${datadir}/doc/images
 noinst_usersguidedir = ${datadir}/doc/users-guide
@@ -21,3 +23,4 @@  dist_noinst_usersguide_DATA = ${noinst_usersguide_DATA}
 
 clean-local:
 	rm -rf $(DX_DOCDIR)
+endif