[PATCH 1/1] XORG_TLS: Pick the first option that works (ie: prefer __thread)

Jeremy Huddleston Sequoia jeremyhu at apple.com
Sat Feb 9 20:53:44 PST 2013


Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
---
 m4/xorg-tls.m4 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/m4/xorg-tls.m4 b/m4/xorg-tls.m4
index 237fdcd..e04f1ff 100644
--- a/m4/xorg-tls.m4
+++ b/m4/xorg-tls.m4
@@ -28,7 +28,7 @@ AC_DEFUN([XORG_TLS], [
         ac_cv_tls=none
         keywords="__thread __declspec(thread)"
         for kw in $keywords ; do
-            AC_TRY_COMPILE([int $kw test;], [], ac_cv_tls=$kw)
+            AC_TRY_COMPILE([int $kw test;], [], ac_cv_tls=$kw ; break ;)
         done
     ])
     AC_MSG_RESULT($ac_cv_tls)
-- 
1.8.1.2



More information about the xorg-devel mailing list