From 588b1978a19f8bb468165740dc293ae1a4e28951 Mon Sep 17 00:00:00 2001 From: Richard Sharpe Date: Sun, 6 Apr 2003 02:46:10 +0000 Subject: [PATCH] Make autogen.sh more portable by having it work on both Linux and FreeBSD under sh and bash. (This used to be commit 4070ff1c6907c0cc3a86db735e7df25352dfb625) --- source3/autogen.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/autogen.sh b/source3/autogen.sh index 32dfd9f72a5..be3e473b405 100755 --- a/source3/autogen.sh +++ b/source3/autogen.sh @@ -15,7 +15,7 @@ AUTOCONFFOUND="0" ## Look for autoheader ## for i in $TESTAUTOHEADER; do - if which $i > /dev/null; then + if which $i > /dev/null 2>&1; then if [ `$i --version | head -1 | cut -d. -f 2` -ge 53 ]; then AUTOHEADER=$i AUTOHEADERFOUND="1" @@ -29,7 +29,7 @@ done ## for i in $TESTAUTOCONF; do - if which $i > /dev/null; then + if which $i > /dev/null 2>&1; then if [ `$i --version | head -1 | cut -d. -f 2` -ge 53 ]; then AUTOCONF=$i AUTOCONFFOUND="1"