diff options
author | Christian Hesse <mail@eworm.de> | 2016-02-25 14:58:02 +0100 |
---|---|---|
committer | Lorenz Kästle <lorenz.kaestle@netways.de> | 2022-01-14 16:25:14 +0100 |
commit | b9c9db5fdff9575015e4c38a5fab70b229c5d8a8 (patch) | |
tree | 078e453aea985bbfae95c54978f82e2a92501a1f | |
parent | 54a3a5ea623e5cfd65d810f4b6792f199470b2d4 (diff) | |
download | monitoring-plugins-b9c9db5fdff9575015e4c38a5fab70b229c5d8a8.tar.gz |
check for ping -{4,6} from new upstream iputilsiputils
-rw-r--r-- | configure.ac | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index dfc37b5e..89eda3a1 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1225,6 +1225,16 @@ elif [[ "z$ac_cv_uname_o" = "zCygwin" -a "x$PATH_TO_PING" != "x" ]]; then | |||
1225 | ac_cv_ping6_packets_first=yes | 1225 | ac_cv_ping6_packets_first=yes |
1226 | ac_cv_ping_has_timeout=yes | 1226 | ac_cv_ping_has_timeout=yes |
1227 | AC_MSG_RESULT([$with_ping6_command]) | 1227 | AC_MSG_RESULT([$with_ping6_command]) |
1228 | |||
1229 | elif test "x$PATH_TO_PING" != "x" && \ | ||
1230 | $PATH_TO_PING -6 -n -U -w 10 -c 1 ::1 2>/dev/null | \ | ||
1231 | egrep -i "^round-trip|^rtt" >/dev/null | ||
1232 | then | ||
1233 | with_ping6_command="$PATH_TO_PING -6 -n -U -w %d -c %d %s" | ||
1234 | ac_cv_ping6_packets_first=yes | ||
1235 | ac_cv_ping_has_timeout=yes | ||
1236 | AC_MSG_RESULT([$with_ping6_command]) | ||
1237 | |||
1228 | elif test "x$PATH_TO_PING6" != "x"; then | 1238 | elif test "x$PATH_TO_PING6" != "x"; then |
1229 | if [[ "z$ac_cv_uname_s" = "zUnixWare" ]] && \ | 1239 | if [[ "z$ac_cv_uname_s" = "zUnixWare" ]] && \ |
1230 | $PATH_TO_PING6 -n -s ::1 56 1 2>/dev/null | \ | 1240 | $PATH_TO_PING6 -n -s ::1 56 1 2>/dev/null | \ |