diff options
author | Richard Sharpe <sharpe@samba.org> | 2003-04-06 02:46:10 +0000 |
---|---|---|
committer | Richard Sharpe <sharpe@samba.org> | 2003-04-06 02:46:10 +0000 |
commit | 588b1978a19f8bb468165740dc293ae1a4e28951 (patch) | |
tree | 64b4f59b2e90170403494a76478569f77688cfab /source3 | |
parent | 35833e5aaf1ccf5c606e26eabe2fee8e4fb9f523 (diff) | |
download | samba-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)
Diffstat (limited to 'source3')
-rwxr-xr-x | source3/autogen.sh | 4 |
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" |