From: Niels Möller Date: Fri, 24 Sep 2010 05:44:37 +0000 (+0200) Subject: (HAVE_NATIVE_64_BIT): New config.h define. X-Git-Tag: nettle_2.2_release_20110711~242 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=19c13e25749b858141e674b767e41f78dbfc33b5;p=thirdparty%2Fnettle.git (HAVE_NATIVE_64_BIT): New config.h define. Rev: nettle/configure.ac:1.26 --- diff --git a/configure.ac b/configure.ac index 18510101..1002a534 100644 --- a/configure.ac +++ b/configure.ac @@ -116,7 +116,7 @@ if test x$enable_dependency_tracking = xyes ; then ]) fi -# Figure out ABI. Currently, configurable only be setting CFLAGS. +# Figure out ABI. Currently, configurable only by setting CFLAGS. ABI=standard case "$host_cpu" in @@ -430,7 +430,6 @@ AC_C_INLINE AC_TYPE_UID_T AC_TYPE_SIZE_T AC_HEADER_TIME -# Used by eratosthenes.c AC_CHECK_SIZEOF(long) AC_CHECK_HEADERS([openssl/blowfish.h openssl/des.h openssl/cast.h openssl/aes.h],, @@ -522,6 +521,12 @@ fi AC_SUBST(OPENSSL_LIBFLAGS) +# Choose strategy for Camellia round +AH_BOTTOM( +[/* Needs include of before use. */ +#define HAVE_NATIVE_64_BIT (SIZEOF_LONG * CHAR_BIT >= 64) +]) + # clock_gettime is in librt on *-*-osf5.1 and on glibc, so add -lrt to # BENCH_LIBS if needed. On linux (tested on x86_32, 2.6.26), # clock_getres reports ns accuracy, while in a quick test on osf