about summary refs log tree commit diff
path: root/sysdeps/powerpc/preconfigure
blob: 1741c251f150d017ed91aa13792d77f84634850d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
# Check for e500.

case "$machine" in
powerpc)
  $CC $CFLAGS $CPPFLAGS -E -dM -xc /dev/null > conftest.i
  if grep -q __NO_FPRS__ conftest.i && ! grep -q _SOFT_FLOAT conftest.i; then
    base_machine=powerpc machine=powerpc/powerpc32/e500
  fi
  rm -f conftest.i
  ;;
esac