]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
Add configure option to disable documentation 690/head
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Wed, 2 Dec 2015 17:31:52 +0000 (14:31 -0300)
committerGustavo Zacarias <gustavo@zacarias.com.ar>
Wed, 2 Dec 2015 17:47:48 +0000 (14:47 -0300)
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Makefile.am
configure.ac

index f45975ca0d59c53dfeb56e62301d2d23b6e85ae9..1f46a9b3abba54efe485924cf5ebe6bba349c73f 100644 (file)
@@ -5,7 +5,11 @@ RSYNC = rsync --rsh=ssh
 
 # build the following subdirectories
 
-SUBDIRS = po src doc bindings tests
+SUBDIRS = po src bindings tests
+
+if BUILD_DOCS
+SUBDIRS += doc
+endif
 
 if BUILD_EXAMPLES
 SUBDIRS += examples
index dc70e7da3d598fac8fc1af7c8b036ae7aa5383b4..7460c6782eb6ca4de933fc280c649fe782bb7d34 100644 (file)
@@ -100,6 +100,9 @@ AC_ARG_VAR(RRDGRAPH_YLEGEND_ANGLE,
 AC_DEFINE_UNQUOTED(RRDGRAPH_YLEGEND_ANGLE,${RRDGRAPH_YLEGEND_ANGLE:-90.0},
  [Vertical label angle: -90.0 (default) or 90.0])
 
+AC_ARG_ENABLE(docs,AS_HELP_STRING([--disable-docs],[disable building documentation]),
+[],[enable_docs=yes])
+
 AC_ARG_ENABLE(examples,AS_HELP_STRING([--disable-examples],[disable building of examples]),
 [],[enable_examples=yes])
 
@@ -115,6 +118,7 @@ AC_ARG_ENABLE(rrd_graph,AS_HELP_STRING([--disable-rrd_graph],[disable all rrd_gr
 AC_ARG_ENABLE(rrd_restore,AS_HELP_STRING([--disable-rrd_restore],[disable rrd_restore XML import functions]),
 [],[enable_rrd_restore=yes])
 
+AM_CONDITIONAL(BUILD_DOCS,[test $enable_docs != no])
 AM_CONDITIONAL(BUILD_EXAMPLES,[test $enable_examples != no])
 AM_CONDITIONAL(BUILD_RRDCGI,[test $enable_rrdcgi != no])
 AM_CONDITIONAL(BUILD_RRDCACHED,[test $enable_rrdcached != no])
@@ -945,6 +949,8 @@ fi
 
 AC_SUBST(COMP_PYTHON)
 
+if test $enable_docs != no; then
+
 dnl Check for nroff
 AC_ARG_VAR(NROFF, [path to the local nroff version])
 AC_PATH_PROGS(NROFF, [gnroff nroff])
@@ -961,6 +967,8 @@ AC_ARG_VAR(RRDDOCDIR, [[DATADIR/doc/PACKAGE-VERSION] Documentation directory])
 if test -z "$RRDDOCDIR"; then
    RRDDOCDIR='${datadir}/doc/${PACKAGE}-${VERSION}'; fi
 
+fi
+
 # systemd check
 PKG_PROG_PKG_CONFIG
 AC_ARG_WITH([systemdsystemunitdir],