From 8235fd0aef2945e0d638fba3493134588d085d5a Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Tue, 2 Dec 2014 21:13:38 +0100 Subject: check_mailq: Add sudo support This addition is based on a patch contributed by Christopher Schultz. Closes #1099. Closes #1171. --- configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index fb8f9500..ce1728e3 100644 --- a/configure.ac +++ b/configure.ac @@ -1484,6 +1484,16 @@ else AC_MSG_WARN([Get ssh in order to make check_by_ssh plugin]) fi +AC_PATH_PROG(PATH_TO_SUDO,sudo) +AC_ARG_WITH(sudo_command, + ACX_HELP_STRING([--with-sudo-command=PATH], + [sets path to sudo]), PATH_TO_SUDO=$withval) +if test -n "$PATH_TO_SUDO" +then + AC_DEFINE_UNQUOTED(PATH_TO_SUDO,"$PATH_TO_SUDO",[path to sudo]) +else + AC_MSG_WARN([Could not find sudo or eqivalent]) +fi AC_PATH_PROG(PATH_TO_MAILQ,mailq) AC_ARG_WITH(mailq_command, -- cgit v1.2.3