summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-02-18 21:58:34 +0100
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-02-18 21:58:34 +0100
commit0645c9fc2c7f801ba3c7d68a17c137a63ada299f (patch)
treece222906f546f03301defba9ce81ba57591a8eb3 /configure.ac
parent39680498ee0987a5e0eb203a2c0539aa1fa94d39 (diff)
downloadmonitoring-plugins-0645c9fc2c7f801ba3c7d68a17c137a63ada299f.tar.gz
Implement new output functionality
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac13
1 files changed, 13 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 0432336b..b12cf6c5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -190,6 +190,19 @@ if test "$enable_libtap" = "yes" ; then
190 AC_SUBST(EXTRA_PLUGIN_TESTS) 190 AC_SUBST(EXTRA_PLUGIN_TESTS)
191fi 191fi
192 192
193dnl JSON capabilities (cjson)
194AC_ARG_ENABLE([json-output],
195 AC_HELP_STRING([--enable-json-output],
196 [Enables switching the output format to JSON (default: yes)]),
197 [case "${enableval}" in
198 yes) json-ouput=true ;;
199 no) json-ouput=false ;;
200 *) AC_MSG_ERROR([bad value ${enableval} for --enable-json-ouput]) ;;
201 esac], [json_output=true])
202
203AM_CONDITIONAL([ENALBE_JSON_OUTPUT], [test x$json_output = xtrue])
204
205
193dnl INI Parsing 206dnl INI Parsing
194AC_ARG_ENABLE(extra-opts, 207AC_ARG_ENABLE(extra-opts,
195 AC_HELP_STRING([--enable-extra-opts], 208 AC_HELP_STRING([--enable-extra-opts],