2.9
[glibc/nacl-glibc.git] / sysdeps / i386 / elf / configure
blob12e92cd0eb98f9fb7944b105f5496d885a9a8185
1 # This file is generated from configure.in by Autoconf.  DO NOT EDIT!
2  # Local configure fragment for sysdeps/i386/elf.
4 if test "$usetls" != no; then
5 # Check for support of thread-local storage handling in assembler and
6 # linker.
7 { echo "$as_me:$LINENO: checking for i386 TLS support" >&5
8 echo $ECHO_N "checking for i386 TLS support... $ECHO_C" >&6; }
9 if test "${libc_cv_386_tls+set}" = set; then
10   echo $ECHO_N "(cached) $ECHO_C" >&6
11 else
12   cat > conftest.s <<\EOF
13         .section ".tdata", "awT", @progbits
14         .globl foo
15 foo:    .long   1
16         .section ".tbss", "awT", @nobits
17         .globl bar
18 bar:    .skip   4
19         .text
20 baz:    leal    bar@TLSLDM(%ebx), %eax
21         leal    bar@DTPOFF(%eax), %edx
22         subl    foo@GOTTPOFF(%edx), %eax
23         subl    $bar@TPOFF, %eax
24         movl    foo@GOTNTPOFF(%edx), %ecx
25         movl    %gs:(%ecx), %eax
26         movl    %gs:bar@NTPOFF, %eax
27 EOF
28 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
29   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30   (eval $ac_try) 2>&5
31   ac_status=$?
32   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33   (exit $ac_status); }; }; then
34   libc_cv_386_tls=yes
35 else
36   libc_cv_386_tls=no
38 rm -f conftest*
40 { echo "$as_me:$LINENO: result: $libc_cv_386_tls" >&5
41 echo "${ECHO_T}$libc_cv_386_tls" >&6; }
42 if test $libc_cv_386_tls = yes; then
43   cat >>confdefs.h <<\_ACEOF
44 #define HAVE_TLS_SUPPORT 1
45 _ACEOF
50 cat >>confdefs.h <<\_ACEOF
51 #define PI_STATIC_AND_HIDDEN 1
52 _ACEOF