common/autoconf/build-aux/config.guess
changeset 23437 e3f4c0b99422
parent 22467 b16a5ae55d50
child 27595 cff167b3bfa2
--- a/common/autoconf/build-aux/config.guess	Wed Mar 26 16:56:58 2014 -0700
+++ b/common/autoconf/build-aux/config.guess	Wed Apr 02 11:28:32 2014 -0700
@@ -76,4 +76,14 @@
   OUT=powerpc$KERNEL_BITMODE`echo $OUT | sed -e 's/[^-]*//'`
 fi
 
+# Test and fix little endian PowerPC64.
+# TODO: should be handled by autoconf-config.guess. 
+if [ "x$OUT" = x ]; then
+  if [ `uname -m` = ppc64le ]; then
+    if [ `uname -s` = Linux ]; then
+      OUT=powerpc64le-unknown-linux-gnu
+    fi
+  fi
+fi
+
 echo $OUT