summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2006-03-21 14:20:13 (GMT)
committerTon Voon <tonvoon@users.sourceforge.net>2006-03-21 14:20:13 (GMT)
commit60991b12cbfdb95c412293a22b54c5641e27f001 (patch)
tree2d06b970dc450e72f382b2d24d44d9770a57a342 /configure.in
parent4e157fb8cd6aa5dc93f316bb6d474c8a51f37bfe (diff)
downloadmonitoring-plugins-60991b12cbfdb95c412293a22b54c5641e27f001.tar.gz
Stop check_dns from compiling if nslookup does not exist (Sakari Lehtonen -
1412721) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1338 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in10
1 files changed, 2 insertions, 8 deletions
diff --git a/configure.in b/configure.in
index 6ce6b0b..40a323c 100644
--- a/configure.in
+++ b/configure.in
@@ -1209,17 +1209,17 @@ fi
1209fi 1209fi
1210 1210
1211 1211
1212AC_MSG_CHECKING(for nslookup syntax)
1213AC_ARG_WITH(nslookup_command, 1212AC_ARG_WITH(nslookup_command,
1214 ACX_HELP_STRING([--with-nslookup-command=PATH], 1213 ACX_HELP_STRING([--with-nslookup-command=PATH],
1215 [sets path to nslookup executable]), 1214 [sets path to nslookup executable]),
1216 ac_cv_nslookup_command=$withval) 1215 ac_cv_nslookup_command=$withval)
1217if test -n "$ac_cv_nslookup_command"; then 1216if test -n "$ac_cv_nslookup_command"; then
1218 AC_MSG_RESULT([(command line) $ac_cv_nslookup_command]) 1217 AC_MSG_NOTICE([Using specific nslookup at $ac_cv_nslookup_command])
1219else 1218else
1220 AC_PATH_PROG(PATH_TO_NSLOOKUP,nslookup) 1219 AC_PATH_PROG(PATH_TO_NSLOOKUP,nslookup)
1221 if test -n "$PATH_TO_NSLOOKUP" 1220 if test -n "$PATH_TO_NSLOOKUP"
1222 then 1221 then
1222 AC_MSG_CHECKING(for nslookup syntax)
1223 if $PATH_TO_NSLOOKUP -sil 127.0.0.1 2>&1 | grep ["Invalid option: sil"] >/dev/null 1223 if $PATH_TO_NSLOOKUP -sil 127.0.0.1 2>&1 | grep ["Invalid option: sil"] >/dev/null
1224 then 1224 then
1225 ac_cv_nslookup_command="$PATH_TO_NSLOOKUP" 1225 ac_cv_nslookup_command="$PATH_TO_NSLOOKUP"
@@ -1240,12 +1240,6 @@ if test -n "$ac_cv_nslookup_command"; then
1240 AC_DEFINE_UNQUOTED(NSLOOKUP_COMMAND,"$ac_cv_nslookup_command", [path and args for nslookup]) 1240 AC_DEFINE_UNQUOTED(NSLOOKUP_COMMAND,"$ac_cv_nslookup_command", [path and args for nslookup])
1241fi 1241fi
1242 1242
1243AC_PATH_PROG(PATH_TO_HOST,host)
1244if test -n "$ac_cv_path_PATH_TO_HOST"
1245then
1246 EXTRAS="$EXTRAS check_dns"
1247fi
1248
1249AC_PATH_PROG(PATH_TO_UPTIME,uptime) 1243AC_PATH_PROG(PATH_TO_UPTIME,uptime)
1250AC_ARG_WITH(uptime_command, 1244AC_ARG_WITH(uptime_command,
1251 ACX_HELP_STRING([--with-uptime-command=PATH], 1245 ACX_HELP_STRING([--with-uptime-command=PATH],