242 |
AC_CHECK_SIZEOF(size_t) |
AC_CHECK_SIZEOF(size_t) |
243 |
AC_CHECK_SIZEOF(long long) |
AC_CHECK_SIZEOF(long long) |
244 |
AC_CHECK_SIZEOF(unsigned long long) |
AC_CHECK_SIZEOF(unsigned long long) |
245 |
|
AC_CHECK_SIZEOF(__int64) |
246 |
|
AC_CHECK_SIZEOF(unsigned __int64) |
247 |
AC_CHECK_SIZEOF(void *) |
AC_CHECK_SIZEOF(void *) |
248 |
AC_CHECK_SIZEOF(intptr_t) |
AC_CHECK_SIZEOF(intptr_t) |
249 |
AC_CHECK_SIZEOF(uintptr_t) |
AC_CHECK_SIZEOF(uintptr_t) |
421 |
AC_SUBST([SCM_I_GSC_T_UINT32]) |
AC_SUBST([SCM_I_GSC_T_UINT32]) |
422 |
|
|
423 |
### Optional type scm_t_int64 (ANSI C says int, short, or long might work) |
### Optional type scm_t_int64 (ANSI C says int, short, or long might work) |
424 |
### Also try long long if we have it. |
### Also try 'long long' and '__int64' if we have it. |
425 |
SCM_I_GSC_T_INT64=0 |
SCM_I_GSC_T_INT64=0 |
426 |
if test "$ac_cv_sizeof_int" -eq 8; then |
if test "$ac_cv_sizeof_int" -eq 8; then |
427 |
SCM_I_GSC_T_INT64='"int"' |
SCM_I_GSC_T_INT64='"int"' |
431 |
SCM_I_GSC_T_INT64='"short"' |
SCM_I_GSC_T_INT64='"short"' |
432 |
elif test "$ac_cv_sizeof_long_long" -eq 8; then |
elif test "$ac_cv_sizeof_long_long" -eq 8; then |
433 |
SCM_I_GSC_T_INT64='"long long"' |
SCM_I_GSC_T_INT64='"long long"' |
434 |
|
elif test "$ac_cv_sizeof___int64" -eq 8; then |
435 |
|
SCM_I_GSC_T_INT64='"__int64"' |
436 |
elif test "$scm_stdint_has_int64"; then |
elif test "$scm_stdint_has_int64"; then |
437 |
SCM_I_GSC_T_INT64='"int64_t"' |
SCM_I_GSC_T_INT64='"int64_t"' |
438 |
SCM_I_GSC_NEEDS_STDINT_H=1 |
SCM_I_GSC_NEEDS_STDINT_H=1 |
445 |
AC_SUBST([SCM_I_GSC_T_INT64]) |
AC_SUBST([SCM_I_GSC_T_INT64]) |
446 |
|
|
447 |
### Optional type scm_t_uint64 (ANSI C says int, short, or long might work) |
### Optional type scm_t_uint64 (ANSI C says int, short, or long might work) |
448 |
### Also try long long if we have it. |
### Also try 'long long' and '__int64' if we have it. |
449 |
SCM_I_GSC_T_UINT64=0 |
SCM_I_GSC_T_UINT64=0 |
450 |
if test "$ac_cv_sizeof_unsigned_int" -eq 8; then |
if test "$ac_cv_sizeof_unsigned_int" -eq 8; then |
451 |
SCM_I_GSC_T_UINT64='"unsigned int"' |
SCM_I_GSC_T_UINT64='"unsigned int"' |
455 |
SCM_I_GSC_T_UINT64='"unsigned short"' |
SCM_I_GSC_T_UINT64='"unsigned short"' |
456 |
elif test "$ac_cv_sizeof_unsigned_long_long" -eq 8; then |
elif test "$ac_cv_sizeof_unsigned_long_long" -eq 8; then |
457 |
SCM_I_GSC_T_UINT64='"unsigned long long"' |
SCM_I_GSC_T_UINT64='"unsigned long long"' |
458 |
|
elif test "$ac_cv_sizeof_unsigned___int64" -eq 8; then |
459 |
|
SCM_I_GSC_T_UINT64='"unsigned __int64"' |
460 |
elif test "$scm_stdint_has_uint64"; then |
elif test "$scm_stdint_has_uint64"; then |
461 |
SCM_I_GSC_T_UINT64='"uint64_t"' |
SCM_I_GSC_T_UINT64='"uint64_t"' |
462 |
SCM_I_GSC_NEEDS_STDINT_H=1 |
SCM_I_GSC_NEEDS_STDINT_H=1 |