1
# This file is generated from configure.in by Autoconf. DO NOT EDIT!
2
# Local configure fragment for sysdeps/i386/elf.
4
# Check for support of thread-local storage handling in assembler and
6
{ $as_echo "$as_me:$LINENO: checking for i386 TLS support" >&5
7
$as_echo_n "checking for i386 TLS support... " >&6; }
8
if test "${libc_cv_386_tls+set}" = set; then
9
$as_echo_n "(cached) " >&6
11
cat > conftest.s <<\EOF
12
.section ".tdata", "awT", @progbits
15
.section ".tbss", "awT", @nobits
19
baz: leal bar@TLSLDM(%ebx), %eax
20
leal bar@DTPOFF(%eax), %edx
21
subl foo@GOTTPOFF(%edx), %eax
23
movl foo@GOTNTPOFF(%edx), %ecx
25
movl %gs:bar@NTPOFF, %eax
27
if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
28
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32
(exit $ac_status); }; }; then
39
{ $as_echo "$as_me:$LINENO: result: $libc_cv_386_tls" >&5
40
$as_echo "$libc_cv_386_tls" >&6; }
41
if test $libc_cv_386_tls = no; then
42
{ { $as_echo "$as_me:$LINENO: error: the assembler must support TLS" >&5
43
$as_echo "$as_me: error: the assembler must support TLS" >&2;}
44
{ (exit 1); exit 1; }; }
47
cat >>confdefs.h <<\_ACEOF
48
#define PI_STATIC_AND_HIDDEN 1