From 439581704256d333d623161c6ea72068c425bfdb Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sun, 17 Mar 2013 18:40:14 -0700 Subject: [PATCH] Check for gcc TI mode availablity --- configure.ac | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/configure.ac b/configure.ac index 19cec256..06d27a29 100644 --- a/configure.ac +++ b/configure.ac @@ -148,6 +148,19 @@ dnl Checks for typedefs, structures, and compiler characteristics. AC_C_BIGENDIAN +AC_MSG_CHECKING(for 128-bit arithmetic) +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ +#include +]], [[ +typedef unsigned uint128_t __attribute__((mode(TI))); +uint128_t x; +(void) x; +return sizeof(x) / CHAR_BIT != 16U +]])], +[AC_MSG_RESULT(yes) + AC_DEFINE([HAVE_TI_MODE], [1], [gcc TI mode is available])], +[AC_MSG_RESULT(no)]) + dnl Checks for functions and headers AC_CHECK_FUNC(clock_gettime, , [AC_CHECK_LIB(rt, clock_gettime)])