Blame sysdeps/m68k/preconfigure
|
Packit |
6c4009 |
# This fragment canonicalizes the machine names for m68k variants.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
case "$machine" in
|
|
Packit |
6c4009 |
m680?0) base_machine=m68k machine=m68k/m680x0/$machine ;;
|
|
Packit |
6c4009 |
m68k) variant=`(echo "#ifdef __mcoldfire__"
|
|
Packit |
6c4009 |
echo "coldfire"
|
|
Packit |
6c4009 |
echo "#else"
|
|
Packit |
6c4009 |
echo "m680x0/m68020"
|
|
Packit |
6c4009 |
echo "#endif") |
|
|
Packit |
6c4009 |
$CC $CFLAGS $CPPFLAGS -E - |
|
|
Packit |
6c4009 |
grep '^[a-z]'`
|
|
Packit |
6c4009 |
if test -z "$variant"; then
|
|
Packit |
6c4009 |
echo >&2 "Cannot determine m68k processor variant"
|
|
Packit |
6c4009 |
exit 1
|
|
Packit |
6c4009 |
fi
|
|
Packit |
6c4009 |
base_machine=m68k machine=m68k/$variant
|
|
Packit |
6c4009 |
if test "$variant" = "coldfire"; then
|
|
Packit |
6c4009 |
with_fp_cond="defined __mcffpu__"
|
|
Packit |
6c4009 |
fi
|
|
Packit |
6c4009 |
;;
|
|
Packit |
6c4009 |
esac
|