summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston Sequoia <jeremyhu@apple.com>2013-02-09 20:53:02 -0800
committerMatt Dew <marcoz@osource.org>2013-02-15 23:32:08 -0700
commitb6c59f73d2dabca6348ca5ceae978488c3a4856f (patch)
tree72218cd6581de81d045de25b8b7c099f9f954a77
parent1c7c7d407edfb68ee5679b059a0cd72a59ac5d67 (diff)
XORG_TLS: Pick the first option that works (ie: prefer __thread)
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
-rw-r--r--m4/xorg-tls.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/xorg-tls.m4 b/m4/xorg-tls.m4
index 237fdcd9e..e04f1ff56 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)