Benchtests: Remove broken walk benchmarks
[glibc.git] / sysdeps / csky / preconfigure
blobd52b8aa078e2ba42c8f28f84d6c2c6a089bdab87
1 # This file is generated from configure.ac by Autoconf.  DO NOT EDIT!
2 # Local preconfigure fragment for sysdeps/csky
4 case "$machine" in
5 csky*)
6     abi=`$CC $CFLAGS $CPPFLAGS -E -dM -xc /dev/null |
7       sed -n 's/^#define __CSKYABI__ \(.*\)/\1/p'`
8     soft_float=`$CC $CFLAGS $CPPFLAGS -E -dM -xc /dev/null |
9       sed -n 's/^#define __CSKY_SOFT_FLOAT__ \(.*\)/\1/p'`
10     hard_float_abi=`$CC $CFLAGS $CPPFLAGS -E -dM -xc /dev/null |
11       sed -n 's/^#define __CSKY_HARD_FLOAT_ABI__ \(.*\)/\1/p'`
13     case "$abi" in
14     1)
15         as_fn_error 1 "glibc does not support abiv1 yet" "$LINENO" 5
16         ;;
17     2)
18         machine=abiv2
19         ;;
20     *)
21         as_fn_error 1 "Unknown abi" "$LINENO" 5
22         ;;
23     esac
25     # This check is for compatibility with GCC versions earlier than 11.
26     # The older versions of C-SKY GCC do not support the '-mfloat-abi=softfp' option
27     # and never define the '__CSKY_HARD_FLOAT_ABI__'.
28     # Therefore, if a check for '-mfloat-abi=softfp' is added as the expression
29     #     'defined(__CSKY_HARD_FLOAT__) && !defined(__CSKY_HARD_FLOAT_ABI__)'
30     # which is correct for newer versions of GCC will not work for those older versions.
31     # Since no expression compatible with all versions of GCC exists,
32     # a check for the '-mfloat-abi=softfp' option is added.
33     if { ac_try='${CC-cc} -S -mfloat-abi=softfp /dev/null 1>&5'
34   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35   (eval $ac_try) 2>&5
36   ac_status=$?
37   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38   test $ac_status = 0; }; }; then
39       soft_float_abi_support=1
40     else
41       soft_float_abi_support=0
42     fi
44     if test -n "$soft_float"; then
45         with_fp_cond=0
46         with_hard_float_abi=0
47     else
48         with_fp_cond=1
49         if test -n "$soft_float_abi_support"; then
50             if test -n "$hard_float_abi"; then
51                 with_hard_float_abi=1
52             else
53                 with_hard_float_abi=0
54             fi
55         else
56             with_hard_float_abi=1
57         fi
58     fi
60     base_machine=csky
61     machine=csky/$machine
63     printf "%s\n" "#define CSKYABI $abi" >>confdefs.h
65     printf "%s\n" "#define CSKY_HARD_FLOAT $with_fp_cond" >>confdefs.h
67     printf "%s\n" "#define CSKY_HARD_FLOAT_ABI $with_hard_float_abi" >>confdefs.h
69     ;;
70 esac