Changeset 7bbc2548f92696457164ebf7f4f86dc815ef80c7 for m4/size_max.m4
- Timestamp:
- 23/03/08 21:01:24 (8 months ago)
- git-parent:
- Files:
-
- m4/size_max.m4 (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
m4/size_max.m4
r1263062 r7bbc254 1 # size_max.m4 serial 51 # size_max.m4 serial 6 2 2 dnl Copyright (C) 2003, 2005-2006 Free Software Foundation, Inc. 3 3 dnl This file is free software; the Free Software Foundation … … 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 _AC_COMPUTE_INT([sizeof (size_t) * CHAR_BIT - 1], size_t_bits_minus_1,29 AC_COMPUTE_INT([size_t_bits_minus_1], [sizeof (size_t) * CHAR_BIT - 1], 30 30 [#include <stddef.h> 31 31 #include <limits.h>], size_t_bits_minus_1=) 32 _AC_COMPUTE_INT([sizeof (size_t) <= sizeof (unsigned int)], fits_in_uint,32 AC_COMPUTE_INT([fits_in_uint], [sizeof (size_t) <= sizeof (unsigned int)], 33 33 [#include <stddef.h>], fits_in_uint=) 34 34 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then … … 61 61 fi 62 62 ]) 63 64 dnl Autoconf >= 2.61 has AC_COMPUTE_INT built-in. 65 dnl Remove this when we can assume autoconf >= 2.61. 66 m4_ifdef([AC_COMPUTE_INT], [], [ 67 AC_DEFUN([AC_COMPUTE_INT], [_AC_COMPUTE_INT([$2],[$1],[$3],[$4])]) 68 ])
