summaryrefslogtreecommitdiff
path: root/m4/ulonglong.m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2007-10-31 12:55:02 +0100
committerBruno Haible <bruno@clisp.org>2007-10-31 12:55:02 +0100
commit1bdc3263719ddd23c68fc9db896388670451b58c (patch)
treeaf2d07a27cb9774d98b2d3da363b46ebc63a0011 /m4/ulonglong.m4
parent9b769afcf83c8f4ecd210e4493bf90432250db32 (diff)
downloadgnulib-1bdc3263719ddd23c68fc9db896388670451b58c.tar.gz
Ensure AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT are consistent.
Diffstat (limited to 'm4/ulonglong.m4')
-rw-r--r--m4/ulonglong.m437
1 files changed, 1 insertions, 36 deletions
diff --git a/m4/ulonglong.m4 b/m4/ulonglong.m4
index 34f06e4c95..971f409f25 100644
--- a/m4/ulonglong.m4
+++ b/m4/ulonglong.m4
@@ -1,44 +1,9 @@
-# ulonglong.m4 serial 8
+# ulonglong.m4 serial 9
dnl Copyright (C) 1999-2007 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
-dnl From Paul Eggert.
-
-# Define HAVE_UNSIGNED_LONG_LONG_INT if 'unsigned long long int' works.
-# This fixes a bug in Autoconf 2.61, but can be removed once we
-# assume 2.62 everywhere.
-
-# Note: If the type 'unsigned long long int' exists but is only 32 bits
-# large (as on some very old compilers), AC_TYPE_UNSIGNED_LONG_LONG_INT
-# will not be defined. In this case you can treat 'unsigned long long int'
-# like 'unsigned long int'.
-
-AC_DEFUN([AC_TYPE_UNSIGNED_LONG_LONG_INT],
-[
- AC_CACHE_CHECK([for unsigned long long int],
- [ac_cv_type_unsigned_long_long_int],
- [AC_LINK_IFELSE(
- [AC_LANG_PROGRAM(
- [[#if ! (18446744073709551615ULL <= -1ull)
- error in preprocessor;
- #endif
- unsigned long long int ull = 18446744073709551615ULL;
- typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1
- ? 1 : -1)];
- int i = 63;]],
- [[unsigned long long int ullmax = 18446744073709551615ull;
- return (ull << 63 | ull >> 63 | ull << i | ull >> i
- | ullmax / ull | ullmax % ull);]])],
- [ac_cv_type_unsigned_long_long_int=yes],
- [ac_cv_type_unsigned_long_long_int=no])])
- if test $ac_cv_type_unsigned_long_long_int = yes; then
- AC_DEFINE([HAVE_UNSIGNED_LONG_LONG_INT], 1,
- [Define to 1 if the system has the type `unsigned long long int'.])
- fi
-])
-
# This macro is obsolescent and should go away soon.
AC_DEFUN([gl_AC_TYPE_UNSIGNED_LONG_LONG],
[