Some libc have a pthread that declares spinlock functions,
authorcaro <caro>
Sat, 1 May 2010 20:37:56 +0000 (20:37 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 1 May 2010 20:37:56 +0000 (20:37 +0000)
but does not define them. So the check now links the test code.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@48524 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

m4/efl_pthread.m4

index 8ff9979..acf1a34 100644 (file)
@@ -83,7 +83,7 @@ _efl_have_pthread_spinlock="no"
 
 if test "x${_efl_have_pthread}" = "xyes" && test "x$1" = "xyes" ; then
 
-   AC_COMPILE_IFELSE(
+   AC_LINK_IFELSE(
       [AC_LANG_PROGRAM([[
 #include <pthread.h>
                        ]],