[FFmpeg-devel] [PATCH] configure: use ar and ranlib in deterministic mode
Andreas Cadhalpun
andreas.cadhalpun at googlemail.com
Tue Jan 27 12:57:47 CET 2015
Hi,
On 27.01.2015 08:44, Hendrik Leppkes wrote:
> Checking help output with grep? Really?
> Did you ever stop to check how all the other checks work in configure?
>
> Usually it tries to run the command and see if it fails, instead of doing
> some arbitrary grep which may result in some other matches somewhere.
Yes, I did look at configure and just copied what I found:
if $ar 2>&1 | grep -q Microsoft; then
arflags="-nologo"
ar_o='-out:$@'
elif $ar 2>&1 | grep -q 'Texas Instruments'; then
arflags="rq"
ar_o='$@'
elif $ar 2>&1 | grep -q 'Usage: ar.*-X.*any'; then
arflags='-Xany -r -c'
ar_o='$@'
else
arflags="rc"
ar_o='$@'
fi
Maybe you can convert that into a proper check instead of complaining
about me copying this approach.
Best regards,
Andreas
More information about the ffmpeg-devel
mailing list