Browse Source

Merge ce521b9985 into 2c99c8ef1b

pull/1/merge
mark7 9 years ago
parent
commit
4e0122a5a1
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      bootstrap

+ 9
- 1
bootstrap View File

@@ -46,9 +46,17 @@ for v in 13 12 11 10 9 8 7 6 5; do
fi
done

verlte() {
[ "$1" = "`(echo "$1"; echo "$2") | sort -V | head -n1 | tr -d '\n'`" ]
}

verlt() {
[ "$1" = "$2" ] && return 1 || verlte $1 $2
}

if test "${amvers}" = "no" && automake --version > /dev/null 2>&1; then
amvers="`automake --version | sed -e '1s/[^0-9]*//' -e q`"
if expr "$amvers" "<" "1.5" > /dev/null 2>&1; then
if verlt "$amvers" 1.5; then
amvers="no"
else
amvers=""


Loading…
Cancel
Save