diff options
author | Matthias Eble <psychotrahe@users.sourceforge.net> | 2007-06-18 20:20:56 +0000 |
---|---|---|
committer | Matthias Eble <psychotrahe@users.sourceforge.net> | 2007-06-18 20:20:56 +0000 |
commit | 1aa01940861cae855a9b7cd2c7ccdebc116b309a (patch) | |
tree | 489e337e333b10fb52dc25fb112dc1a727f5953d | |
parent | 79b221828648c97f09136cafb89b0479f60f9d38 (diff) | |
download | monitoring-plugins-1aa01940861cae855a9b7cd2c7ccdebc116b309a.tar.gz |
Make Linux specific plugin check_ide_smart build if appropriate headers are found
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1744 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r-- | REQUIREMENTS | 3 | ||||
-rw-r--r-- | configure.in | 13 | ||||
-rw-r--r-- | plugins/.cvsignore | 1 |
3 files changed, 17 insertions, 0 deletions
diff --git a/REQUIREMENTS b/REQUIREMENTS index ebc495b4..67cb8bf2 100644 --- a/REQUIREMENTS +++ b/REQUIREMENTS @@ -67,6 +67,9 @@ check_ups: - 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 ------------------ diff --git a/configure.in b/configure.in index 7ce8a92e..5b5b983b 100644 --- a/configure.in +++ b/configure.in @@ -240,6 +240,19 @@ else 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 diff --git a/plugins/.cvsignore b/plugins/.cvsignore index e3db508a..52dc94fe 100644 --- a/plugins/.cvsignore +++ b/plugins/.cvsignore @@ -6,6 +6,7 @@ check_dummy check_ftp check_fping check_http +check_ide_smart check_imap check_jabber check_load |