diff options
author | Max Kellermann <max@duempel.org> | 2014-02-17 23:38:11 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-02-18 09:18:42 +0100 |
commit | 972c52891dce36e19d8fb67e55246a19ee9bbb5a (patch) | |
tree | b20438878efaaecdb3968ffb3767738b8f7dce12 /configure.ac | |
parent | e10a8d95f69832250939f477b90d4a55274eedce (diff) |
configure.ac: check for libpthread
Required for building without GLib.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 33d3f3ab7..f74509755 100644 --- a/configure.ac +++ b/configure.ac @@ -186,6 +186,11 @@ AC_CHECK_HEADERS(valgrind/memcheck.h) AC_CHECK_HEADERS([sys/prctl.h], AC_CHECK_FUNCS([prctl])) +AX_PTHREAD +LIBS="$PTHREAD_LIBS $LIBS" +AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS" +AM_CXXFLAGS="$AM_CXXFLAGS $PTHREAD_CFLAGS" + AC_CHECK_LIB([pthread], [pthread_setname_np], [have_pthread_setname_np=yes], [have_pthread_setname_np=no]) |