Mercurial > mplayer.hg
changeset 4108:b4b7c47343c5
Checking for gawk
author | nick |
---|---|
date | Sat, 12 Jan 2002 15:53:26 +0000 |
parents | cf1d2f965867 |
children | 69eaa003a448 |
files | configure |
diffstat | 1 files changed, 22 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Sat Jan 12 11:40:39 2002 +0000 +++ b/configure Sat Jan 12 15:53:26 2002 +0000 @@ -238,7 +238,6 @@ esac done - # Determine our OS name and CPU architecture if test -z "$_target" ; then # OS name @@ -626,7 +625,6 @@ $_as libac3/downmix/downmix_i386.S -o $TMPO > /dev/null 2>&1 && _binutils=yes echores "$_binutils" - if x86 ; then extcheck() { if test "$1" = yes ; then @@ -1009,6 +1007,28 @@ fi fi +#checking for gawk +if test "$_vidix" = yes ; then +_gawk_ver=`echo '' | gawk --version 2>&1 | sed -n 's/^.*wk \([^A-Za-z ]*[0-9.]*\).*$/\1/p'` + case $_gawk_ver in + '') + _gawk_ver="v. ?.??, bad" + _gawk_verc_fail=yes + ;; + 3.[0-9]|3.[0-9].[0-9]) + _gawk_ver="$_gawk_ver, ok" + ;; + *) + _gawk_ver="$_gawk_ver, bad" + _gawk_verc_fail=yes + ;; + esac +echo Checking for gawk ... $_gawk_ver +if test "$_gawk_verc_fail" ; then +echo Gawk was not found or has wrong version. gawk-3.0.x is required +exit +fi +fi ######################