configure.ac 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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.
  4. arch_minimum_kernel=4.15.0
  5. libc_cv_riscv_int_abi=no
  6. AC_EGREP_CPP(4 8 8, [__SIZEOF_INT__ __SIZEOF_LONG__ __SIZEOF_POINTER__
  7. ], libc_cv_riscv_int_abi=lp64)
  8. if test $libc_cv_riscv_int_abi = no; then
  9. AC_MSG_ERROR([Unable to determine integer ABI])
  10. fi
  11. libc_cv_riscv_float_abi=no
  12. AC_EGREP_CPP(yes, [#ifdef __riscv_float_abi_double
  13. yes
  14. #endif
  15. ],libc_cv_riscv_float_abi=d)
  16. AC_EGREP_CPP(yes, [#ifdef __riscv_float_abi_soft
  17. yes
  18. #endif
  19. ],libc_cv_riscv_float_abi=)
  20. if test $libc_cv_riscv_float_abi = no; then
  21. AC_MSG_ERROR([Unable to determine floating-point ABI])
  22. fi
  23. LIBC_CONFIG_VAR([default-abi], [$libc_cv_riscv_int_abi$libc_cv_riscv_float_abi])
  24. case $libc_cv_riscv_int_abi$libc_cv_riscv_float_abi-$machine in
  25. lp64-riscv/rv64/*)
  26. LIBC_SLIBDIR_RTLDDIR([lib64/lp64], [lib])
  27. ;;
  28. lp64d-riscv/rv64/*)
  29. LIBC_SLIBDIR_RTLDDIR([lib64/lp64d], [lib])
  30. ;;
  31. esac
  32. ldd_rewrite_script=sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed