lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | # This fragment canonicalizes the machine names for m68k variants. |
| 2 | |
| 3 | case "$machine" in |
| 4 | m680?0) base_machine=m68k machine=m68k/m680x0/$machine ;; |
| 5 | m68k) variant=`(echo "#ifdef __mcoldfire__" |
| 6 | echo "coldfire" |
| 7 | echo "#else" |
| 8 | echo "m680x0/m68020" |
| 9 | echo "#endif") | |
| 10 | $CC $CFLAGS $CPPFLAGS -E - | |
| 11 | grep '^[a-z]'` |
| 12 | if test -z "$variant"; then |
| 13 | echo >&2 "Cannot determine m68k processor variant" |
| 14 | exit 1 |
| 15 | fi |
| 16 | base_machine=m68k machine=m68k/$variant ;; |
| 17 | esac |