[Nagiosplug-checkins] nagiosplug configure.in,1.162,1.163

M. Sean Finney seanius at users.sourceforge.net
Mon Oct 31 12:04:11 CET 2005


Update of /cvsroot/nagiosplug/nagiosplug
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12760

Modified Files:
	configure.in 
Log Message:
code cleanups, largely resulting from turning on -Wall.  mostly
unused variables and explicit casting issues, but there were a
couple gotchas in there too.


Index: configure.in
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/configure.in,v
retrieving revision 1.162
retrieving revision 1.163
diff -u -d -r1.162 -r1.163
--- configure.in	25 Oct 2005 10:38:00 -0000	1.162
+++ configure.in	31 Oct 2005 20:03:18 -0000	1.163
@@ -162,6 +162,7 @@
 
 dnl
 dnl check for math-related functions needing -lm
+AC_CHECK_HEADERS(math.h)
 AC_CHECK_LIB(m,floor,MATHLIBS="-lm")
 AC_SUBST(MATHLIBS)
 
@@ -909,6 +910,10 @@
 	AC_DEFINE_UNQUOTED(PS_COLS,$ac_cv_ps_cols,
 		[Number of columns in ps command])
 	EXTRAS="$EXTRAS check_procs check_nagios"
+	if echo "$ac_cv_ps_varlist" | grep -q "procetime"; then
+		AC_DEFINE(PS_USES_PROCETIME,"yes",
+		          [Whether the ps utility uses the "procetime" field])
+	fi
 fi
 
 AC_PATH_PROG(PATH_TO_PING,ping)





More information about the Commits mailing list