summaryrefslogtreecommitdiff
path: root/distrib/configure.ac.in
diff options
context:
space:
mode:
Diffstat (limited to 'distrib/configure.ac.in')
-rw-r--r--distrib/configure.ac.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/distrib/configure.ac.in b/distrib/configure.ac.in
index bfff387ee8..b19f9c78a5 100644
--- a/distrib/configure.ac.in
+++ b/distrib/configure.ac.in
@@ -177,6 +177,17 @@ fi
TargetWordSize=$ac_cv_sizeof_void_p
AC_SUBST(TargetWordSize)
+dnl TargetWordBigEndian for settings file
+AC_C_BIGENDIAN([TargetWordBigEndian=YES],[TargetWordBigEndian=NO])
+dnl Check that the toolchain we have is consistent with what the compiler expects
+if test "x$TargetWordBigEndian" != "x@TargetWordBigEndian@"; then
+ AC_MSG_ERROR([This binary distribution produces binaries for a target with
+ a different byte order than your target toolchain.
+ Are you sure your toolchain targets the intended target platform
+ of this compiler?])
+fi
+AC_SUBST(TargetWordBigEndian)
+
#
dnl ** how to invoke `ar' and `ranlib'
#