From 872f373dc50f702d0956b61ddebe2357cdf04543 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Fri, 8 Jun 2018 17:27:19 +0200 Subject: doc: Add JSON schema documentation The document is written as man page in asciidoc which means this adds another dependency to the build system. Though since the (long-term) plan is to replace the docbook-based nft man page with an asciidoc one anyway, we might ultimately get rid of docbook dependency in exchange. Signed-off-by: Phil Sutter Signed-off-by: Pablo Neira Ayuso --- configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index fdf5098a..3c5ba4db 100644 --- a/configure.ac +++ b/configure.ac @@ -67,12 +67,22 @@ AM_COND_IF([BUILD_MAN], [ )] ) AC_SUBST(DB2MAN) + + [need_a2x=yes] ]) AM_COND_IF([BUILD_PDF], [ AC_CHECK_PROG(DBLATEX, [dblatex], [found], [no]) AS_IF([test "$DBLATEX" == "no"], [AC_MSG_ERROR([dblatex not found])]) + + [need_a2x=yes] +]) + +AS_IF([test "$need_a2x" = "yes"], [ + AC_CHECK_PROG(A2X, [a2x], [found], [no]) + AS_IF([test "$A2X" != "found"], + [AC_MSG_ERROR([a2x not found])]) ]) PKG_CHECK_MODULES([LIBMNL], [libmnl >= 1.0.3]) -- cgit v1.2.3