[project @ 1998-03-17 11:40:36 by simonm]
[ghc-hetmet.git] / configure.in
index 7487fc9..ef4f952 100644 (file)
@@ -443,13 +443,27 @@ dnl ** how do we get a timezone name, and UTC offset ?
 AC_STRUCT_TIMEZONE
 
 # 
-dnl what's the type of timezone?
+dnl ** what's the type of timezone?
 AC_TYPE_TIMEZONE
 
 #
-dnl do we have altzone?
+dnl ** do we have altzone?
 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(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)
+
 #
 dnl ** check for specific library functions that we are interested in
 #
@@ -470,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 ''