summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-23 10:07:14 +0100
committerMax Kellermann <max@duempel.org>2014-01-23 10:07:14 +0100
commitec41d849bbc460d4002ae19e3891b3bda513307e (patch)
tree21c08a38ecd7de939af5fcd08afce9b595fa897c /configure.ac
parent1d547fe273b094e073ed1ad1b96df59ace4380f3 (diff)
thread/Name: set thread names
For debugging.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 52db236ba..13ff64ba7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -181,6 +181,13 @@ AC_SEARCH_LIBS([exp], [m],,
AC_CHECK_HEADERS(locale.h)
AC_CHECK_HEADERS(valgrind/memcheck.h)
+AC_CHECK_LIB([pthread], [pthread_setname_np],
+ [have_pthread_setname_np=yes],
+ [have_pthread_setname_np=no])
+if test x$have_pthread_setname_np = xyes; then
+ AC_DEFINE(HAVE_PTHREAD_SETNAME_NP, 1, [Is pthread_setname_np() available?])
+fi
+
dnl ---------------------------------------------------------------------------
dnl Event loop selection
dnl ---------------------------------------------------------------------------