From 12f04c88be9ff8a578d8fd6990ee2448c66dc5f4 Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Mon, 30 Apr 2012 16:33:14 +0100 Subject: autogen.sh: autoreconf without which and fix typo --- autogen.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/autogen.sh b/autogen.sh index 302e578..80804e0 100755 --- a/autogen.sh +++ b/autogen.sh @@ -7,9 +7,8 @@ test -n "$srcdir" || srcdir=. olddir=`pwd` cd $srcdir -AUTORECONF=`which autoreconf` -if test -z $AUTORECONF; then - echo "*** No autoreconf found, please intall it ***" +if ! (autoreconf --version 2>&1 >/dev/null); then + echo "*** No autoreconf found, please install it ***" exit 1 fi -- cgit v1.2.1