1 # This file is generated from configure.in by Autoconf. DO NOT EDIT!
2 # Local configure fragment for sysdeps/hppa/elf.
4 if test "$usetls" != no; then
5 # Check for support of thread-local storage handling in assembler and
7 echo "$as_me:$LINENO: checking for hppa TLS support" >&5
8 echo $ECHO_N "checking for hppa TLS support... $ECHO_C" >&6
9 if test "${libc_cv_hppa_tls+set}" = set; then
10 echo $ECHO_N "(cached) $ECHO_C" >&6
12 cat > conftest.s <<\EOF
14 .section ".tdata","awT",@progbits
17 ; Test general dyanmic relocations
19 addil LT'foo-$tls_gdidx$, %r19
20 ldo RT'foo-$tls_gdidx$(%r1), %r26
23 ; Test local dynamic relocations
25 addil LT'foo-$tls_ldidx$, %r19
27 ldo RT'foo-$tls_ldidx$(%r1), %r26
28 ldo RR'foo-$tls_dtpoff$(%r1), %r25
29 ; More variables can be loaded...
30 ; Test initial exec reloctiosn
33 addil LT'foo-$tls_ieoff$, %r19
34 ldw RT'foo-$tls_ieoff$(%r1), %r25
36 ; Test local exec relocations
39 addil LR'foo-$tls_leoff$, %r26
40 ldo RR'foo-$tls_leoff$(%r1), %r25
41 ; Done all the TLS tests.
43 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
44 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48 (exit $ac_status); }; }; then
55 echo "$as_me:$LINENO: result: $libc_cv_hppa_tls" >&5
56 echo "${ECHO_T}$libc_cv_hppa_tls" >&6
57 if test $libc_cv_hppa_tls = yes; then
58 cat >>confdefs.h <<\_ACEOF
59 #define HAVE_TLS_SUPPORT 1