From 05f8009e4537c12f7a6c5cacb980ceb6d168943e Mon Sep 17 00:00:00 2001 From: fluxgen Date: Thu, 17 Oct 2002 09:30:10 +0000 Subject: checks for autoconf version --- autogen.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/autogen.sh b/autogen.sh index c64c182..59ce6f4 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,10 +1,20 @@ #!/bin/sh +required_version=52 +echo -n "Checking for autoconf version >= "${required_version}"......" +ac_version=`autoconf --version|head -n 1|cut -d . -f 2` +if [ ${ac_version} -lt ${required_version} ]; then + echo "No." + echo "You need to install autoconf version >= "${required_version} + exit 1 +fi +echo "Ok." + libtoolize --copy --force --automake || exit 1 rm -f config.cache aclocal autoheader automake -a autoconf - +echo "Done." -- cgit v0.11.2