summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d71f56c)
raw | patch | inline | side by side (parent: d71f56c)
author | Ethan Galstad <egalstad@users.sourceforge.net> | |
Thu, 18 Apr 2002 04:38:46 +0000 (04:38 +0000) | ||
committer | Ethan Galstad <egalstad@users.sourceforge.net> | |
Thu, 18 Apr 2002 04:38:46 +0000 (04:38 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@15 f882894a-f735-0410-b71e-b25c423dba1c
configure.in | patch | blob | history |
diff --git a/configure.in b/configure.in
index b2df7830353bf75de06d8ab2f008afbe0315f1d6..e7af90180fe1670cd6c7c6d060600b0413ce81b1 100644 (file)
--- a/configure.in
+++ b/configure.in
then
AC_DEFINE_UNQUOTED(PING_PACKETS_FIRST,"$PING_COMMAND")
fi
-elif [ping -n -U -c 1 127.0.0.1 2>/dev/null | egrep -i "^round-trip" >/dev/null]
+elif [ping -n -U -c 1 127.0.0.1 2>/dev/null | egrep -i "^round-trip|^rtt" >/dev/null]
then
PING_COMMAND="$PATH_TO_PING -n -U -c %d %s"
AC_DEFINE_UNQUOTED(PING_PACKETS_FIRST,"$PING_COMMAND")
echo " ping syntax... $PATH_TO_PING -n -U -c <count> <host>"
-elif [ping -n -c 1 127.0.0.1 2>/dev/null | egrep -i "^round-trip" >/dev/null]
+elif [ping -n -c 1 127.0.0.1 2>/dev/null | egrep -i "^round-trip|^rtt" >/dev/null]
then
PING_COMMAND="$PATH_TO_PING -n -c %d %s"
AC_DEFINE_UNQUOTED(PING_PACKETS_FIRST,"$PING_COMMAND")
echo " ping syntax... $PATH_TO_PING -n -c <count> <host>"
-elif [ping -n 127.0.0.1 -c 1 2>/dev/null | egrep -i "^round-trip" >/dev/null]
+elif [ping -n 127.0.0.1 -c 1 2>/dev/null | egrep -i "^round-trip|^rtt" >/dev/null]
then
PING_COMMAND="$PATH_TO_PING -n %s -c %d"
echo " ping syntax... $PATH_TO_PING -n <host> -c <count>"
-elif [ping 127.0.0.1 -n 1 2>/dev/null | egrep -i "^round-trip" >/dev/null]
+elif [ping 127.0.0.1 -n 1 2>/dev/null | egrep -i "^round-trip|^rtt" >/dev/null]
then
PING_COMMAND="$PATH_TO_PING %s -n %d"
echo " ping syntax... $PATH_TO_PING <host> -n <count>"
-elif [ping -n -s 127.0.0.1 56 1 2>/dev/null | egrep -i "^round-trip" >/dev/null]
+elif [ping -n -s 127.0.0.1 56 1 2>/dev/null | egrep -i "^round-trip|^rtt" >/dev/null]
then
PING_COMMAND="$PATH_TO_PING -n -s %s 56 %d"
echo " ping syntax... $PATH_TO_PING -n -s <host> 56 <count>"
-elif [ping -n -h 127.0.0.1 -s 56 -c 1 2>/dev/null | egrep -i "^round-trip" >/dev/null]
+elif [ping -n -h 127.0.0.1 -s 56 -c 1 2>/dev/null | egrep -i "^round-trip|^rtt" >/dev/null]
then
PING_COMMAND="$PATH_TO_PING -n -h %s -s 56 -c %d"
echo " ping syntax... $PATH_TO_PING -n -h <host> -s 56 -c <count>"
-elif [ping -n -s 56 -c 1 127.0.0.1 2>/dev/null | egrep -i "^round-trip" >/dev/null]
+elif [ping -n -s 56 -c 1 127.0.0.1 2>/dev/null | egrep -i "^round-trip|^rtt" >/dev/null]
then
PING_COMMAND="$PATH_TO_PING -n -s 56 -c %d %s"
AC_DEFINE_UNQUOTED(PING_PACKETS_FIRST,"$PING_COMMAND")
echo " ping syntax... $PATH_TO_PING -n -s 56 -c <count> <host>"
-elif [ping -n -c 1 127.0.0.1 2>/dev/null | egrep -i "^round-trip" >/dev/null]
+elif [ping -n -c 1 127.0.0.1 2>/dev/null | egrep -i "^round-trip|^rtt" >/dev/null]
then
PING_COMMAND="$PATH_TO_PING -n -c %d %s"
AC_DEFINE_UNQUOTED(PING_PACKETS_FIRST,"$PING_COMMAND")