Skip to contentSkip to conversation

build: doc: Warn user if html docs will be missing diagrams

PATCH Applied Duncan Roe 2 participants 2 messages Dec 1, 2021 – Dec 15, 2021 netfilter

lore
Share & tools
lore

Duncan Roe

author
#0 lore raw

PATCH 1/1 build: doc: Warn user if html docs will be missing diagrams

libnetfilter_queue is unique among the netfilter libraries in having a module hierarchy.
If 'dot' is available, Doxygen will make an interactive diagram for a module with a child or a parent, allowing users to conveniently move up and down the hierarchy.
Update configure to output a warning if 'dot' is not installed and html was requested.

---
 configure.ac | 4 ++++
 1 file changed, 4 insertions(+)
configure.ac +4 -0
index 416d58b..f279bcf 100644
@@ -64,6 +64,10 @@ AS_IF([test "x$DOXYGEN" = x], [
 		enable_html_doc=no
 		enable_man_pages=no
 	])
+], [
+	dnl Warn user if html docs will be missing diagrams
+	AS_IF([test "$enable_html_doc" = yes -a -z "$DOT"],
+		AC_MSG_WARN([Dot not found - install graphviz to get interactive diagrams in HTML]))
 ])
 
 dnl Output the makefiles
Signature · 1 line
2.17.5
maintainer Applied
#1 lore raw
Quoted 7 lines · Duncan Roe

libnetfilter_queue is unique among the netfilter libraries in having a module hierarchy.
If 'dot' is available, Doxygen will make an interactive diagram for a module with a child or a parent, allowing users to conveniently move up and down the hierarchy.
Update configure to output a warning if 'dot' is not installed and html was requested.

Applied, thanks