[linux-user-chroot] autogen: remove dependency on which



commit b792258e1f76c04a5bb61f60e7121a362b38a00b
Author: Richard Maw <richard maw codethink co uk>
Date:   Wed Apr 18 16:59:11 2012 +0100

    autogen: remove dependency on which
    
    Signed-off-by: Colin Walters <walters verbum org>

 autogen.sh |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/autogen.sh b/autogen.sh
index 6035bc0..4674ca8 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -6,9 +6,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 >/dev/null 2>&1); then
+        echo "*** No autoreconf found, please install it ***"
         exit 1
 fi
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]