# HG changeset patch # User "Yann E. MORIN" # Date 1213913202 0 # Node ID 2209aaba05ab40ca55750214dd652304535c2cf4 # Parent c27787270792ac11c0739c09bb2df82afff83aea Backport #718 from trunk: Fix building MPFR on distro that have strict sanity checks on libtool.m4 and ltmain.sh versions mismatch. UNTESTED! /branches/1.1/scripts/build/mpfr.sh | 11 11 0 0 +++++++++++ 1 file changed, 11 insertions(+) diff -r c27787270792 -r 2209aaba05ab scripts/build/mpfr.sh --- a/scripts/build/mpfr.sh Thu Jun 19 22:02:17 2008 +0000 +++ b/scripts/build/mpfr.sh Thu Jun 19 22:06:42 2008 +0000 @@ -25,6 +25,17 @@ CT_DoStep INFO "Installing MPFR" + # OK, Gentoo have a sanity check that libtool.m4 and ltmain.sh have the + # same version number. Unfortunately, some tarballs of MPFR are not + # built sanely, and thus ./configure fails on Gentoo. + # See: http://sourceware.org/ml/crossgcc/2008-05/msg00080.html + # and: http://sourceware.org/ml/crossgcc/2008-06/msg00005.html + # This hack is not bad per se, but the MPFR guys would be better to not + # do that in the future... + CT_DoLog EXTRA "Re-building configuration files" + autoreconf -fi 2>&1 |CT_DoLog ALL + libtoolize 2>&1 |CT_DoLog ALL + CT_DoLog EXTRA "Configuring MPFR" CFLAGS="${CT_CFLAGS_FOR_HOST}" \ "${CT_SRC_DIR}/${CT_MPFR_FILE}/configure" \