2023-08-17 06:05:53 +08:00
|
|
|
AC_CACHE_CHECK([for XCHAL_HAVE_FP_SQRT], newlib_cv_xchal_have_fp_sqrt, [dnl
|
|
|
|
AC_PREPROC_IFELSE([AC_LANG_PROGRAM(
|
|
|
|
[[#define _LIBM
|
|
|
|
// targ-include does not exist yet, use relative path
|
2024-08-30 17:35:24 +08:00
|
|
|
#include "../machine/xtensa/include/xtensa/config/core-isa.h"
|
2023-08-17 06:05:53 +08:00
|
|
|
#if (!XCHAL_HAVE_FP_SQRT)
|
|
|
|
# error "Have not XCHAL_HAVE_FP_SQRT"
|
|
|
|
#endif
|
|
|
|
]])], [newlib_cv_xchal_have_fp_sqrt="yes"], [newlib_cv_xchal_have_fp_sqrt="no"])])
|
|
|
|
|
|
|
|
AM_CONDITIONAL(XTENSA_XCHAL_HAVE_FP_SQRT, test "$newlib_cv_xchal_have_fp_sqrt" = "yes")
|