2 # as_fn_set_status STATUS
3 # -----------------------
4 # Set $? to STATUS, without forking.
12 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19 if expr a : '\(a\)' >/dev/null 2>&1 &&
20 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32 as_me=`$as_basename -- "$0" ||
33 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34 X"$0" : 'X\(//\)$' \| \
35 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
37 sed '/^.*\/\([^/][^/]*\)\/*$/{
52 as_lineno_1=$LINENO as_lineno_1a=$LINENO
53 as_lineno_2=$LINENO as_lineno_2a=$LINENO
54 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
55 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
56 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
68 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
72 chmod +x "$as_me.lineno" ||
73 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
75 # Don't try to exec as it changes $[0], causing all sort of problems
76 # (the dirname of $[0] is not the place where we might find the
77 # original and so on. Autoconf is especially sensitive to this).
79 # Exit status is that of the last command.
83 # This file is generated from configure.in by Autoconf. DO NOT EDIT!
84 # Local configure fragment for sysdeps/alpha.
86 # Check for support of thread-local storage handling in assembler and linker.
87 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Alpha TLS support" >&5
88 $as_echo_n "checking for Alpha TLS support... " >&6; }
89 if ${libc_cv_alpha_tls+:} false; then :
90 $as_echo_n "(cached) " >&6
92 cat > conftest.s <<\EOF
93 .section ".tdata", "awT", @progbits
96 .section ".tbss", "awT", @nobits
102 ldq $27, __tls_get_addr($29) !literal!1
103 ldq $16, a($29) !tlsgd!1
104 jsr $26, ($27), __tls_get_addr !lituse_tlsgd!1
106 jsr $26, ($27), __tls_get_addr !lituse_tlsldm!2
107 ldq $27, __tls_get_addr($29) !literal!2
108 ldq $16, b($29) !tlsldm!2
110 ldq $16, c($29) !tlsgd
111 ldq $16, d($29) !tlsldm
113 ldq $16, e($29) !tlsgd!3
114 ldq $16, f($29) !tlsldm!4
116 ldq $16, g($29) !gotdtprel
117 ldah $16, h($31) !dtprelhi
118 lda $16, i($16) !dtprello
119 lda $16, j($31) !dtprel
121 ldq $16, k($29) !gottprel
122 ldah $16, l($31) !tprelhi
123 lda $16, m($16) !tprello
124 lda $16, n($31) !tprel
126 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
131 test $ac_status = 0; }; }; then
132 libc_cv_alpha_tls=yes
138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_alpha_tls" >&5
139 $as_echo "$libc_cv_alpha_tls" >&6; }
140 if test $libc_cv_alpha_tls = no; then
141 as_fn_error $? "the assembler must support TLS" "$LINENO" 5
144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GP relative module local relocs" >&5
145 $as_echo_n "checking for GP relative module local relocs... " >&6; }
146 if ${libc_cv_alpha_hidden_gprel+:} false; then :
147 $as_echo_n "(cached) " >&6
149 cat > conftest.c <<\EOF
150 static volatile int bar;
151 int baz __attribute__((visibility("hidden")));
152 int f(void) { return bar + baz; }
155 libc_cv_alpha_hidden_gprel=no
156 if { ac_try='${CC-cc} -S $CFLAGS -O2 -fpic conftest.c 1>&5'
157 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
161 test $ac_status = 0; }; }; then
162 if grep -q 'bar.*!gprel' conftest.s \
163 && grep -q 'baz.*!gprel' conftest.s \
164 && ! grep -q 'bar.*!literal' conftest.s \
165 && ! grep -q 'baz.*!literal' conftest.s; then
166 libc_cv_alpha_hidden_gprel=yes
171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_alpha_hidden_gprel" >&5
172 $as_echo "$libc_cv_alpha_hidden_gprel" >&6; }
173 if test $libc_cv_alpha_hidden_gprel = yes; then
174 $as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h