1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-08 23:37:47 +02:00

* configure.ac: Check for UINT64_C to go along with uint64_t.

This commit is contained in:
David Shaw 2003-09-04 02:49:15 +00:00
parent 8ef5348dd4
commit 8220c4356b
2 changed files with 14 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2003-09-03 David Shaw <dshaw@jabberwocky.com>
* configure.ac: Check for UINT64_C to go along with uint64_t.
2003-08-21 Werner Koch <wk@gnupg.org>
Released 1.2.3.

View File

@ -568,12 +568,20 @@ if test "$ac_cv_sizeof_unsigned_short" = "0" \
fi
if test "$use_tiger" = yes || test "$use_new_tiger" = yes || test "$use_sha512" = yes ; then
AC_CHECK_SIZEOF(uint64_t)
# Ensure that we have UINT64_C before we bother to check for uint64_t
AC_CACHE_CHECK([for UINT64_C],[gnupg_cv_uint64_c_works],
AC_COMPILE_IFELSE(AC_LANG_PROGRAM([#include <inttypes.h>
uint64_t foo=UINT64_C(42);]),gnupg_cv_uint64_c_works=yes,gnupg_cv_uint64_c_works=no))
if test "$gnupg_cv_uint64_c_works" = "yes" ; then
AC_CHECK_SIZEOF(uint64_t)
fi
# Do we have any 64-bit data types at all?
if test "$ac_cv_sizeof_unsigned_int" != "8" \
&& test "$ac_cv_sizeof_unsigned_long" != "8" \
&& test "$ac_cv_sizeof_unsigned_long_long" != "8" \
&& test "$ac_cv_sizeof_uint64_t" != "8"; then
&& test x"$ac_cv_sizeof_uint64_t" != "x8"; then
AC_MSG_WARN([No 64-bit types. Disabling TIGER/192, SHA-384, and SHA-512])
else
if test "$use_tiger" = yes ; then