From f4cc8aeb48ded1a032b91e01433c955a1797c2a6 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Thu, 24 Mar 2016 09:24:35 +0100 Subject: [PATCH] Force LITTLE_ENDIAN detection on x86 and x86_64 This is a sad workaround for CompCert 2.6 --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 237041d7..66e0df44 100644 --- a/configure.ac +++ b/configure.ac @@ -404,6 +404,10 @@ AC_CHECK_HEADERS([sys/mman.h]) dnl Checks for typedefs, structures, and compiler characteristics. AC_C_INLINE +AS_CASE([$host_cpu], + [i*86 | x86_64], + [ac_cv_c_bigendian=no] +) AC_C_BIGENDIAN( AC_DEFINE(NATIVE_BIG_ENDIAN, 1, [machine is bigendian]), AC_DEFINE(NATIVE_LITTLE_ENDIAN, 1, [machine is littleendian]),