shithub: opusfile

Download patch

ref: bff125dab82b629c0e365b0cd20dc00d7435e477
parent: 9c7d1f7f1a9276f66bb9e8df9ab4db53ab2dcd37
author: Ralph Giles <[email protected]>
date: Fri Nov 4 10:22:19 EDT 2016

Make dot optional in generating documentation.

Different distributions of doxygen have different default
values of HAVE_DOT setting, so we need to pick a specific
setting to avoid 'missing dot' warnings on some platforms.

Doxygen uses it to generate inclusion graphs for our various
header files, which is somewhat useful, but not essential.
We therefore enable dot if it's present (usually through
the parent graphviz package) but disable it if it's not
available, silencing the warning, but not giving uniform
results.

--- a/configure.ac
+++ b/configure.ac
@@ -148,6 +148,7 @@
 
 AS_IF([test "$enable_doc" = "yes"], [
   AC_CHECK_PROG([HAVE_DOXYGEN], [doxygen], [yes], [no])
+  AC_CHECK_PROG([HAVE_DOT], [dot], [yes], [no])
 ],[
   HAVE_DOXYGEN=no
 ])
--- a/doc/Doxyfile.in
+++ b/doc/Doxyfile.in
@@ -15,4 +15,6 @@
 JAVADOC_AUTOBRIEF      = YES
 SORT_MEMBER_DOCS       = NO
 
+HAVE_DOT               = @HAVE_DOT@
+
 PROJECT_LOGO           = @top_srcdir@/doc/opus_logo.svg