From 92ad58dec9a170a128734ea99e532e8a6a7d5499 Mon Sep 17 00:00:00 2001 From: Roman Bogorodskiy Date: Tue, 9 Sep 2014 14:20:18 +0200 Subject: configure: Check for pthread_create() in pthread library 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 --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index d0194f9..87f8a17 100644 --- a/configure.ac +++ b/configure.ac @@ -68,9 +68,9 @@ AC_C_BIGENDIAN 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]) ]) ]) -- cgit v1.1