4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-19 04:49:25 +08:00
Mike Frysinger 041dd7ff26 newlib: add AC_CACHE_CHECK sugar around preprocessor checks
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.
2022-02-01 18:15:51 -05:00

11 lines
293 B
Plaintext

if test "${machine_dir}" = "sh"; then
AC_CACHE_CHECK([for SH5 (64-bit)], newlib_cv_sh64, [dnl
AC_PREPROC_IFELSE([AC_LANG_PROGRAM(
[[#if !defined(__SH5__)
# error "not SH5"
#endif
]])], [newlib_cv_sh64=yes], [newlib_cv_sh64=no])])
fi
AM_CONDITIONAL(SH64, [test "$newlib_cv_sh64" = yes])