summaryrefslogtreecommitdiff
blob: 418622e547f459481dc0c29c851fa6589014f0b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Fixing as-needed issue

http://bugs.gentoo.org/show_bug.cgi?id=271509

--- m4/acx_pthread.m4
+++ m4/acx_pthread.m4
@@ -278,7 +278,8 @@
 	   fi
 	fi
 	
-	if test x"$done" = xno; then
+	if test x"$done" = xyes; then
+	   done="no"
 	   AC_MSG_CHECKING([whether -pthread is sufficient with -shared])
 	   AC_TRY_LINK([#include <pthread.h>],
 	      [pthread_t th; pthread_join(th, 0);
--- gtest/m4/acx_pthread.m4
+++ gtest/m4/acx_pthread.m4
@@ -278,7 +278,8 @@
 	   fi
 	fi
 	
-	if test x"$done" = xno; then
+	if test x"$done" = xyes; then
+	   done="no"
 	   AC_MSG_CHECKING([whether -pthread is sufficient with -shared])
 	   AC_TRY_LINK([#include <pthread.h>],
 	      [pthread_t th; pthread_join(th, 0);