Module: monitoring-plugins
Branch: iputils
Commit: b9c9db5fdff9575015e4c38a5fab70b229c5d8a8
Author: Christian Hesse <[email protected]>
Committer: Lorenz Kästle <[email protected]>
Date: Thu Feb 25 14:58:02 2016 +0100
URL:
https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=b9c9db5
check for ping -{4,6} from new upstream iputils
---
configure.ac | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/configure.ac b/configure.ac
index dfc37b5..89eda3a 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
ac_cv_ping6_packets_first=yes
ac_cv_ping_has_timeout=yes
AC_MSG_RESULT([$with_ping6_command])
+
+elif test "x$PATH_TO_PING" != "x" && \
+ $PATH_TO_PING -6 -n -U -w 10 -c 1 ::1 2>/dev/null | \
+ egrep -i "^round-trip|^rtt" >/dev/null
+then
+ with_ping6_command="$PATH_TO_PING -6 -n -U -w %d -c %d %s"
+ ac_cv_ping6_packets_first=yes
+ ac_cv_ping_has_timeout=yes
+ AC_MSG_RESULT([$with_ping6_command])
+
elif test "x$PATH_TO_PING6" != "x"; then
if [[ "z$ac_cv_uname_s" = "zUnixWare" ]] && \
$PATH_TO_PING6 -n -s ::1 56 1 2>/dev/null | \