aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-17 23:38:11 +0100
committerMax Kellermann <max@duempel.org>2014-02-18 09:18:42 +0100
commit972c52891dce36e19d8fb67e55246a19ee9bbb5a (patch)
treeb20438878efaaecdb3968ffb3767738b8f7dce12
parente10a8d95f69832250939f477b90d4a55274eedce (diff)
downloadmpd-972c52891dce36e19d8fb67e55246a19ee9bbb5a.tar.gz
mpd-972c52891dce36e19d8fb67e55246a19ee9bbb5a.tar.xz
mpd-972c52891dce36e19d8fb67e55246a19ee9bbb5a.zip
configure.ac: check for libpthread
Required for building without GLib.
-rw-r--r--configure.ac5
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])