sparc: Assume VIS3 support
[glibc.git] / sysdeps / sparc / configure
blobbc6ac14e9ff0c105b1147d8e86cdd0c91d2fbaa5
1 # This file is generated from configure.ac by Autoconf.  DO NOT EDIT!
2  # Local configure fragment for sysdeps/sparc.
4 # Check for a GCC emitting GOTDATA relocations.
5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sparc gcc GOTDATA reloc support" >&5
6 $as_echo_n "checking for sparc gcc GOTDATA reloc support... " >&6; }
7 if ${libc_cv_sparc_gcc_gotdata+:} false; then :
8   $as_echo_n "(cached) " >&6
9 else
10   cat > conftest.c <<\EOF
11 int data;
12 int foo(void)
14         return data;
16 EOF
17 libc_cv_sparc_gcc_gotdata=no
18 if { ac_try='${CC-cc} -S $CFLAGS -O2 -fPIC conftest.c 1>&5'
19   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20   (eval $ac_try) 2>&5
21   ac_status=$?
22   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23   test $ac_status = 0; }; }; then
24   if grep -q 'gdop_hix22' conftest.s \
25      && grep -q 'gdop_lox10' conftest.s; then
26     libc_cv_sparc_gcc_gotdata=yes
27   fi
29 rm -f conftest*
31 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sparc_gcc_gotdata" >&5
32 $as_echo "$libc_cv_sparc_gcc_gotdata" >&6; }
33 if test $libc_cv_sparc_gcc_gotdata = yes; then
34   $as_echo "#define HAVE_GCC_GOTDATA 1" >>confdefs.h
38 if test $libc_cv_sparc_gcc_gotdata = yes; then
39   $as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h