2.9
[glibc/nacl-glibc.git] / sysdeps / ia64 / elf / configure
blob30f485067845e75bc2173ba2a72a4133094dd599
1 # This file is generated from configure.in by Autoconf.  DO NOT EDIT!
2  # Local configure fragment for sysdeps/ia64/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 ia64 TLS support" >&5
8 echo $ECHO_N "checking for ia64 TLS support... $ECHO_C" >&6
9 if test "${libc_cv_ia64_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 foo:    data8   25
15         .text
16         addl    r16 = @ltoff(@dtpmod(foo#)), gp
17         addl    r17 = @ltoff(@dtprel(foo#)), gp
18         addl    r18 = @ltoff(@tprel(foo#)), gp
19         addl    r19 = @dtprel(foo#), gp
20         adds    r21 = @dtprel(foo#), r13
21         movl    r23 = @dtprel(foo#)
22         addl    r20 = @tprel(foo#), gp
23         adds    r22 = @tprel(foo#), r13
24         movl    r24 = @tprel(foo#)
25 EOF
26 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
27   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28   (eval $ac_try) 2>&5
29   ac_status=$?
30   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31   (exit $ac_status); }; }; then
32   libc_cv_ia64_tls=yes
33 else
34   libc_cv_ia64_tls=no
36 rm -f conftest*
38 echo "$as_me:$LINENO: result: $libc_cv_ia64_tls" >&5
39 echo "${ECHO_T}$libc_cv_ia64_tls" >&6
40 if test $libc_cv_ia64_tls = yes; then
41   cat >>confdefs.h <<\_ACEOF
42 #define HAVE_TLS_SUPPORT 1
43 _ACEOF
48 cat >>confdefs.h <<\_ACEOF
49 #define PI_STATIC_AND_HIDDEN 1
50 _ACEOF