[vlc-commits] Restore --disable-libv4l2 for packagers
Rémi Denis-Courmont
git at videolan.org
Tue Sep 6 17:39:19 CEST 2011
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Sep 6 18:38:07 2011 +0300| [913a9a9aece76b6a05d87d2dd85c7525131dfd91] | committer: Rémi Denis-Courmont
Restore --disable-libv4l2 for packagers
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=913a9a9aece76b6a05d87d2dd85c7525131dfd91
---
configure.ac | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/configure.ac b/configure.ac
index 5d668ee..c3b0d73 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1950,6 +1950,8 @@ fi
dnl
dnl Video4Linux 2
dnl
+AC_ARG_ENABLE(libv4l2, [AS_HELP_STRING([--disable-libv4l2],
+ [disable userspace V4L2 library (default auto)])])
AC_ARG_ENABLE(pvr, [AS_HELP_STRING([--enable-pvr],
[support PVR V4L2 cards (default disabled)])])
have_v4l2="no"
@@ -1957,10 +1959,12 @@ AC_CHECK_HEADERS([linux/videodev2.h sys/videoio.h], [
have_v4l2="yes"
])
AS_IF([test "$have_v4l2" = "yes"], [
- PKG_CHECK_MODULES(LIBV4L2, libv4l2, [
- AC_DEFINE(HAVE_LIBV4L2, 1, [Define to 1 if libv4l2 is available])
- ], [
- AC_MSG_WARN([libv4l2 development headers were not found])
+ AS_IF([test "${enable_libv4l2}" != "no"], [
+ PKG_CHECK_MODULES(LIBV4L2, libv4l2, [
+ AC_DEFINE(HAVE_LIBV4L2, 1, [Define to 1 if libv4l2 is available])
+ ], [
+ AC_MSG_WARN([${LIBV4L2_PKG_ERRORS}])
+ ])
])
AS_IF([test "${enable_pvr}" = "yes"], [
VLC_ADD_PLUGIN([pvr])
More information about the vlc-commits
mailing list