summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-08-20 00:41:16 +0200
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-08-20 00:41:16 +0200
commit36a9b52caeae27e44e9f336e2701bda67a3959a2 (patch)
treeef38bbae3ae16ee565bd33510d11e91c9455fbca /configure.in
parenta15b062e44ae0da805d5569f25015e28dd8552fd (diff)
downloadmonitoring-plugins-36a9b52caeae27e44e9f336e2701bda67a3959a2.tar.gz
check_ide_smart: Add support for NetBSD
Thanks to Emmanuel Dreyfus for providing the patch.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in32
1 files changed, 25 insertions, 7 deletions
diff --git a/configure.in b/configure.in
index bbcbb71c..de75e532 100644
--- a/configure.in
+++ b/configure.in
@@ -317,16 +317,34 @@ AS_IF([test "x$with_ldap" != "xno"], [
317]) 317])
318 318
319dnl Check for headers used by check_ide_smart 319dnl Check for headers used by check_ide_smart
320AC_CHECK_HEADER(linux/hdreg.h, FOUNDINCLUDE=yes, FOUNDINCLUDE=no) 320case $host in
321if test "$FOUNDINCLUDE" = "yes" ; then 321 *linux*)
322 AC_CHECK_HEADER(linux/types.h, FOUNDINCLUDE=yes, FOUNDINCLUDE=no) 322 AC_CHECK_HEADER(linux/hdreg.h, FOUNDINCLUDE=yes, FOUNDINCLUDE=no)
323fi 323 if test "$FOUNDINCLUDE" = "yes" ; then
324 AC_CHECK_HEADER(linux/types.h, FOUNDINCLUDE=yes, FOUNDINCLUDE=no)
325 fi
326 if test "$FOUNDINCLUDE" = "no" ; then
327 AC_MSG_WARN([Skipping check_ide_smart plugin.])
328 AC_MSG_WARN([check_ide_smart requires linux/hdreg.h and linux/types.h.])
329 fi
330 ;;
331 *netbsd*)
332 AC_CHECK_HEADER(dev/ata/atareg.h, FOUNDINCLUDE=yes, FOUNDINCLUDE=no)
333 if test "$FOUNDINCLUDE" = "yes" ; then
334 AC_CHECK_HEADER(dev/ic/wdcreg.h, FOUNDINCLUDE=yes, FOUNDINCLUDE=no)
335 fi
336 if test "$FOUNDINCLUDE" = "no" ; then
337 AC_MSG_WARN([Skipping check_ide_smart plugin.])
338 AC_MSG_WARN([check_ide_smart requires dev/ata/atareg.h and dev/ic/wdcreg.h])
339 fi
340 ;;
341 *)
342 AC_MSG_WARN([Skipping check_ide_smart plugin.])
343 AC_MSG_WARN([check_ide_smart works only on Linux and NetBSD])
344esac
324 345
325if test "$FOUNDINCLUDE" = "yes" ; then 346if test "$FOUNDINCLUDE" = "yes" ; then
326 EXTRAS="$EXTRAS check_ide_smart" 347 EXTRAS="$EXTRAS check_ide_smart"
327else
328 AC_MSG_WARN([Skipping check_ide_smart plugin.])
329 AC_MSG_WARN([check_ide_smart is linux specific. It requires linux/hdreg.h and linux/types.h.])
330fi 348fi
331 349
332dnl Check for mysql libraries 350dnl Check for mysql libraries