On Fri, 12 Aug 2016, Bernd Edlinger wrote: > > + # 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 > > I think it is a good idea to detect this situation, but you should advise the > user > that he has to use exactly the same version(s) that > contrib/download_prerequisites > installs.
We're not doing an exhaustive check for the GMP/MPFR/MPC dependencies here, so I think it's enough to point out the outright incompatibility. It might make sense though to have an additional check in the component requiring these libraries and issue a warning if a mismatch is detected with in-tree versions. Maciej