# HG changeset patch # User "Yann E. MORIN" # Date 1227201009 0 # Node ID 1b4b6359a329dd154fb250406261cf683f9bbade # Parent a435f445d47705bf33b0788f469ba58f4e032e0a MPFR: correctly re-install config.{guess,sub} with autotools >=2.0.0. /trunk/scripts/build/mpfr.sh | 14 13 1 0 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff -r a435f445d477 -r 1b4b6359a329 scripts/build/mpfr.sh --- a/scripts/build/mpfr.sh Wed Nov 19 20:16:54 2008 +0000 +++ b/scripts/build/mpfr.sh Thu Nov 20 17:10:09 2008 +0000 @@ -37,7 +37,19 @@ if [ ! -f .autotools.ct-ng ]; then CT_DoLog DEBUG "Re-building autotools files" CT_DoExecLog ALL autoreconf -fi - CT_DoExecLog ALL libtoolize -f + # Starting with libtool-1.9f, config.{guess,sub} are no longer + # installed without -i, but starting with libtool-2.2.6, they + # are no longer removed without -i. Sight... Just use -i with + # libtool >=2 + # See: http://sourceware.org/ml/crossgcc/2008-11/msg00046.html + # and: http://sourceware.org/ml/crossgcc/2008-11/msg00048.html + libtoolize_opt= + case "$(libtoolize --version |head -n 1 |gawk '{ print $(NF); }')" in + 0.*) ;; + 1.*) ;; + *) libtoolize_opt=-i;; + esac + CT_DoExecLog ALL libtoolize -f ${libtoolize_opt} touch .autotools.ct-ng fi CT_Popd