From: Luca Abeni Date: Wed, 8 Feb 2006 15:55:41 +0000 (+0000) Subject: Add video4linux2 detection to configure. X-Git-Tag: v0.5~13188 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=47f388503b1b94b8ddba9d9e257921f34d71c063;p=platform%2Fupstream%2Flibav.git Add video4linux2 detection to configure. patch by Luca Abeni, lucabe72*at*email*dot*it Originally committed as revision 4963 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/configure b/configure index f461cd1..275c312 100755 --- a/configure +++ b/configure @@ -1244,6 +1244,15 @@ ipv6=yes fi fi +if test "$v4l2" = "yes"; then +# check for video4linux2 --- V4L2_PIX_FMT_YUV420 +cat > $TMPC << EOF +#include +int dummy = V4L2_PIX_FMT_YUV420; +EOF +$cc -c -o $TMPE $TMPC 2> /dev/null || v4l2="no" +fi + case "`$cc -v 2>&1 | grep version`" in *gcc*) CFLAGS="-Wall -Wno-switch $CFLAGS"