1 if test "${libm_machine_dir}" = "nds32"; then
2 dnl Use builtin macro to detect if FPU extension support is on.
3 AC_CACHE_CHECK([for nds32 FPU SP extension], newlib_cv_nds32_fpu_sp, [dnl
4 AC_PREPROC_IFELSE([AC_LANG_PROGRAM(
5 [[#if (__NDS32_EXT_FPU_SP__)
6 # error "Has nds32 FPU SP extension support"
8 ]])], [newlib_cv_nds32_fpu_sp="no"], [newlib_cv_nds32_fpu_sp="yes"])])
10 AC_CACHE_CHECK([for nds32 FPU DP extension], newlib_cv_nds32_fpu_dp, [dnl
11 AC_PREPROC_IFELSE([AC_LANG_PROGRAM(
12 [[#if (__NDS32_EXT_FPU_DP__)
13 # error "Has nds32 FPU DP extension support"
15 ]])], [newlib_cv_nds32_fpu_dp="no"], [newlib_cv_nds32_fpu_dp="yes"])])
18 AM_CONDITIONAL(HAS_NDS32_FPU_SP, test "$newlib_cv_nds32_fpu_sp" = "yes")
19 AM_CONDITIONAL(HAS_NDS32_FPU_DP, test "$newlib_cv_nds32_fpu_dp" = "yes")