Update copyright notices with scripts/update-copyrights
[glibc.git] / sysdeps / sparc / configure
blob90a86f6da3ca73fa22f83fb407d5fc22a1d5459a
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
9 else
10   cat > conftest.S <<\EOF
11         .text
12 foo:    fmadds          %f1, %f2, %f3, %f5
13         fmaddd          %f2, %f4, %f8, %f10
14         fhadds          %f2, %f3, %f5
15         fhaddd          %f4, %f8, %f10
16         pdistn          %f2, %f4, %g1
17         movdtox         %f10, %o0
18         movstouw        %f9, %o1
19         movstosw        %f7, %o2
20         movxtod         %o3, %f18
21         movwtos         %o4, %f15
22         flcmps          %fcc0, %f3, %f5
23         flcmpd          %fcc1, %f4, %f6
24 EOF
25 if { ac_try='${CC-cc} -c $CFLAGS -Wa,-Av9d conftest.S'
26   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27   (eval $ac_try) 2>&5
28   ac_status=$?
29   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30   test $ac_status = 0; }; }; then
31   libc_cv_sparc_as_vis3=yes
32 else
33   libc_cv_sparc_as_vis3=no
35 rm -f conftest*
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
51 else
52   cat > conftest.c <<\EOF
53 int data;
54 int foo(void)
56         return data;
58 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
62   (eval $ac_try) 2>&5
63   ac_status=$?
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
69   fi
71 rm -f conftest*
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