* tls.m4 (GCC_CHECK_TLS): Fall back to a link test.

This commit is contained in:
Daniel Jacobowitz 2006-11-14 03:32:36 +00:00
parent 03c2a0f739
commit 7173306d0a
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
* tls.m4 (GCC_CHECK_TLS): Fall back to a link test.
2006-10-14 Geoffrey Keating <geoffk@apple.com>
* multi.m4: New file, from automake version 2 branch.

View File

@ -13,7 +13,8 @@ AC_DEFUN([GCC_CHECK_TLS], [
[have_tls=yes], [have_tls=no], [])
LDFLAGS="$save_LDFLAGS"],
[have_tls=no],
[AC_COMPILE_IFELSE([__thread int foo;], [have_tls=yes], [have_tls=no])]
[AC_LINK_IFELSE([__thread int a; int b; int main() { return a = b; }],
[have_tls=yes], [have_tls=no])]
)])
if test "$enable_tls $have_tls" = "yes yes"; then
AC_DEFINE(HAVE_TLS, 1,