lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | # preconfigure fragment for powerpc. |
2 | |||||
3 | case "$machine" in | ||||
4 | powerpc64*) | ||||
5 | base_machine=powerpc machine=powerpc/powerpc64 | ||||
6 | ;; | ||||
7 | powerpc*) | ||||
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 | ;; | ||||
17 | esac |