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
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to