]> granicus.if.org Git - p11-kit/commitdiff
configure: Check for pthread_create() in pthread library
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Tue, 9 Sep 2014 12:20:18 +0000 (14:20 +0200)
committerStef Walter <stef@thewalter.net>
Tue, 9 Sep 2014 12:23:51 +0000 (14:23 +0200)
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

index d0194f9a7c18f040044d7db509275e37000003a3..87f8a1736976dbe563ef6faa6e4f5110a1c8873a 100644 (file)
@@ -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])
                ])
        ])