Don't try to build the documentation if doxygen isn't found
authorXiang, Haihao <haihao.xiang@intel.com>
Wed, 6 Feb 2013 01:39:34 +0000 (09:39 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Tue, 28 May 2013 08:46:47 +0000 (16:46 +0800)
Making all in doc
make[2]: Entering directory `/home/xhh/graphics/ex/vaapi/libva/doc'
enable_docs=no Doxyfile
/bin/bash: Doxyfile: command not found
make[2]: *** [html-out/index.html] Error 127
make[2]: Leaving directory `/home/xhh/graphics/ex/vaapi/libva/doc'

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
configure.ac

index 4b10453..ffe6920 100644 (file)
@@ -174,7 +174,10 @@ AC_SYS_LARGEFILE
 
 # Check for Doxygen
 if test "$enable_docs" = "yes"; then
-    AC_CHECK_TOOL([DOXYGEN], [doxygen], [enable_docs="no"])
+    AC_CHECK_TOOL([DOXYGEN], [doxygen], [no])
+    if test "$DOXYGEN" = "no"; then
+       enable_docs="no"
+    fi
 fi
 AM_CONDITIONAL(ENABLE_DOCS, test "$enable_docs" = "yes")