*** empty log message ***
[findutils.git] / m4 / ulonglong.m4
blobe2fbb552613730441527ba7ccbd2b74d3d1fc2c6
1 #serial 2
3 dnl From Paul Eggert.
5 AC_DEFUN(jm_AC_TYPE_UNSIGNED_LONG_LONG,
7   AC_CACHE_CHECK([for unsigned long long], ac_cv_type_unsigned_long_long,
8   [AC_TRY_LINK([unsigned long long ull = 1; int i = 63;],
9     [unsigned long long ullmax = (unsigned long long) -1;
10      return ull << i | ull >> i | ullmax / ull | ullmax % ull;],
11     ac_cv_type_unsigned_long_long=yes,
12     ac_cv_type_unsigned_long_long=no)])
13   if test $ac_cv_type_unsigned_long_long = yes; then
14     AC_DEFINE(HAVE_UNSIGNED_LONG_LONG, 1,
15       [Define if you have the unsigned long long type.])
16   fi