From e6c92e0089ef1fb9c5251f283c39e9c0c58b85cd Mon Sep 17 00:00:00 2001 From: Tobias Oetiker Date: Thu, 26 Jun 2014 14:53:08 +0200 Subject: [PATCH] do not build rrd_cgi when we have no graph support --- configure.ac | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index eac4cfdb..121ffa9e 100644 --- a/configure.ac +++ b/configure.ac @@ -102,11 +102,12 @@ AC_DEFINE_UNQUOTED(RRDGRAPH_YLEGEND_ANGLE,${RRDGRAPH_YLEGEND_ANGLE:-90.0}, AC_ARG_ENABLE(rrdcgi,AS_HELP_STRING([--disable-rrdcgi],[disable building of rrdcgi]), [],[enable_rrdcgi=yes]) -AM_CONDITIONAL(BUILD_RRDCGI,[test $enable_rrdcgi != no]) - AC_ARG_ENABLE(rrd_graph,AS_HELP_STRING([--disable-rrd_graph],[disable all rrd_graph functions]), [enable_rrdcgi=no],[enable_rrd_graph=yes]) +AM_CONDITIONAL(BUILD_RRDCGI,[test $enable_rrdcgi != no]) + + if test $enable_rrd_graph != no; then AC_DEFINE([HAVE_RRD_GRAPH], [], [is rrd_graph supported by this install]) fi -- 2.47.3