Mercurial > mplayer.hg
comparison configure @ 23842:9cd0d6ae322d
Fix configure regexp for enabling FFmpeg features
All features were disabled because of a regexp that used "[^ ]" to
match start of a word. '^' is not a metacharacter meaning beginning
of line inside [], instead it inverts the matching condition of the
other characters in the list.
Changed to use "\<" and "\>" for start/end of word instead. I don't know
how standard those are, at least they're better than the previous
version.
author | uau |
---|---|
date | Wed, 25 Jul 2007 19:02:29 +0000 |
parents | bbc0763d8a82 |
children | 463f7715f8ee |
comparison
equal
deleted
inserted
replaced
23841:27327c023b7e | 23842:9cd0d6ae322d |
---|---|
7516 | 7516 |
7517 ff_config_enable () { | 7517 ff_config_enable () { |
7518 _nprefix=$3; | 7518 _nprefix=$3; |
7519 test -z "$_nprefix" && _nprefix='CONFIG' | 7519 test -z "$_nprefix" && _nprefix='CONFIG' |
7520 for part in $1; do | 7520 for part in $1; do |
7521 if ` echo $2 | grep "[^ ]$part[ $]" > /dev/null `; then | 7521 if ` echo $2 | grep "\<$part\>" > /dev/null `; then |
7522 echo "#define ${_nprefix}_$part 1" | 7522 echo "#define ${_nprefix}_$part 1" |
7523 echo "#define ENABLE_$part 1" | 7523 echo "#define ENABLE_$part 1" |
7524 else | 7524 else |
7525 echo "#define ENABLE_$part 0" | 7525 echo "#define ENABLE_$part 0" |
7526 fi | 7526 fi |