[Nagiosplug-checkins] nagiosplug configure.in, 1.218, 1.219 REQUIREMENTS, 1.13, 1.14

Matthias Eble psychotrahe at users.sourceforge.net
Mon Jun 18 22:20:59 CEST 2007


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

Modified Files:
	configure.in REQUIREMENTS 
Log Message:
Make Linux specific plugin check_ide_smart build if appropriate headers are found


Index: REQUIREMENTS
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/REQUIREMENTS,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- REQUIREMENTS	23 Jan 2007 18:20:49 -0000	1.13
+++ REQUIREMENTS	18 Jun 2007 20:20:55 -0000	1.14
@@ -67,6 +67,9 @@
 	- Requires Network UPS Tools (>= 1.4) to run on the server to monitor
 	  http://www.networkupstools.org/
 
+check_ide_smart:
+	- Uses the Linux specific SMART interface [http://smartlinux.sourceforge.net/smart/index.php]. 
+
 OS Specific Issues
 ------------------
 

Index: configure.in
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/configure.in,v
retrieving revision 1.218
retrieving revision 1.219
diff -u -d -r1.218 -r1.219
--- configure.in	4 Jun 2007 08:58:13 -0000	1.218
+++ configure.in	18 Jun 2007 20:20:55 -0000	1.219
@@ -240,6 +240,19 @@
 fi
 LIBS="$_SAVEDLIBS"
 
+dnl Check for headers used by check_ide_smart
+AC_CHECK_HEADER(linux/hdreg.h, FOUNDINCLUDE=yes, FOUNDINCLUDE=no)
+if test "$FOUNDINCLUDE" = "yes" ; then
+	AC_CHECK_HEADER(linux/types.h, FOUNDINCLUDE=yes, FOUNDINCLUDE=no)
+fi
+
+if test "$FOUNDINCLUDE" = "yes" ; then
+	EXTRAS="$EXTRAS check_ide_smart"
+else
+	AC_MSG_WARN([Skipping check_ide_smart plugin.]) 
+	AC_MSG_WARN([check_ide_smart is linux specific. It requires linux/hdreg.h and linux/types.h.]) 
+fi
+
 dnl Check for mysql libraries
 np_mysqlclient
 if test $with_mysql = "no" ; then





More information about the Commits mailing list