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