|
|
|
@ -87,7 +87,18 @@ case "$target" in
|
|
|
|
|
[have_v4l2=true],
|
|
|
|
|
[have_v4l2=false],
|
|
|
|
|
[#include <sys/time.h>
|
|
|
|
|
#include <linux/videodev.h>])
|
|
|
|
|
#include <linux/videodev2.h>])
|
|
|
|
|
if test x$have_v4l2 = xfalse; then
|
|
|
|
|
unset ac_cv_type_struct_v4l2_buffer
|
|
|
|
|
AC_CHECK_TYPE([struct v4l2_buffer],
|
|
|
|
|
[have_v4l2=true],
|
|
|
|
|
[have_v4l2=false],
|
|
|
|
|
[#include <sys/time.h>
|
|
|
|
|
#include <linux/videodev.h>])
|
|
|
|
|
if test x$have_v4l2 = xtrue; then
|
|
|
|
|
AC_DEFINE(HAVE_LINUX_ALTERNATE_VIDEODEV_H, 1, [Define to 1 if you have the <linux/videodev.h> header file.])
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
if test x$have_v4l2 = xfalse; then
|
|
|
|
|
KERNEL_VERSION=`uname -r`
|
|
|
|
|
AC_CHECK_FILE(/lib/modules/$KERNEL_VERSION/build/include/linux/videodev2.h,
|
|
|
|
|