diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2006-12-29 15:06:55 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2006-12-29 15:06:55 +0000 |
commit | a3993f33507e06424e79fd279f0f546798664440 (patch) | |
tree | bc948e39f4208ab26f88d749854880365f5df011 /configure.in | |
parent | b4d30aab66fcd30b09c49e161dc8d0b65620f2b6 (diff) | |
download | gcc-a3993f33507e06424e79fd279f0f546798664440.zip gcc-a3993f33507e06424e79fd279f0f546798664440.tar.gz gcc-a3993f33507e06424e79fd279f0f546798664440.tar.bz2 |
configure.in: Warn that MPFR 2.2.0 is buggy.
* configure.in: Warn that MPFR 2.2.0 is buggy.
* configure: Regenerate.
From-SVN: r120262
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/configure.in b/configure.in index d307bcf..e8face1 100644 --- a/configure.in +++ b/configure.in @@ -1117,14 +1117,22 @@ choke me if test x"$have_gmp" = xyes; then saved_LIBS="$LIBS" LIBS="$LIBS $gmplibs" + dnl MPFR 2.2.0 is acceptable but buggy, MPFR 2.2.1 is better. AC_MSG_CHECKING([for correct version of mpfr.h]) AC_TRY_LINK([#include <gmp.h> #include <mpfr.h>],[ -#if MPFR_VERSION_MAJOR < 2 || (MPFR_VERSION_MAJOR == 2 && MPFR_VERSION_MINOR < 2) +#if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0) choke me #endif mpfr_t n; mpfr_init(n); -], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]); have_gmp=no]) +], [AC_TRY_LINK([#include <gmp.h> +#include <mpfr.h>],[ +#if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1) + choke me +#endif + mpfr_t n; mpfr_init(n); +], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([buggy but acceptable])])], + [AC_MSG_RESULT([no]); have_gmp=no]) LIBS="$saved_LIBS" fi CFLAGS="$saved_CFLAGS" |