aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/powerpc/preconfigure
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/powerpc/preconfigure')
-rw-r--r--sysdeps/powerpc/preconfigure11
1 files changed, 11 insertions, 0 deletions
diff --git a/sysdeps/powerpc/preconfigure b/sysdeps/powerpc/preconfigure
new file mode 100644
index 0000000..1741c25
--- /dev/null
+++ b/sysdeps/powerpc/preconfigure
@@ -0,0 +1,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