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/sparc.
86 # Check for support of VIS3 et al. instructions in the assembler.
87 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sparc assembler VIS3 support" >&5
88 $as_echo_n "checking for sparc assembler VIS3 support... " >&6; }
89 if ${libc_cv_sparc_as_vis3+:} false; then :
90 $as_echo_n "(cached) " >&6
92 cat > conftest.S <<\EOF
94 foo: fmadds %f1, %f2, %f3, %f5
95 fmaddd %f2, %f4, %f8, %f10
104 flcmps %fcc0, %f3, %f5
105 flcmpd %fcc1, %f4, %f6
107 if { ac_try='${CC-cc} -c $CFLAGS -Wa,-Av9d conftest.S'
108 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
112 test $ac_status = 0; }; }; then
113 libc_cv_sparc_as_vis3=yes
115 libc_cv_sparc_as_vis3=no
119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sparc_as_vis3" >&5
120 $as_echo "$libc_cv_sparc_as_vis3" >&6; }
121 if test $libc_cv_sparc_as_vis3 = yes; then
122 $as_echo "#define HAVE_AS_VIS3_SUPPORT 1" >>confdefs.h
126 # Check for support of thread-local storage handling in assembler and linker.
127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sparc TLS support" >&5
128 $as_echo_n "checking for sparc TLS support... " >&6; }
129 if ${libc_cv_sparc_tls+:} false; then :
130 $as_echo_n "(cached) " >&6
132 cat > conftest.S <<\EOF
133 .section ".tdata", "awT", @progbits
136 .section ".tbss", "awT", @nobits
140 baz: sethi %tgd_hi22(foo), %l1
141 add %l1, %tgd_lo10(foo), %l1
142 add %l7, %l1, %o0, %tgd_add(foo)
143 call __tls_get_addr, %tgd_call(foo)
144 sethi %tldm_hi22(bar), %l1
145 add %l1, %tldm_lo10(bar), %l1
146 add %l7, %l1, %o0, %tldm_add(bar)
147 call __tls_get_addr, %tldm_call(bar)
148 sethi %tldo_hix22(bar), %l1
149 xor %l1, %tldo_lox10(bar), %l1
150 add %o0, %l1, %l1, %tldo_add(bar)
151 sethi %tie_hi22(foo), %l1
152 add %l1, %tie_lo10(foo), %l1
154 ldx [%l7 + %l1], %l1, %tie_ldx(foo)
156 ld [%l7 + %l1], %l1, %tie_ld(foo)
158 add %g7, %l1, %l1, %tie_add(foo)
159 sethi %tle_hix22(foo), %l1
160 xor %l1, %tle_lox10(foo), %l1
162 if { ac_try='${CC-cc} -c $CFLAGS conftest.S 1>&5'
163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
167 test $ac_status = 0; }; }; then
168 libc_cv_sparc_tls=yes
174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sparc_tls" >&5
175 $as_echo "$libc_cv_sparc_tls" >&6; }
176 if test $libc_cv_sparc_tls = no; then
177 as_fn_error $? "the assembler must support TLS" "$LINENO" 5
180 # Check for a GCC emitting GOTDATA relocations.
181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sparc gcc GOTDATA reloc support" >&5
182 $as_echo_n "checking for sparc gcc GOTDATA reloc support... " >&6; }
183 if ${libc_cv_sparc_gcc_gotdata+:} false; then :
184 $as_echo_n "(cached) " >&6
186 cat > conftest.c <<\EOF
193 libc_cv_sparc_gcc_gotdata=no
194 if { ac_try='${CC-cc} -S $CFLAGS -O2 -fPIC conftest.c 1>&5'
195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
199 test $ac_status = 0; }; }; then
200 if grep -q 'gdop_hix22' conftest.s \
201 && grep -q 'gdop_lox10' conftest.s; then
202 libc_cv_sparc_gcc_gotdata=yes
207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sparc_gcc_gotdata" >&5
208 $as_echo "$libc_cv_sparc_gcc_gotdata" >&6; }
209 if test $libc_cv_sparc_gcc_gotdata = yes; then
210 $as_echo "#define HAVE_GCC_GOTDATA 1" >>confdefs.h
214 if test $libc_cv_sparc_gcc_gotdata = yes; then
215 $as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h