diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 32 |
1 files changed, 25 insertions, 7 deletions
diff --git a/configure.in b/configure.in index bbcbb71..de75e53 100644 --- a/configure.in +++ b/configure.in | |||
@@ -317,16 +317,34 @@ AS_IF([test "x$with_ldap" != "xno"], [ | |||
317 | ]) | 317 | ]) |
318 | 318 | ||
319 | dnl Check for headers used by check_ide_smart | 319 | dnl Check for headers used by check_ide_smart |
320 | AC_CHECK_HEADER(linux/hdreg.h, FOUNDINCLUDE=yes, FOUNDINCLUDE=no) | 320 | case $host in |
321 | if 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) |
323 | fi | 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]) | ||
344 | esac | ||
324 | 345 | ||
325 | if test "$FOUNDINCLUDE" = "yes" ; then | 346 | if test "$FOUNDINCLUDE" = "yes" ; then |
326 | EXTRAS="$EXTRAS check_ide_smart" | 347 | EXTRAS="$EXTRAS check_ide_smart" |
327 | else | ||
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.]) | ||
330 | fi | 348 | fi |
331 | 349 | ||
332 | dnl Check for mysql libraries | 350 | dnl Check for mysql libraries |