1 # This file is generated from configure.in by Autoconf. DO NOT EDIT!
2 # Local configure fragment for sysdeps/s390/elf.
4 if test "$usetls" != no; then
5 # Check for support of thread-local storage handling in assembler and
7 { $as_echo "$as_me:$LINENO: checking for s390 TLS support" >&5
8 $as_echo_n "checking for s390 TLS support... " >&6; }
9 if test "${libc_cv_390_tls+set}" = set; then
10 $as_echo_n "(cached) " >&6
12 cat > conftest.S <<\EOF
13 .section ".tdata", "awT", @progbits
22 l %r1,foo@GOTNTPOFF(%r12)
23 l %r1,0(%r1):tls_load:foo
24 bas %r14,0(%r1,%r13):tls_gdcall:foo
25 bas %r14,0(%r1,%r13):tls_ldcall:foo
27 if { ac_try='${CC-cc} -S $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_390_tls" >&5
40 $as_echo "$libc_cv_390_tls" >&6; }
41 if test $libc_cv_390_tls = yes; then
42 cat >>confdefs.h <<\_ACEOF
43 #define HAVE_TLS_SUPPORT 1
49 cat >>confdefs.h <<\_ACEOF
50 #define PI_STATIC_AND_HIDDEN 1