4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-23 15:40:14 +08:00
newlib-cygwin/libgloss/m68k/acinclude.m4
Mike Frysinger 9a5f78d80e libgloss: merge m68k configure script up a level
Move the minor m68k-specific logic to a dedicated file & namespace them
so we can merge its configure logic up a level.
2022-02-16 20:14:55 -05:00

17 lines
399 B
Plaintext

M68K_TARGET=m68k
case "${target}" in
fido-*-* | m68*-*-*)
AC_MSG_CHECKING([target cpu family])
AC_PREPROC_IFELSE([AC_LANG_PROGRAM([
#ifndef __mcoldfire__
#error we are not coldfire
#endif])], M68K_TARGET="cf")
AC_PREPROC_IFELSE([AC_LANG_PROGRAM([
#ifndef __mfido__
#error we are not fido
#endif])], M68K_TARGET="fido")
AC_MSG_RESULT($M68K_TARGET)
;;
esac
AC_SUBST(M68K_TARGET)