From 22f8654776e34d3effb75beae5e8d33f36adc3c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5ns=20Rullg=C3=A5rd?= <mans@mansr.com> Date: Mon, 3 Mar 2008 22:01:15 +0000 Subject: [PATCH] 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 --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index f283e9652a3..b352513917d 100755 --- a/configure +++ b/configure @@ -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 -- GitLab