mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-11 22:31:12 +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:
parent
d6b8cf1192
commit
813b3dd465
1 changed files with 5 additions and 10 deletions
15
configure.in
15
configure.in
|
@ -176,8 +176,10 @@ AC_C_CONST
|
|||
AC_C_INLINE
|
||||
AC_C_BIGENDIAN
|
||||
|
||||
AC_CHECK_SIZEOF(short)
|
||||
AC_CHECK_SIZEOF(int)
|
||||
AC_CHECK_SIZEOF(long)
|
||||
AC_CHECK_SIZEOF(size_t)
|
||||
|
||||
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
|
||||
|
@ -185,17 +187,10 @@ dnl "unsigned long" and "long", respectively.
|
|||
|
||||
AC_CHECK_HEADERS(stdint.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_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(long long)
|
||||
|
||||
AC_CHECK_SIZEOF(void *)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue