]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
configure.ac: Check for the minimum in-tree MPFR version handled.
authorMaciej W. Rozycki <macro@imgtec.com>
Mon, 12 Sep 2016 14:08:48 +0000 (14:08 +0000)
committerMaciej W. Rozycki <macro@gcc.gnu.org>
Mon, 12 Sep 2016 14:08:48 +0000 (14:08 +0000)
* configure.ac: Check for the minimum in-tree MPFR version
handled.
* configure: Regenerate.

From-SVN: r240092

ChangeLog
configure
configure.ac

index f08794d123411359ee7716c1438d949dd94c1f11..d0e4b06ea88edd2992cecc973dd468252648ccf4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2016-09-12  Maciej W. Rozycki  <macro@imgtec.com>
+
+       * configure.ac: Check for the minimum in-tree MPFR version
+       handled.
+       * configure: Regenerate.
+
 2016-07-20  Yan-Ting Lin  <currygt52@gmail.com>
 
        * configure.ac (nds32*-*-*): Remove entry to enable gdb.
index cd0e7b932c48bbe0799bc32a99618c752d162ce4..c4a2cd1db45f5c8b978d8b7140f97699fb632900 100755 (executable)
--- a/configure
+++ b/configure
@@ -5566,6 +5566,10 @@ if test "x$with_mpfr_lib" != x; then
   gmplibs="-L$with_mpfr_lib $gmplibs"
 fi
 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
+  # MPFR v3.1.0 moved the sources into a src sub-directory.
+  if ! test -d ${srcdir}/mpfr/src; then
+    as_fn_error "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
+  fi
   gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
   gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
   extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
index 51b53b5c56ab698596fa8caa20e7894848179b92..a1b9da4fa9ebee93ad97d33feb3d9dfaa7e683fc 100644 (file)
@@ -1546,6 +1546,11 @@ if test "x$with_mpfr_lib" != x; then
   gmplibs="-L$with_mpfr_lib $gmplibs"
 fi
 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
+  # MPFR v3.1.0 moved the sources into a src sub-directory.
+  if ! test -d ${srcdir}/mpfr/src; then
+    AC_MSG_ERROR([dnl
+Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+.])
+  fi
   gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
   gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
   extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"