2.9
[glibc/nacl-glibc.git] / sysdeps / x86_64 / elf / configure
blob7a2e3004a55f82d708a0dbe35bf2a3b3bd49a6ff
1 # This file is generated from configure.in by Autoconf.  DO NOT EDIT!
2  # Local configure fragment for sysdeps/x86_64/elf.
4 if test "$usetls" != no; then
5 # Check for support of thread-local storage handling in assembler and linker.
6 { echo "$as_me:$LINENO: checking for x86-64 TLS support" >&5
7 echo $ECHO_N "checking for x86-64 TLS support... $ECHO_C" >&6; }
8 if test "${libc_cv_x86_64_tls+set}" = set; then
9   echo $ECHO_N "(cached) $ECHO_C" >&6
10 else
11   cat > conftest.s <<\EOF
12         .section ".tdata", "awT", @progbits
13         .globl foo
14 foo:    .quad   1
15         .section ".tbss", "awT", @nobits
16         .globl bar
17 bar:    .skip   8
18         .text
19 baz:    leaq    bar@TLSLD(%rip), %rdi
20         leaq    bar@DTPOFF(%rax), %rcx
21         addq    foo@GOTTPOFF(%rip), %rax
22         movq    $bar@TPOFF, %rdx
23 EOF
24 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
25   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26   (eval $ac_try) 2>&5
27   ac_status=$?
28   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29   (exit $ac_status); }; }; then
30   libc_cv_x86_64_tls=yes
31 else
32   libc_cv_x86_64_tls=no
34 rm -f conftest*
36 { echo "$as_me:$LINENO: result: $libc_cv_x86_64_tls" >&5
37 echo "${ECHO_T}$libc_cv_x86_64_tls" >&6; }
38 if test $libc_cv_x86_64_tls = yes; then
39   cat >>confdefs.h <<\_ACEOF
40 #define HAVE_TLS_SUPPORT 1
41 _ACEOF
46 cat >>confdefs.h <<\_ACEOF
47 #define PI_STATIC_AND_HIDDEN 1
48 _ACEOF