Commit 859c2fd3 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont Committed by Jean-Baptiste Kempf

Replace --disable-libv4l2 with --disable-v4l2

This disables V4L2 completely.
(cherry picked from commit fd8502ce)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 3917c663
...@@ -1869,21 +1869,21 @@ fi ...@@ -1869,21 +1869,21 @@ fi
dnl dnl
dnl Video4Linux 2 dnl Video4Linux 2
dnl dnl
AC_ARG_ENABLE(libv4l2, [AS_HELP_STRING([--disable-libv4l2], AC_ARG_ENABLE(v4l2, [AS_HELP_STRING([--disable-v4l2],
[disable userspace V4L2 library (default auto)])]) [disable Video4Linux version 2 (default auto)])])
AC_ARG_ENABLE(pvr, [AS_HELP_STRING([--enable-pvr], AC_ARG_ENABLE(pvr, [AS_HELP_STRING([--enable-pvr],
[support PVR V4L2 cards (default disabled)])]) [support PVR V4L2 cards (default disabled)])])
have_v4l2="no" have_v4l2="no"
AC_CHECK_HEADERS([linux/videodev2.h sys/videoio.h], [ AS_IF([test "$enable_v4l2" != "no"], [
have_v4l2="yes" AC_CHECK_HEADERS([linux/videodev2.h sys/videoio.h], [
have_v4l2="yes"
])
]) ])
AS_IF([test "$have_v4l2" = "yes"], [ AS_IF([test "$have_v4l2" = "yes"], [
AS_IF([test "${enable_libv4l2}" != "no"], [ PKG_CHECK_MODULES(LIBV4L2, libv4l2, [
PKG_CHECK_MODULES(LIBV4L2, libv4l2, [ AC_DEFINE(HAVE_LIBV4L2, 1, [Define to 1 if libv4l2 is available])
AC_DEFINE(HAVE_LIBV4L2, 1, [Define to 1 if libv4l2 is available]) ], [
], [ AC_MSG_WARN([${LIBV4L2_PKG_ERRORS}.])
AC_MSG_WARN([${LIBV4L2_PKG_ERRORS}.])
])
]) ])
AS_IF([test "${enable_pvr}" = "yes"], [ AS_IF([test "${enable_pvr}" = "yes"], [
VLC_ADD_PLUGIN([pvr]) VLC_ADD_PLUGIN([pvr])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment