From 9c499f6db327d82d8cc4a5af757912b2787a8ff5 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 2 Feb 2009 16:01:25 -0400 Subject: Updated configure.ac to check for MPFR 2.4.0 or higher. --- configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 3f42d55b..55fbefbd 100644 --- a/configure.ac +++ b/configure.ac @@ -124,6 +124,8 @@ AC_CACHE_CHECK( AC_LANG_PUSH(C++) AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include ]], [[mpfr_t bar; mpfr_init(bar); + char * buf = NULL; + mpfr_asprintf(&buf, "%Rf", bar); mpfr_clear(bar);]])],[libmpfr_avail_cv_=true],[libmpfr_avail_cv_=false]) AC_LANG_POP LIBS=$libmpfr_save_libs]) @@ -131,7 +133,7 @@ AC_CACHE_CHECK( if [test x$libmpfr_avail_cv_ = xtrue ]; then LIBS="-lmpfr $LIBS" else - AC_MSG_FAILURE("Could not find mpfr library (set CPPFLAGS and LDFLAGS?)") + AC_MSG_FAILURE("Could not find mpfr library 2.4.0 or higher (set CPPFLAGS and LDFLAGS?)") fi # check for boost_regex -- cgit v1.2.3