preconfigure.ac 685 B

1234567891011121314151617181920212223
  1. GLIBC_PROVIDES[]dnl See aclocal.m4 in the top level source directory.
  2. # Local preconfigure fragment for sysdeps/m68k
  3. # This fragment canonicalizes the machine names for m68k variants.
  4. case "$machine" in
  5. m680?0) base_machine=m68k machine=m68k/m680x0/$machine ;;
  6. m68k) variant=`(echo "#ifdef __mcoldfire__"
  7. echo "coldfire"
  8. echo "#else"
  9. echo "m680x0/m68020"
  10. echo "#endif") |
  11. $CC $CFLAGS $CPPFLAGS -E - |
  12. grep '^[[a-z]]'`
  13. if test -z "$variant"; then
  14. AC_MSG_ERROR([Cannot determine m68k processor variant], [1])
  15. fi
  16. base_machine=m68k machine=m68k/$variant
  17. if test "$variant" = "coldfire"; then
  18. with_fp_cond="defined __mcffpu__"
  19. fi
  20. ;;
  21. esac