Commit 8c672e8d authored by Sam Hocevar's avatar Sam Hocevar

* bootstrap: simplified automake detection and added support for the FreeBSD

    automake naming scheme.
parent 5c8a0261
...@@ -51,41 +51,34 @@ if test -d extras/contrib/bin; then ...@@ -51,41 +51,34 @@ if test -d extras/contrib/bin; then
fi fi
# Check for automake # Check for automake
amvers="none" amvers="no"
if automake-1.9 --version >/dev/null 2>&1; then for v in "-1.9" "19" "-1.8" "18" "-1.7" "17" "-1.6" "16" "-1.5" "15"; do
amvers="-1.9" if automake${v} --version >/dev/null 2>&1; then
elif automake-1.8 --version >/dev/null 2>&1; then amsuff="${v}"
amvers="-1.8" amvers="${v}"
elif automake-1.7 --version >/dev/null 2>&1; then break
amvers="-1.7"
elif automake-1.6 --version >/dev/null 2>&1; then
amvers="-1.6"
if expr "`automake-1.6 --version | sed -e '1s/[^0-9]*//' -e q`" "<=" "1.6.1" > /dev/null 2>&1; then
AUTOMAKESUCKS=yes
fi fi
elif automake-1.5 --version >/dev/null 2>&1; then done
INSTALLSUCKS=yes
amvers="-1.5"
elif automake --version > /dev/null 2>&1; then
amvers=""
case "`automake --version | sed -e '1s/[^0-9]*//' -e q`" in
0|0.*|1|1.[01234]|1.[01234][-.]*)
amvers="none" ;;
1.5|1.5.*)
INSTALLSUCKS=yes ;;
1.6|1.6.0|1.6.1)
AUTOMAKESUCKS=yes ;;
1.9|1.9.2)
;;
esac
fi
if test "${amvers}" = "none"; then if test "${amvers}" = "no" && automake --version > /dev/null 2>&1; then
set +x amvers="`automake --version | sed -e '1s/[^0-9]*//' -e q`"
echo "$0: you need automake version 1.5 or later" amsuff=""
exit 1
fi fi
case "${amvers}" in
-1.6|16|1.6|1.6.0*|1.6.1*)
AUTOMAKESUCKS=yes
;;
-1.5|15|1.5|1.5.*)
INSTALLSUCKS=yes
;;
no|1.[01234]|1.[01234].*|1[01234])
set +x
echo "$0: you need automake version 1.5 or later"
exit 1
;;
esac
# Check for libtool # Check for libtool
libtoolize="no" libtoolize="no"
if glibtoolize --version >/dev/null 2>&1; then if glibtoolize --version >/dev/null 2>&1; then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment