chiark / gitweb /
eglibc (2.11.3-4+deb6u3) squeeze-lts; urgency=medium
[eglibc.git] / ports / sysdeps / arm / elf / configure.in
1 GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
2 # Local configure fragment for sysdeps/arm/elf.
3
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 ARM TLS support, libc_cv_arm_tls, [dnl
8 cat > conftest.s <<\EOF
9         .section ".tdata", "awT", %progbits
10         .globl foo
11 foo:    .long   1
12         .section ".tbss", "awT", %nobits
13         .globl bar
14 bar:    .skip   4
15         .text
16 .word   foo(tpoff)
17 .word   foo(tlsgd)
18 EOF
19 dnl
20 if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AS_MESSAGE_LOG_FD); then
21   libc_cv_arm_tls=yes
22 else
23   libc_cv_arm_tls=no
24 fi
25 rm -f conftest*])
26 if test $libc_cv_arm_tls = yes; then
27   AC_DEFINE(HAVE_TLS_SUPPORT)
28 fi
29 fi
30
31 dnl It is always possible to access static and hidden symbols in an
32 dnl position independent way.
33 dnl NOTE: This feature was added by the GCC TLS patches.  We should test for
34 dnl it.  Until we do, don't define it.
35 #AC_DEFINE(PI_STATIC_AND_HIDDEN)