aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/machine/sh/acinclude.m4
blob: 66ec3b4e15ffde342aa56decc97c659b522ea2b6 (plain)
1
2
3
4
5
6
7
8
9
10
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])