MPFR: correctly re-install config.{guess,sub} with autotools >=2.0.0.
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Thu Nov 20 17:10:09 2008 +0000 (2008-11-20)
changeset 10631b4b6359a329
parent 1062 a435f445d477
child 1064 492d939dbb19
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(-)
scripts/build/mpfr.sh
     1.1 --- a/scripts/build/mpfr.sh	Wed Nov 19 20:16:54 2008 +0000
     1.2 +++ b/scripts/build/mpfr.sh	Thu Nov 20 17:10:09 2008 +0000
     1.3 @@ -37,7 +37,19 @@
     1.4      if [ ! -f .autotools.ct-ng ]; then
     1.5          CT_DoLog DEBUG "Re-building autotools files"
     1.6          CT_DoExecLog ALL autoreconf -fi
     1.7 -        CT_DoExecLog ALL libtoolize -f
     1.8 +        # Starting with libtool-1.9f, config.{guess,sub} are no longer
     1.9 +        # installed without -i, but starting with libtool-2.2.6, they
    1.10 +        # are no longer removed without -i. Sight... Just use -i with
    1.11 +        # libtool >=2
    1.12 +        # See: http://sourceware.org/ml/crossgcc/2008-11/msg00046.html
    1.13 +        # and: http://sourceware.org/ml/crossgcc/2008-11/msg00048.html
    1.14 +        libtoolize_opt=
    1.15 +        case "$(libtoolize --version |head -n 1 |gawk '{ print $(NF); }')" in
    1.16 +            0.*)    ;;
    1.17 +            1.*)    ;;
    1.18 +            *)      libtoolize_opt=-i;;
    1.19 +        esac
    1.20 +        CT_DoExecLog ALL libtoolize -f ${libtoolize_opt}
    1.21          touch .autotools.ct-ng
    1.22      fi
    1.23      CT_Popd