diff options
author | Sylvain Henry <sylvain@haskus.fr> | 2020-03-12 17:06:09 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-04-01 01:21:27 -0400 |
commit | 0002db1bf436cbd32f97b659a52b1eee4e8b21db (patch) | |
tree | c42a2a91c5194a8af5c99b189ff1f8b6471ee809 /distrib | |
parent | 7627eab5dd882eb6f1567e3ae95c6c770830a5eb (diff) | |
download | haskell-0002db1bf436cbd32f97b659a52b1eee4e8b21db.tar.gz |
Kill wORDS_BIGENDIAN and replace it with platformByteOrder (#17957)
Metric Decrease:
T13035
T1969
Diffstat (limited to 'distrib')
-rw-r--r-- | distrib/configure.ac.in | 11 |
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' # |