]> Dogcows Code - chaz/tar/blob - m4/uintmax_t.m4
Backport to autoconf 2.13.
[chaz/tar] / m4 / uintmax_t.m4
1 #serial 5
2
3 dnl From Paul Eggert.
4
5 AC_PREREQ(2.13)
6
7 # Define uintmax_t to `unsigned long' or `unsigned long long'
8 # if <inttypes.h> does not exist.
9
10 AC_DEFUN(jm_AC_TYPE_UINTMAX_T,
11 [
12 AC_REQUIRE([jm_AC_HEADER_INTTYPES_H])
13 if test $jm_ac_cv_header_inttypes_h = no; then
14 AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG])
15 test $ac_cv_type_unsigned_long_long = yes \
16 && ac_type='unsigned long long' \
17 || ac_type='unsigned long'
18 AC_DEFINE_UNQUOTED(uintmax_t, $ac_type,
19 [ Define to unsigned long or unsigned long long
20 if <inttypes.h> doesn't define.])
21 fi
22 ])
This page took 0.032187 seconds and 4 git commands to generate.