From 0bf9a206448cf81d53d4b16744a928967f6c457f Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 17 Jul 2009 15:11:33 +0000 Subject: PR other/40784 * tls.m4 (GCC_CHECK_TLS): Add extra quoting around argument to AC_LINK_IFELSE. --- config/ChangeLog | 6 ++++++ config/tls.m4 | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'config') diff --git a/config/ChangeLog b/config/ChangeLog index 9b8cd93be..96d5f7505 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,9 @@ +2009-07-17 Joseph Myers + + PR other/40784 + * tls.m4 (GCC_CHECK_TLS): Add extra quoting around argument to + AC_LINK_IFELSE. + 2009-07-16 Joseph Myers * tls.m4 (GCC_CHECK_TLS): Also test TLS in a shared library when diff --git a/config/tls.m4 b/config/tls.m4 index 4648a9098..0ae60460b 100644 --- a/config/tls.m4 +++ b/config/tls.m4 @@ -79,9 +79,9 @@ AC_DEFUN([GCC_CHECK_TLS], [ CFLAGS="-fPIC $CFLAGS" dnl If -shared works, test if TLS works in a shared library. AC_LINK_IFELSE([int f() { return 0; }], - AC_LINK_IFELSE([__thread int a; int b; int f() { return a = b; }], + [AC_LINK_IFELSE([__thread int a; int b; int f() { return a = b; }], [gcc_cv_have_tls=yes], - [gcc_cv_have_tls=no]), + [gcc_cv_have_tls=no])], [gcc_cv_have_tls=yes]) CFLAGS="$chktls_save_CFLAGS" LDFLAGS="$chktls_save_LDFLAGS"], [gcc_cv_have_tls=no]) -- cgit v1.2.3