Mercurial > mplayer.hg
changeset 13830:f7ddd8c4c547
some people have GREP_OPTIONS set to --ignore-case what makes it a bit dangerous to rely on the string MPlayer for the big endian check
author | faust3 |
---|---|
date | Sun, 31 Oct 2004 18:19:28 +0000 |
parents | 87f739790de5 |
children | 719c3c818335 |
files | configure |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Sun Oct 31 18:05:10 2004 +0000 +++ b/configure Sun Oct 31 18:19:28 2004 +0000 @@ -5949,14 +5949,15 @@ echocheck "byte order" if test "$_big_endian" = auto ; then cat > $TMPC <<EOF -short asci_name[] = { (('M'<<8)|'P'),(('l'<<8)|'a'),(('y'<<8)|'e'),(('r'<<8)|0)}; +short ascii_name[] = { (('M'<<8)|'P'),(('l'<<8)|'a'),(('y'<<8)|'e'),(('r'<<8)|'B'), + (('i'<<8)|'g'),(('E'<<8)|'n'),(('d'<<8)|'i'),(('a'<<8)|'n'),0}; int main(){ - char* s = (char*)asci_name; + char* s = (char*)ascii_name; return 0; } EOF if cc_check ; then - if test `grep -l MPlayer $TMPO` ; then + if test `grep -l MPlayerBigEndian $TMPO` ; then _big_endian=yes else _big_endian=no