summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorawiddersheim <awiddersheim@hotmail.com>2013-10-21 14:28:39 -0400
committerHolger Weiss <holger@zedat.fu-berlin.de>2014-07-31 00:16:50 +0200
commit4940a77aed654800224ae6662a4685c5505d78a6 (patch)
tree312c51e9dd155e94a1b099e56db6a59c10237427
parent8775edcb10c699f3e23a6c9eed071900e254d11e (diff)
downloadmonitoring-plugins-4940a77.tar.gz
Fix PATH_TO_QMAIL_QSTAT in configure
When configuring PATH_TO_QMAIL_QSTAT the PATH_TO_MAILQ would get applied instead after tests had passed. Also made --with-qmail-qstat-command a configuration option.
-rw-r--r--configure.ac7
1 files changed, 5 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index f6ead580..1fa7472b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1478,9 +1478,12 @@ else
1478fi 1478fi
1479 1479
1480AC_PATH_PROG(PATH_TO_QMAIL_QSTAT,qmail-qstat) 1480AC_PATH_PROG(PATH_TO_QMAIL_QSTAT,qmail-qstat)
1481if test -x "$PATH_TO_QMAIL_QSTAT" 1481AC_ARG_WITH(qmail_qstat_command,
1482 ACX_HELP_STRING([--with-qmail-qstat-command=PATH],
1483 [sets path to qmail-qstat]), PATH_TO_QMAIL_QSTAT=$withval)
1484if test -n "$PATH_TO_QMAIL_QSTAT"
1482then 1485then
1483 AC_DEFINE_UNQUOTED(PATH_TO_MAILQ,"$PATH_TO_QMAIL_QSTAT",[path to qmail-qstat]) 1486 AC_DEFINE_UNQUOTED(PATH_TO_QMAIL_QSTAT,"$PATH_TO_QMAIL_QSTAT",[path to qmail-qstat])
1484else 1487else
1485 AC_MSG_WARN([Could not find qmail-qstat or eqivalent]) 1488 AC_MSG_WARN([Could not find qmail-qstat or eqivalent])
1486fi 1489fi