diff options
author | Jim Meyering <jim@meyering.net> | 1999-01-30 13:50:58 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1999-01-30 13:50:58 +0000 |
commit | 076e82b82b4f799bb8c834e771e59ad645b3570c (patch) | |
tree | a164d4fd7f821234292c275fb3180cccb678d14f /m4 | |
parent | 779b181b61b19fe5c7a00f3278e6107cd3ed8a68 (diff) | |
download | coreutils-076e82b82b4f799bb8c834e771e59ad645b3570c.tar.xz |
Use 3-arg form of AC_DEFINE.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/uintmax_t.m4 | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/m4/uintmax_t.m4 b/m4/uintmax_t.m4 index 4c1d19659..8c0189bca 100644 --- a/m4/uintmax_t.m4 +++ b/m4/uintmax_t.m4 @@ -1,7 +1,9 @@ -#serial 1 +#serial 2 dnl From Paul Eggert. +AC_PREREQ(2.13) + # Define uintmax_t to `unsigned long' or `unsigned long long' # if <inttypes.h> does not exist. @@ -14,10 +16,11 @@ AC_DEFUN(jm_AC_TYPE_UINTMAX_T, [unsigned long long i = (unsigned long long) -1;], ac_cv_type_unsigned_long_long=yes, ac_cv_type_unsigned_long_long=no)]) - if test $ac_cv_type_unsigned_long_long = yes; then - AC_DEFINE(uintmax_t, unsigned long long) - else - AC_DEFINE(uintmax_t, unsigned long) - fi + test $ac_cv_type_unsigned_long_long = yes \ + && ac_type='unsigned long long' \ + || ac_type='unsigned long' + AC_DEFINE(uintmax_t, $ac_type, + [ Define to \`unsigned long' or \`unsigned long long' + if <inttypes.h> doesn't define.]) fi ]) |