[Nagiosplug-checkins] CVS: nagiosplug configure.in,1.110,1.111
Ton Voon
tonvoon at users.sourceforge.net
Wed Aug 18 13:37:06 CEST 2004
Update of /cvsroot/nagiosplug/nagiosplug
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4384
Modified Files:
configure.in
Log Message:
Support for check_swap on NetBSD/OpenBSD (Sean Finney)
Index: configure.in
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/configure.in,v
retrieving revision 1.110
retrieving revision 1.111
diff -C2 -r1.110 -r1.111
*** configure.in 10 May 2004 10:25:39 -0000 1.110
--- configure.in 18 Aug 2004 20:36:07 -0000 1.111
***************
*** 1363,1366 ****
--- 1363,1392 ----
fi
+ AC_PATH_PROG(PATH_TO_SWAPCTL,swapctl,,[$PATH:/sbin])
+ if (test -n "$PATH_TO_SWAPCTL")
+ then
+ AC_MSG_CHECKING([for $PATH_TO_SWAPCTL format])
+ if [$PATH_TO_SWAPCTL -l 2>&1 >/dev/null]
+ then
+ ac_cv_have_swap=yes
+ ac_cv_swap_command="$PATH_TO_SWAPCTL -l"
+ if [$PATH_TO_SWAPCTL -l 2>/dev/null | \
+ egrep -i "^Device +1K-blocks +Used +Avail +Capacity +Priority" >/dev/null ]
+ then
+ ac_cv_swap_format=["%*s %llu %*d %llu %*d"]
+ ac_cv_swap_conv=1024
+ AC_MSG_RESULT([using 1K BSD format swapctl])
+
+ elif [$PATH_TO_SWAPCTL -l 2>/dev/null | \
+ egrep -i "^Device +512-blocks +Used +Avail +Capacity +Priority" >/dev/null ]
+ then
+ ac_cv_swap_format=["%*s %llu %*d %llu %*d"]
+ ac_cv_swap_conv=2048
+ AC_MSG_RESULT([using 512 byte BSD format swapctl])
+ fi
+ fi
+ dnl end if for PATH_TO_SWAPCTL
+ fi
+
if test "x$ac_cv_have_swap" != "x"
then
More information about the Commits
mailing list