Skip to content
Browse files

Bug 7503: Remove configure-time check for big/little endian. Just use…

… platforms.descr.
  • Loading branch information...
1 parent 7c7d570 commit 255d60a9730ba38f969cab6cc78c072d2c7483c1 @waywardmonkeys waywardmonkeys committed
Showing with 5 additions and 23 deletions.
  1. +0 −1 Defaults.in
  2. +5 −0 common/system/Makegen
  3. +0 −22 configure.in
View
1 Defaults.in
@@ -87,5 +87,4 @@ $GC_CFLAGS = '@GC_CFLAGS@';
$GC_LIBS = '@GC_LIBS@';
# Handle constants from common/system.
-$architecture_little_endian = "@little_endian@";
$machine_name = "@host_cpu@";
View
5 common/system/Makegen
@@ -31,6 +31,11 @@ if (0 && $enable_bootstrap) {
'compile', 'no-mindy', 'install');
}
+$architecture_little_endian = '#f';
+if ($target_platform{'big-endian?'} == '#f') {
+ $architecture_little_endian = '#t';
+}
+
open(CONSTANTS,">$buildroot/$subdir/architecture.dylan")
|| die "cannot create architecture.dylan";
print CONSTANTS <<"EOF";
View
22 configure.in
@@ -667,28 +667,6 @@ AC_CHECK_DECLS([cfmakeraw],,,[#include <termios.h>])
#====================================================================
#--------------------------------------------------------------------
-# Determine whether the host architecture is little-endian, for use
-# by the operating-system library. We define our own instead of
-# using the builting AC_C_BIGENDIAN to make things a bit cleaner
-# and to avoid an annoying warning from autoconf from the implicit
-# call to AC_TRY_RUN that the builtin macro uses.
-#
-# CAVEAT HACKER: this will need to be revisited if we ever allow
-# cross compilation.
-#--------------------------------------------------------------------
-
-AC_MSG_CHECKING(whether byte ordering is little-endian)
-AC_TRY_RUN([
-int main()
-{
- unsigned short foo = 0xFEFF;
- exit(((unsigned char *)&foo)[0] != 0xFE);
-}
-], little_endian=["#f"], little_endian=["#t"], little_endian=["#f"])
-AC_MSG_RESULT("$little_endian")
-AC_SUBST(little_endian)
-
-#--------------------------------------------------------------------
# Build and run config.status.
#--------------------------------------------------------------------

0 comments on commit 255d60a

Please sign in to comment.
Something went wrong with that request. Please try again.