nicer awk check (logging) etc.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4183 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
atmos4 2002-01-15 22:30:56 +00:00
parent d255ad6cb6
commit 49c43f8c01
1 changed files with 7 additions and 6 deletions

13
configure vendored
View File

@ -1010,16 +1010,17 @@ fi
# checking for a working awk, I'm using mawk first, because it's fastest - atmos
_awk=
if test "$_vidix" = yes ; then
_awk_works=no
_awk_verc_fail=yes
echocheck "awk"
for _awk in mawk gawk nawk awk; do
if echo 'BEGIN{testme();}function testme(){print"test";}'|$_awk -f/dev/stdin 2>&1 >/dev/null; then
_awk_works=yes
if ( echo 'BEGIN{testme();}function testme(){print"";}'|$_awk -f/dev/stdin ) >> "$TMPLOG" 2>&1; then
_awk_verc_fail=no
break
fi
done
test "$_awk_works" = no && _awk=no
echo Checking for awk ... $_awk
if test "$_awk_works" = no; then
test "$_awk_verc_fail" = yes && _awk=no
echores "$_awk"
if test "$_awk_verc_fail" = yes; then
echo "VIDIX needs Awk, but there was no working implementation found!"
echo "Try the GNU implementation, which can be downloaded from:"
echo "ftp://ftp.gnu.org/gnu/gawk/"