1 AC_DEFUN([AX_DETECT_IMATH], [
2 AC_DEFINE([USE_IMATH_FOR_MP], [], [use imath to implement isl_int])
4 MP_CPPFLAGS="-I$srcdir/imath_wrap"
8 SAVE_CPPFLAGS="$CPPFLAGS"
9 CPPFLAGS="$MP_CPPFLAGS $CPPFLAGS"
10 AC_CHECK_HEADER([imath.h], [], [AC_ERROR([imath.h header not found])])
11 AC_CHECK_HEADER([gmp_compat.h], [], [AC_ERROR([gmp_compat.h header not found])])
12 CPPFLAGS="$SAVE_CPPFLAGS"
14 AM_CONDITIONAL(NEED_GET_MEMORY_FUNCTIONS, test x = xfalse)