25
25
if test -z "$gl_cv_size_max"; then
26
26
dnl Define it ourselves. Here we assume that the type 'size_t' is not wider
27
27
dnl than the type 'unsigned long'. Try hard to find a definition that can
28
28
dnl be used in a preprocessor #if, i.e. doesn't contain a cast.
29
29
AC_COMPUTE_INT([size_t_bits_minus_1], [sizeof (size_t) * CHAR_BIT - 1],
32
32
AC_COMPUTE_INT([fits_in_uint], [sizeof (size_t) <= sizeof (unsigned int)],
34
34
if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
35
35
if test $fits_in_uint = 1; then
36
36
dnl Even though SIZE_MAX fits in an unsigned int, it must be of type