Mercurial > hg > octave-lyh > gnulib-hg
changeset 1894:f80f058b943b
(jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
that we can shift, multiply and divide unsigned long long
values; Ultrix cc can't do it.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Sun, 01 Aug 1999 08:47:11 +0000 |
parents | 70bc8fe03cad |
children | 36b9dcb0dc9e |
files | m4/ulonglong.m4 |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/m4/ulonglong.m4 +++ b/m4/ulonglong.m4 @@ -1,12 +1,13 @@ -#serial 1 +#serial 2 dnl From Paul Eggert. AC_DEFUN(jm_AC_TYPE_UNSIGNED_LONG_LONG, [ AC_CACHE_CHECK([for unsigned long long], ac_cv_type_unsigned_long_long, - [AC_TRY_COMPILE([], - [unsigned long long i = (unsigned long long) -1;], + [AC_TRY_LINK([unsigned long long ull = 1; int i = 63;], + [unsigned long long ullmax = (unsigned long long) -1; + return ull << i | ull >> i | ullmax / ull | ullmax % ull;], ac_cv_type_unsigned_long_long=yes, ac_cv_type_unsigned_long_long=no)]) if test $ac_cv_type_unsigned_long_long = yes; then