[Nagiosplug-checkins] CVS: nagiosplug configure.in,1.38,1.39

Karl DeBisschop kdebisschop at users.sourceforge.net
Mon Feb 17 13:58:03 CET 2003


Update of /cvsroot/nagiosplug/nagiosplug
In directory sc8-pr-cvs1:/tmp/cvs-serv21418

Modified Files:
	configure.in 
Log Message:
ping and swap for unixware

Index: configure.in
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/configure.in,v
retrieving revision 1.38
retrieving revision 1.39
diff -C2 -r1.38 -r1.39
*** configure.in	17 Feb 2003 21:04:55 -0000	1.38
--- configure.in	17 Feb 2003 21:57:18 -0000	1.39
***************
*** 68,71 ****
--- 68,76 ----
  LDFLAGS="$LDFLAGS -L."
  
+ $ac_cv_uname_m=`uname -m`
+ $ac_cv_uname_s=`uname -s`
+ $ac_cv_uname_r=`uname -r`
+ $ac_cv_uname_v=`uname -v`
+ 
  dnl Checks for programs.
  AC_PATH_PROG(PYTHON,python)
***************
*** 684,687 ****
--- 689,697 ----
  		AC_DEFINE_UNQUOTED(PING_PACKETS_FIRST,"$PING_COMMAND",[Define if packet count must precede host])
  	fi
+ elif [ "z$ac_cv_uname_s" == "zUnixWare" && 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 -U -c %d %s"
+         AC_DEFINE_UNQUOTED(PING_PACKETS_FIRST,"$PING_COMMAND",[Define if packet count must precede host])
+         echo "      ping syntax... $PATH_TO_PING -n -U -c <count> <host>"
  elif [ping -n -U -c 1 127.0.0.1 2>/dev/null | egrep -i "^round-trip|^rtt" >/dev/null]
  then
***************
*** 872,876 ****
  	AC_DEFINE_UNQUOTED(PROC_MEMINFO,"/proc/meminfo",[path to /proc/meminfo if name changes])
  	EXTRAS="$EXTRAS check_swap"
! elif [swap -l 2>&1 | egrep -i "swapfile" >/dev/null]
  then
  	echo "found swap command"
--- 882,886 ----
  	AC_DEFINE_UNQUOTED(PROC_MEMINFO,"/proc/meminfo",[path to /proc/meminfo if name changes])
  	EXTRAS="$EXTRAS check_swap"
! elif [swap -l 2>&1 >/dev/null]
  then
  	echo "found swap command"
***************
*** 883,886 ****
--- 893,900 ----
  		echo "      using IRIX format"
  	elif [swap -l 2>/dev/null | egrep -i "^swapfile +dev +swaplo +blocks +free" >/dev/null]
+ 	then
+ 		AC_DEFINE_UNQUOTED(SWAP_FORMAT,["%*s %*[[0-9,-]] %*d %d %d"],[Format string for parsing swap output])
+ 		echo "      using UnixWare format"
+ 	elif [swap -l 2>/dev/null | egrep -i "^path +dev +swaplo +blocks +free" >/dev/null]
  	then
  		AC_DEFINE_UNQUOTED(SWAP_FORMAT,["%*s %*[[0-9,-]] %*d %d %d"],[Format string for parsing swap output])





More information about the Commits mailing list