|
Packit |
fc043f |
# ulonglong.m4 serial 4
|
|
Packit |
fc043f |
dnl Copyright (C) 1999-2004 Free Software Foundation, Inc.
|
|
Packit |
fc043f |
dnl This file is free software; the Free Software Foundation
|
|
Packit |
fc043f |
dnl gives unlimited permission to copy and/or distribute it,
|
|
Packit |
fc043f |
dnl with or without modifications, as long as this notice is preserved.
|
|
Packit |
fc043f |
|
|
Packit |
fc043f |
dnl From Paul Eggert.
|
|
Packit |
fc043f |
|
|
Packit |
fc043f |
# Define HAVE_UNSIGNED_LONG_LONG if 'unsigned long long' works.
|
|
Packit |
fc043f |
|
|
Packit |
fc043f |
AC_DEFUN([gl_AC_TYPE_UNSIGNED_LONG_LONG],
|
|
Packit |
fc043f |
[
|
|
Packit |
fc043f |
AC_CACHE_CHECK([for unsigned long long], ac_cv_type_unsigned_long_long,
|
|
Packit |
fc043f |
[AC_TRY_LINK([unsigned long long ull = 1ULL; int i = 63;],
|
|
Packit |
fc043f |
[unsigned long long ullmax = (unsigned long long) -1;
|
|
Packit |
fc043f |
return ull << i | ull >> i | ullmax / ull | ullmax % ull;],
|
|
Packit |
fc043f |
ac_cv_type_unsigned_long_long=yes,
|
|
Packit |
fc043f |
ac_cv_type_unsigned_long_long=no)])
|
|
Packit |
fc043f |
if test $ac_cv_type_unsigned_long_long = yes; then
|
|
Packit |
fc043f |
AC_DEFINE(HAVE_UNSIGNED_LONG_LONG, 1,
|
|
Packit |
fc043f |
[Define if you have the 'unsigned long long' type.])
|
|
Packit |
fc043f |
fi
|
|
Packit |
fc043f |
])
|