diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2014-12-02 13:22:17 +0100 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2014-12-02 13:22:17 +0100 |
commit | 04e0a182aeb5defaf6b39cbbd8d9c87491c4f1e4 (patch) | |
tree | f979149a56a5392fe1827dc5f39d5faf310437ab /configure.ac | |
parent | ed9394880c18a66fa2b60483774cf49064dd3771 (diff) | |
parent | 14d306f57359e82b309ee5c39472fa5af7ef18e1 (diff) | |
download | monitoring-plugins-04e0a182aeb5defaf6b39cbbd8d9c87491c4f1e4.tar.gz |
Merge branch 'handle-hanging-nfs'
* handle-hanging-nfs:
NEWS: Mention check_disk enhancement
Cosmetic change: s/THRLIBS/THREADLIBS/
configure.ac: Don't let pthread check depend on OS
check_disk: Seperate declarations from code
check_disk: Remove unused status variable
check_disk: Fix pthread start routine type
Don't let check_disk hang on hanging file systems
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index a6c9e79a..fb8f9500 100644 --- a/configure.ac +++ b/configure.ac @@ -156,6 +156,12 @@ AC_CHECK_LIB(socket,socket,SOCKETLIBS="$SOCKETLIBS -lsocket") AC_CHECK_LIB(resolv,main,SOCKETLIBS="$SOCKETLIBS -lresolv") AC_SUBST(SOCKETLIBS) +dnl Check for POSIX thread libraries +AC_CHECK_HEADERS(pthread.h) +AC_CHECK_LIB(pthread,pthread_create,THREADLIBS="-lpthread", + AC_CHECK_LIB(pthread,pthread_create,THREADLIBS="-lpthread -lrt",-lrt)) +AC_SUBST(THREADLIBS) + dnl dnl check for math-related functions needing -lm AC_CHECK_HEADERS(math.h) |