1 # This file is generated from configure.ac by Autoconf. DO NOT EDIT!
2 # Local configure fragment for sysdeps/sparc.
4 # Check for support of VIS3 et al. instructions in the assembler.
5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sparc assembler VIS3 support" >&5
6 $as_echo_n "checking for sparc assembler VIS3 support... " >&6; }
7 if ${libc_cv_sparc_as_vis3+:} false; then :
8 $as_echo_n "(cached) " >&6
10 cat > conftest.S <<\EOF
12 foo: fmadds %f1, %f2, %f3, %f5
13 fmaddd %f2, %f4, %f8, %f10
22 flcmps %fcc0, %f3, %f5
23 flcmpd %fcc1, %f4, %f6
25 if { ac_try='${CC-cc} -c $CFLAGS -Wa,-Av9d conftest.S'
26 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30 test $ac_status = 0; }; }; then
31 libc_cv_sparc_as_vis3=yes
33 libc_cv_sparc_as_vis3=no
37 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sparc_as_vis3" >&5
38 $as_echo "$libc_cv_sparc_as_vis3" >&6; }
39 if test $libc_cv_sparc_as_vis3 = yes; then
40 $as_echo "#define HAVE_AS_VIS3_SUPPORT 1" >>confdefs.h
43 config_vars="$config_vars
44 have-as-vis3 = $libc_cv_sparc_as_vis3"
46 # Check for a GCC emitting GOTDATA relocations.
47 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sparc gcc GOTDATA reloc support" >&5
48 $as_echo_n "checking for sparc gcc GOTDATA reloc support... " >&6; }
49 if ${libc_cv_sparc_gcc_gotdata+:} false; then :
50 $as_echo_n "(cached) " >&6
52 cat > conftest.c <<\EOF
59 libc_cv_sparc_gcc_gotdata=no
60 if { ac_try='${CC-cc} -S $CFLAGS -O2 -fPIC conftest.c 1>&5'
61 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
64 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65 test $ac_status = 0; }; }; then
66 if grep -q 'gdop_hix22' conftest.s \
67 && grep -q 'gdop_lox10' conftest.s; then
68 libc_cv_sparc_gcc_gotdata=yes
73 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sparc_gcc_gotdata" >&5
74 $as_echo "$libc_cv_sparc_gcc_gotdata" >&6; }
75 if test $libc_cv_sparc_gcc_gotdata = yes; then
76 $as_echo "#define HAVE_GCC_GOTDATA 1" >>confdefs.h
80 if test $libc_cv_sparc_gcc_gotdata = yes; then
81 $as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h