1 sinclude(./aclocal.m4)dnl Autoconf lossage
2 GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
3 # Local configure fragment for sysdeps/unix/sysv/linux/riscv.
5 arch_minimum_kernel=4.15.0
7 libc_cv_riscv_int_abi=no
8 AC_EGREP_CPP(4 8 8, [__SIZEOF_INT__ __SIZEOF_LONG__ __SIZEOF_POINTER__
9 ], libc_cv_riscv_int_abi=lp64)
10 if test $libc_cv_riscv_int_abi = no; then
11 AC_MSG_ERROR([Unable to determine integer ABI])
14 libc_cv_riscv_float_abi=no
15 AC_EGREP_CPP(yes, [#ifdef __riscv_float_abi_double
18 ],libc_cv_riscv_float_abi=d)
19 AC_EGREP_CPP(yes, [#ifdef __riscv_float_abi_soft
22 ],libc_cv_riscv_float_abi=)
23 if test "$libc_cv_riscv_float_abi" = no; then
24 AC_MSG_ERROR([Unable to determine floating-point ABI])
27 LIBC_CONFIG_VAR([default-abi], [$libc_cv_riscv_int_abi$libc_cv_riscv_float_abi])
29 case $libc_cv_riscv_int_abi$libc_cv_riscv_float_abi-$machine in
31 LIBC_SLIBDIR_RTLDDIR([lib64/lp64], [lib])
34 LIBC_SLIBDIR_RTLDDIR([lib64/lp64d], [lib])
38 ldd_rewrite_script=sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed