1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-13 07:10:20 +02:00

check for sizes of short, size_t, uintptr_t, and

ptrdiff_t.  Checking for a size also checks automatically for the
existence of the type, so we don't check for the existence of
uintptr_t, ptrdiff_t and long long ourselves.
This commit is contained in:
Marius Vollmer 2001-11-12 00:58:33 +00:00
parent d6b8cf1192
commit 813b3dd465

View file

@ -176,8 +176,10 @@ AC_C_CONST
AC_C_INLINE AC_C_INLINE
AC_C_BIGENDIAN AC_C_BIGENDIAN
AC_CHECK_SIZEOF(short)
AC_CHECK_SIZEOF(int) AC_CHECK_SIZEOF(int)
AC_CHECK_SIZEOF(long) AC_CHECK_SIZEOF(long)
AC_CHECK_SIZEOF(size_t)
dnl Check for integral types that can represent the range of pointers. dnl Check for integral types that can represent the range of pointers.
dnl If these types don't exist on this platform, they are replaced by dnl If these types don't exist on this platform, they are replaced by
@ -185,17 +187,10 @@ dnl "unsigned long" and "long", respectively.
AC_CHECK_HEADERS(stdint.h) AC_CHECK_HEADERS(stdint.h)
AC_CHECK_HEADERS(inttypes.h) AC_CHECK_HEADERS(inttypes.h)
AC_CHECK_TYPES([uintptr_t, ptrdiff_t]) AC_CHECK_SIZEOF(uintptr_t)
AC_CHECK_SIZEOF(ptrdiff_t)
AC_CACHE_CHECK([for long longs], scm_cv_long_longs, AC_CHECK_SIZEOF(long long)
AC_TRY_COMPILE(,
[long long a],
scm_cv_long_longs=yes,
scm_cv_long_longs=no))
if test "$scm_cv_long_longs" = yes; then
AC_DEFINE(HAVE_LONG_LONGS)
AC_CHECK_SIZEOF(long long)
fi
AC_CHECK_SIZEOF(void *) AC_CHECK_SIZEOF(void *)