mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-22 17:00:00 +08:00
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
This commit is contained in:
parent
b4d30aab66
commit
a3993f3350
@ -1,3 +1,8 @@
|
||||
2006-12-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||
|
||||
* configure.in: Warn that MPFR 2.2.0 is buggy.
|
||||
* configure: Regenerate.
|
||||
|
||||
2006-12-27 Ian Lance Taylor <iant@google.com>
|
||||
|
||||
* configure.in: When removing Makefiles to force a reconfigure, also
|
||||
|
12
configure.in
12
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"
|
||||
|
Loading…
Reference in New Issue
Block a user