diff options
| author | Gunnar Beutner <gunnar@beutner.name> | 2014-04-21 21:51:19 +0200 |
|---|---|---|
| committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2014-04-27 19:59:06 +0200 |
| commit | 5e03bd8e8cf4ea41aef6cf5d7f115afa7565c861 (patch) | |
| tree | e3b9e30280782fa171b3e13f1d41cd580e7c1b87 /configure.ac | |
| parent | e0af39d7e9fcd084cf7d2d8a57d07ab1f8038150 (diff) | |
| download | monitoring-plugins-5e03bd8e8cf4ea41aef6cf5d7f115afa7565c861.tar.gz | |
Make check_users work on Windows.
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index f405cce7..244df427 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -364,8 +364,16 @@ dnl Check for headers used by check_users | |||
| 364 | AC_CHECK_HEADERS(utmpx.h) | 364 | AC_CHECK_HEADERS(utmpx.h) |
| 365 | AM_CONDITIONAL([HAVE_UTMPX], [test "$ac_cv_header_utmpx_h" = "yes"]) | 365 | AM_CONDITIONAL([HAVE_UTMPX], [test "$ac_cv_header_utmpx_h" = "yes"]) |
| 366 | 366 | ||
| 367 | AC_CHECK_HEADERS(wtsapi32.h, [], [], [#include <windows.h>]) | ||
| 368 | AM_CONDITIONAL([HAVE_WTS32API], [test "$ac_cv_header_wtsapi32_h" = "yes"]) | ||
| 369 | |||
| 370 | if test "$ac_cv_header_wtsapi32_h" = "yes"; then | ||
| 371 | WTSAPI32LIBS="-lwtsapi32" | ||
| 372 | AC_SUBST(WTSAPI32LIBS) | ||
| 373 | fi | ||
| 374 | |||
| 367 | dnl Fallback to who(1) if the system doesn't provide an utmpx(5) interface | 375 | dnl Fallback to who(1) if the system doesn't provide an utmpx(5) interface |
| 368 | if test "$ac_cv_header_utmpx_h" = "no" | 376 | if test "$ac_cv_header_utmpx_h" = "no" -a "$ac_cv_header_wtsapi32_h" = "no" |
| 369 | then | 377 | then |
| 370 | AC_PATH_PROG(PATH_TO_WHO,who) | 378 | AC_PATH_PROG(PATH_TO_WHO,who) |
| 371 | 379 | ||
