projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
961a377
)
[project @ 1998-03-03 17:30:14 by simonm]
author
simonm
<unknown>
Tue, 3 Mar 1998 17:30:24 +0000
(17:30 +0000)
committer
simonm
<unknown>
Tue, 3 Mar 1998 17:30:24 +0000
(17:30 +0000)
Add some size tests.
configure.in
patch
|
blob
|
history
mk/config.h.in
patch
|
blob
|
history
diff --git
a/configure.in
b/configure.in
index
97acf32
..
7487fc9
100644
(file)
--- a/
configure.in
+++ b/
configure.in
@@
-470,6
+470,13
@@
dnl ** check for leading underscores in symbol names
#
AC_UNDERSCORE
#
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 ''
AC_OUTPUT(mk/config.mk, echo timestamp > mk/stamp-h )
echo ''
diff --git
a/mk/config.h.in
b/mk/config.h.in
index
0596c44
..
6eac388
100644
(file)
--- a/
mk/config.h.in
+++ b/
mk/config.h.in
@@
-188,3
+188,12
@@
/* Define this if your time.h defines altzone */
#undef HAVE_ALTZONE
/* Define this if your time.h defines altzone */
#undef HAVE_ALTZONE
+
+/* sizeof(int) */
+#undef SIZEOF_INT
+
+/* sizeof(long) */
+#undef SIZEOF_LONG
+
+/* sizeof(void *) */
+#undef SIZEOF_VOID_P