2.9
[glibc/nacl-glibc.git] / sysdeps / sh / elf / configure.in
blob42aca3f8ef4d9c9306937b4f8bdcab95b0b62a5f
1 GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
2 # Local configure fragment for sysdeps/sh/elf.
4 if test "$usetls" != no; then
5 # Check for support of thread-local storage handling in assembler and
6 # linker.
7 AC_CACHE_CHECK(for SH TLS support, libc_cv_sh_tls, [dnl
8 cat > conftest.S <<\EOF
9         .section ".tdata", "awT", @progbits
10 foo:    .long   25
11         .text
12         .long   foo@TLSGD
13         .long   foo@TLSLDM
14         .long   foo@DTPOFF
15         .long   foo@GOTTPOFF
16         .long   foo@TPOFF
17 EOF
18 dnl
19 if AC_TRY_COMMAND(${CC-cc} -S $CFLAGS conftest.S 1>&AS_MESSAGE_LOG_FD); then
20   libc_cv_sh_tls=yes
21 else
22   libc_cv_sh_tls=no
24 rm -f conftest*])
25 if test $libc_cv_sh_tls = yes; then
26   AC_DEFINE(HAVE_TLS_SUPPORT)
30 dnl It is always possible to access static and hidden symbols in an
31 dnl position independent way.
32 AC_DEFINE(PI_STATIC_AND_HIDDEN)