diff options
author | faust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-10-31 18:19:28 +0000 |
---|---|---|
committer | faust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-10-31 18:19:28 +0000 |
commit | b4d0ea9adbc977f48db53c6949b426cbbe429864 (patch) | |
tree | a758d840cd43132022b13586fbb349208bde0441 | |
parent | eee1e83c8aa5187fca837180ba3086de04b5dec0 (diff) |
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
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13831 b3059339-0415-0410-9bf9-f77b7e298cf2
-rwxr-xr-x | configure | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -5949,14 +5949,15 @@ echores "$_ftp" 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 |