1 # This file is generated from configure.ac by Autoconf. DO NOT EDIT!
2 # Local preconfigure fragment for sysdeps/riscv
6 xlen=`$CC $CFLAGS $CPPFLAGS -E -dM -xc /dev/null | sed -n 's/^#define __riscv_xlen \(.*\)/\1/p'`
7 flen=`$CC $CFLAGS $CPPFLAGS -E -dM -xc /dev/null | sed -n 's/^#define __riscv_flen \(.*\)/\1/p'`
8 float_abi=`$CC $CFLAGS $CPPFLAGS -E -dM -xc /dev/null | sed -n 's/^#define __riscv_float_abi_\([^ ]*\) .*/\1/p'`
9 atomic=`$CC $CFLAGS $CPPFLAGS -E -dM -xc /dev/null | grep '#define __riscv_atomic' | cut -d' ' -f2`
15 as_fn_error 1 "Unable to determine XLEN" "$LINENO" 5
25 as_fn_error 1 "glibc does not yet support systems with the F but not D extensions" "$LINENO" 5
31 as_fn_error 1 "Unable to determine FLEN" "$LINENO" 5
40 as_fn_error 1 "glibc does not yet support the single floating-point ABI" "$LINENO" 5
46 as_fn_error 1 "Unable to determine floating-point ABI" "$LINENO" 5
54 as_fn_error 1 "glibc requires the A extension" "$LINENO" 5
59 machine=riscv/rv$xlen/$float_machine
61 cat >>confdefs.h <<_ACEOF
62 #define RISCV_ABI_XLEN $xlen
65 cat >>confdefs.h <<_ACEOF
66 #define RISCV_ABI_FLEN $abi_flen