mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-22 23:17:28 +08:00
041dd7ff26
This isn't strictly necessary, but it makes for much clearer logs as to what the target is doing, and provides cache vars for anyone who wants to force the test a different way, and it lets the build cache its own results when rerunning config.status.
12 lines
436 B
Plaintext
12 lines
436 B
Plaintext
if test "${machine_dir}" = "nds32"; then
|
|
dnl Use builtin macro to detect if this is for "AndeStar ISA V3m".
|
|
AC_CACHE_CHECK([for nds32 V3M ISA], newlib_cv_nds32_isa_v3m, [dnl
|
|
AC_PREPROC_IFELSE([AC_LANG_PROGRAM(
|
|
[[#ifdef __NDS32_ISA_V3M__
|
|
# error "This is nds32_isa_v3m."
|
|
#endif
|
|
]])], [newlib_cv_nds32_isa_v3m="no"], [newlib_cv_nds32_isa_v3m="yes"])])
|
|
fi
|
|
|
|
AM_CONDITIONAL(IS_NDS32_ISA_V3M, test "$newlib_cv_nds32_isa_v3m" = "yes")
|