forked from FFmpeg/FFmpeg
Fix endian test with grep not handling non-text files
POSIX grep is not required to support non-text files. Idea by Rich Felker. Originally committed as revision 12304 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
0e9fbd35b5
commit
22f8654776
1 changed files with 1 additions and 1 deletions
2
configure
vendored
2
configure
vendored
|
@ -1580,7 +1580,7 @@ enabled vis && add_cflags "-mcpu=ultrasparc -mtune=ultrasparc"
|
|||
check_cc <<EOF || die "endian test failed"
|
||||
unsigned int endian = 'B' << 24 | 'I' << 16 | 'G' << 8 | 'E';
|
||||
EOF
|
||||
grep -q BIGE $TMPO && enable bigendian
|
||||
tr -c -d BIGE < $TMPO | grep -q BIGE && enable bigendian
|
||||
|
||||
# ---
|
||||
# check availability of some header files
|
||||
|
|
Loading…
Add table
Reference in a new issue