summaryrefslogtreecommitdiff
path: root/bootstrap.sh
diff options
context:
space:
mode:
authorJens Geyer <jensg@apache.org>2015-04-03 12:37:03 +0200
committerJens Geyer <jensg@apache.org>2015-04-03 12:38:17 +0200
commit4aa95df383bfa13c46a4dc0b41672ec29d476300 (patch)
tree75992d632bd3b86fdd1536f2a4c0184443c72cba /bootstrap.sh
parentc2145725e1c397167514cf3f4d659eabcb3d4eb3 (diff)
downloadthrift-4aa95df383bfa13c46a4dc0b41672ec29d476300.tar.gz
THRIFT-3071 check minimum required version of automake in bootstrap.sh
Client: Build process Patch: James E. King, III <jim.king@simplivity.com> This closes #421 - check minimum required version of automake in bootstrap.sh - remove a warning from bootstrap processing
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-xbootstrap.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index 0c2b8868c..1a161c86e 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -38,6 +38,14 @@ else
exit 1
fi
+# we require automake 1.13 or later
+# check must happen externally due to use of newer macro
+AUTOMAKE_VERSION=`automake --version | head -n1 | rev | sed -e 's/\s.*$//' | rev`
+if [ "$AUTOMAKE_VERSION" \< "1.13" ]; then
+ echo >&2 "automake version $AUTOMAKE_VERSION is too old (need 1.13 or later)"
+ exit 1
+fi
+
autoscan
$LIBTOOLIZE --copy --automake
aclocal -I ./aclocal