configure.ac: check for libpthread
Required for building without GLib.
This commit is contained in:
parent
e10a8d95f6
commit
972c52891d
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user