From 3c8de5a6f6fe71efdce5559165283a9b9daf2d85 Mon Sep 17 00:00:00 2001
From: simonm <unknown>
Date: Wed, 11 Mar 1998 14:26:23 +0000
Subject: [PATCH] [project @ 1998-03-11 14:26:23 by simonm] - move SIZEOF
 checks together (previous commit added SIZEOF checks to    a different part
 of the file).

 - check alignment of longs:  unsigned ints are no good, because we need to
   check whether f.e. a float can be put on the stack, which is
   StgWord aligned, and currently an StgWord is basically a long.
---
 configure.in | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

diff --git a/configure.in b/configure.in
index f14eab27453c..ef4f952ab2db 100644
--- a/configure.in
+++ b/configure.in
@@ -453,11 +453,14 @@ AC_ALTZONE
 dnl ** what are the sizes of various types
 dnl    (these must come before GHC_CHECK_ALIGNMENT)
 AC_CHECK_SIZEOF(unsigned int,4)
-AC_CHECK_SIZEOF(float,4)
-AC_CHECK_SIZEOF(double,8)
+AC_CHECK_SIZEOF(float,       4)
+AC_CHECK_SIZEOF(double,      8)
+AC_CHECK_SIZEOF(long,        4)
+AC_CHECK_SIZEOF(void *,      4)
 
 dnl ** what are alignment constraints on various types
 GHC_CHECK_ALIGNMENT(unsigned int) dnl redundant but harmless
+GHC_CHECK_ALIGNMENT(long)
 GHC_CHECK_ALIGNMENT(float)
 GHC_CHECK_ALIGNMENT(double)
 
@@ -481,13 +484,6 @@ dnl ** check for leading underscores in symbol names
 #
 AC_UNDERSCORE
 
-#
-dnl ** check the size of various C types
-#
-AC_CHECK_SIZEOF(int,    4)
-AC_CHECK_SIZEOF(long,   4)
-AC_CHECK_SIZEOF(void *, 4)
-
 AC_OUTPUT(mk/config.mk, echo timestamp > mk/stamp-h )
 
 echo ''
-- 
GitLab