summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@samba.org>2003-04-06 02:46:10 +0000
committerRichard Sharpe <sharpe@samba.org>2003-04-06 02:46:10 +0000
commit588b1978a19f8bb468165740dc293ae1a4e28951 (patch)
tree64b4f59b2e90170403494a76478569f77688cfab
parent35833e5aaf1ccf5c606e26eabe2fee8e4fb9f523 (diff)
downloadsamba-588b1978a19f8bb468165740dc293ae1a4e28951.tar.gz
samba-588b1978a19f8bb468165740dc293ae1a4e28951.tar.bz2
samba-588b1978a19f8bb468165740dc293ae1a4e28951.zip
Make autogen.sh more portable by having it work on both Linux and FreeBSD
under sh and bash. (This used to be commit 4070ff1c6907c0cc3a86db735e7df25352dfb625)
-rwxr-xr-xsource3/autogen.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/autogen.sh b/source3/autogen.sh
index 32dfd9f72a..be3e473b40 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"