Add a TLS test case.

This commit is contained in:
Ian Lance Taylor
2007-10-07 17:10:10 +00:00
parent 46cf9fa27e
commit 6eee141ff6
8 changed files with 562 additions and 6 deletions

View File

@ -150,6 +150,10 @@ AM_CONDITIONAL(FN_PTRS_IN_SO_WITHOUT_PIC, [
*) true;;
esac])
dnl Test for __thread support.
AC_COMPILE_IFELSE([__thread int i = 1;], [tls=yes], [tls=no])
AM_CONDITIONAL(TLS, test "$tls" = "yes")
AM_BINUTILS_WARNINGS
WARN_CXXFLAGS=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//'`