[FFmpeg-devel] [PATCH] configure: warn if GCC 4.2 is being used

Nicolas George george at nsup.org
Mon Aug 24 14:20:58 CEST 2015

Le septidi 7 fructidor, an CCXXIII, Ganesh Ajjanagadde a écrit :
> >> +    if [ "$first" = true ] && $_cc -dumpversion | grep -q '^4\.2'; then

> The (-q) is for suppressing output, only yielding the exit code.
> The reason it works is because '^' matches the beginning of a line,
> not the beginning after a punctuation character.

I did not follow the rest of the thread, but I would suggest to avoid
forking external processes whenever possible:

case "$($_cc -dumpversion) in
  4.2*) ...;;


  Nicolas George

More information about the ffmpeg-devel mailing list