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

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eet@48525 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>
                        ]],