Check for pthread_create() in pthread library instaed of
pthread_mutexattr_init(). This fixes a linking error on FreeBSD.
https://bugs.freedesktop.org/show_bug.cgi?id=75674
AC_HEADER_STDBOOL
if test "$os_unix" = "yes"; then
- AC_CHECK_FUNC([pthread_mutexattr_init], , [
- AC_CHECK_LIB(pthread, pthread_mutexattr_init, , [
- AC_MSG_ERROR([could not find pthread_mutexattr_init])
+ AC_CHECK_FUNC([pthread_create], , [
+ AC_CHECK_LIB(pthread, pthread_create, , [
+ AC_MSG_ERROR([could not find pthread_create])
])
])