aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNils Gillmann <ng0@n0.is>2018-10-21 14:33:57 +0000
committerNils Gillmann <ng0@n0.is>2018-10-21 14:33:57 +0000
commite0785bb1b2af91a38d161bda7a4075338579441a (patch)
treec5772465141c95acf8b7fa7483dafb7e317169e0
parent811d311f4c04a8a34877ede28d825b374233aea2 (diff)
downloadgnunet-e0785bb1b2af91a38d161bda7a4075338579441a.tar.gz
gnunet-e0785bb1b2af91a38d161bda7a4075338579441a.zip
If texi2mdoc is not found, throw a warning when --enable-section7 is true
Signed-off-by: Nils Gillmann <ng0@n0.is>
-rw-r--r--configure.ac7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 25ff26aa0..e9e540419 100644
--- a/configure.ac
+++ b/configure.ac
@@ -699,8 +699,15 @@ AC_ARG_ENABLE([section7],
699AC_MSG_RESULT($section7) 699AC_MSG_RESULT($section7)
700if test "x$section7" = "xyes" 700if test "x$section7" = "xyes"
701then 701then
702 if test "$texi2mdoc" = 0
703 then
704 AC_MSG_WARN([ERROR: mdoc output currently requires texi2mdoc.])
705 AC_MSG_WARN([ERROR: texi2mdoc can be obtained via your Operating System])
706 AC_MSG_WARN([ERROR: package manager or from https://mandoc.bsd.lv/texi2mdoc/])
707 else
702 AM_CONDITIONAL([SECTION7],true) 708 AM_CONDITIONAL([SECTION7],true)
703 AC_DEFINE([SECTION7],[1],[Building section 7 mdoc output]) 709 AC_DEFINE([SECTION7],[1],[Building section 7 mdoc output])
710 fi
704else 711else
705 AM_CONDITIONAL([SECTION7],false) 712 AM_CONDITIONAL([SECTION7],false)
706 AC_DEFINE([SECTION7],[0],[Not building section 7 mdoc output]) 713 AC_DEFINE([SECTION7],[0],[Not building section 7 mdoc output])