From 05f12af006afa4b642059bbd3b4f4c3bd736719f Mon Sep 17 00:00:00 2001 From: Ethan Galstad Date: Thu, 18 Apr 2002 04:38:46 +0000 Subject: configure script patch for ping syntax git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@15 f882894a-f735-0410-b71e-b25c423dba1c diff --git a/configure.in b/configure.in index b2df783..e7af901 100644 --- a/configure.in +++ b/configure.in @@ -554,38 +554,38 @@ then 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 " -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 " -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 -c " -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 -n " -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 56 " -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 -s 56 -c " -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 " -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") -- cgit v0.10-9-g596f