scripts/build/mpfr.sh
changeset 1063 1b4b6359a329
parent 798 aa89c67f0ffc
child 1112 c72aecd1a9ef
     1.1 --- a/scripts/build/mpfr.sh	Sun Aug 17 14:10:44 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