blob: 0c6fdde7aa3edb56211ff76e5089a5e2b48ed1f9 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001# preconfigure fragment for powerpc.
2
3case "$machine" in
4powerpc64*)
5 base_machine=powerpc machine=powerpc/powerpc64
6 ;;
7powerpc*)
8 # Check for e500.
9 $CC $CFLAGS $CPPFLAGS -E -dM -xc /dev/null > conftest.i
10 if grep -q __NO_FPRS__ conftest.i && ! grep -q _SOFT_FLOAT conftest.i; then
11 base_machine=powerpc machine=powerpc/powerpc32/e500
12 else
13 base_machine=powerpc machine=powerpc/powerpc32
14 fi
15 rm -f conftest.i
16 ;;
17esac