blob: 2fc1c7f7ecb2c6e436e98cef5124b38e4acc36a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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)
|