--- configure.ac.orig	2011-11-08 17:41:55.105919216 +0700
+++ configure.ac	2011-11-08 17:45:46.530026017 +0700
@@ -164,7 +164,7 @@
 AS_IF([test "x$with_v4l" != "xno"], [
 case $host in
   *-*-linux*)
-  AC_CHECK_HEADER(linux/videodev.h,
+  AC_CHECK_HEADER(libv4l1-videodev.h,
                   [have_video4linux=true
                    AC_DEFINE(HAVE_V4L, 1,
 		             [Building for Linux - using the video4linux API])], [])
@@ -173,7 +173,7 @@
 
 AS_IF([test "x$have_video4linux" != "xtrue" && test "x$with_v4l" != "xno"],
         [have_video4linux=false
-	 AC_MSG_WARN([videodev.h not found - please install the linux kernel headers programms needing v4l disabled])])
+	 [AC_MSG_ERROR([libv4l1-videodev.h not found - please install the v4l-utils devel package])])
 AM_CONDITIONAL(HAVE_V4L, test x$have_video4linux = xtrue)
 
 dnl *********************************************************************
--- lavtools/lavvideo.c.orig	2011-11-08 17:47:12.274954057 +0700
+++ lavtools/lavvideo.c	2011-11-08 17:48:57.558637828 +0700
@@ -63,7 +63,7 @@
  * errors here, check your linux/time.h && sys/time.h header setup.
  */
 #define _LINUX_TIME_H
-#include <linux/videodev.h>
+#include <libv4l1-videodev.h>
 
 #include <videodev_mjpeg.h>
 #include <frequencies.h>
--- lavtools/liblavplay.c.orig	2011-11-08 17:50:05.203792149 +0700
+++ lavtools/liblavplay.c	2011-11-08 17:51:04.766047515 +0700
@@ -68,7 +68,8 @@
  * errors here, check your linux/time.h && sys/time.h header setup.
  */
 #define _LINUX_TIME_H
-#include <linux/videodev.h>
+#include <libv4l1-videodev.h>
+#define BASE_VIDIOCPRIVATE  192     /* 192-255 are private */
 #else
 #define VIDEO_MODE_PAL		0
 #define VIDEO_MODE_NTSC		1
--- lavtools/liblavrec.c.orig	2011-11-08 17:51:55.222416727 +0700
+++ lavtools/liblavrec.c	2011-11-08 17:53:06.190529500 +0700
@@ -63,7 +63,8 @@
  * errors here, check your linux/time.h && sys/time.h header setup.
  */
 #define _LINUX_TIME_H
-#include <linux/videodev.h>
+#include <libv4l1-videodev.h>
+#define BASE_VIDIOCPRIVATE  192     /* 192-255 are private */
 #ifdef HAVE_SYS_SOUNDCARD_H
 #include <sys/soundcard.h>
 #endif
--- lavtools/testrec.c.orig	2011-11-08 17:53:47.508012963 +0700
+++ lavtools/testrec.c	2011-11-08 17:54:23.092568091 +0700
@@ -89,7 +89,7 @@
  * errors here, check your linux/time.h && sys/time.h header setup.
  */
 #define _LINUX_TIME_H
-#include <linux/videodev.h>
+#include <libv4l1-videodev.h>
 #include <linux/soundcard.h>
 
 /* These are explicit prototypes for the compiler, to prepare separation of audiolib.c */
--- configure.orig	2011-11-08 18:03:20.604848267 +0700
+++ configure	2011-11-08 18:14:09.765732639 +0700
@@ -16392,7 +16392,7 @@
 
 case $host in
   *-*-linux*)
-  ac_fn_c_check_header_mongrel "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "$ac_includes_default"
+  ac_fn_c_check_header_mongrel "$LINENO" "libv4l1-videodev.h" "ac_cv_header_linux_videodev_h" "$ac_includes_default"
 if test "x$ac_cv_header_linux_videodev_h" = xyes; then :
   have_video4linux=true
 
@@ -16407,8 +16407,8 @@
 
 if test "x$have_video4linux" != "xtrue" && test "x$with_v4l" != "xno"; then :
   have_video4linux=false
-	 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: videodev.h not found - please install the linux kernel headers programms needing v4l disabled" >&5
-$as_echo "$as_me: WARNING: videodev.h not found - please install the linux kernel headers programms needing v4l disabled" >&2;}
+	 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libv4l1-videodev.h not found - please install the linux kernel headers programms needing v4l disabled" >&5
+$as_echo "$as_me: WARNING: libv4l1-videodev.h not found - please install the linux kernel headers programms needing v4l disabled" >&2;}
 fi
  if test x$have_video4linux = xtrue; then
   HAVE_V4L_TRUE=

