4
0

uintmax_t.m4 516 B

12345678910111213141516171819
  1. #serial 6
  2. dnl From Paul Eggert.
  3. AC_PREREQ(2.50)
  4. # Define uintmax_t to `unsigned long' or `unsigned long long'
  5. # if <inttypes.h> does not exist.
  6. AC_DEFUN([jm_AC_TYPE_UINTMAX_T],
  7. [
  8. AC_CHECK_TYPE(uintmax_t, ,
  9. [AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG])
  10. test $ac_cv_type_unsigned_long_long = yes \
  11. && ac_type='unsigned long long' \
  12. || ac_type='unsigned long'
  13. AC_DEFINE_UNQUOTED(uintmax_t, $ac_type,
  14. [Define to the widest unsigned type if standard headers do not declare.])])
  15. ])