diff options
| author | Trever Fischer <tdfischer@fedoraproject.org> | 2010-01-06 12:21:25 -0500 |
|---|---|---|
| committer | Trever Fischer <tdfischer@fedoraproject.org> | 2010-01-06 12:21:25 -0500 |
| commit | cc1a46cebce07d4f0d3417b3354fe367fa3c984b (patch) | |
| tree | efe2d487c7fa18029bb64c3531c8f14926d60f65 /configure.ac | |
| parent | 4fc7f9d52eb06a1c16a6af76b3d20db2b06a0d8b (diff) | |
| download | xine-lib-cc1a46cebce07d4f0d3417b3354fe367fa3c984b.tar.gz xine-lib-cc1a46cebce07d4f0d3417b3354fe367fa3c984b.tar.bz2 | |
Add v4l2 to the makefile
--HG--
branch : v4l
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index c3270fec4..10c32d03c 100644 --- a/configure.ac +++ b/configure.ac @@ -676,10 +676,10 @@ dnl ---------------------------------------------- dnl Check for usable video-for-linux (v4l) support dnl ---------------------------------------------- AC_ARG_ENABLE([v4l], - AS_HELP_STRING([--disable-v4l], [do not build Video4Linux input plugin])) + AS_HELP_STRING([--disable-v4l], [do not build Video4Linux input plugins])) if test "x$enable_v4l" != "xno"; then - AC_CHECK_HEADERS([linux/videodev.h], [have_v4l=yes], [have_v4l=no]) + AC_CHECK_HEADERS([linux/videodev.h linux/videodev2.h], [have_v4l=yes], [have_v4l=no]) AC_CHECK_HEADERS([asm/types.h]) if test "x$enable_v4l" = "xyes" && test "x$have_v4l" = "xno"; then AC_MSG_ERROR([Video4Linux support requested, but prerequisite headers not found.]) @@ -689,6 +689,20 @@ fi AM_CONDITIONAL(HAVE_V4L, [test "x$have_v4l" = "xyes"]) dnl ---------------------------------------------- +dnl Check for libv4l support +dnl ---------------------------------------------- +AC_ARG_ENABLE([libv4l], + AS_HELP_STRING([--disable-libv4l], [do not build with libv4l support])) + +if test "x$enable_libv4l" != "xno"; then + AC_CHECK_HEADERS([libv4l2.h], [have_libv4l=yes], [have_libv4l=no]) + if test "x$enable_libv4l" = "xyes" && test "x$have_libv4l" = "xno"; then + AC_MSG_ERROR([libv4l requested but not found.]) + fi +fi + + +dnl ---------------------------------------------- dnl Check for Xv and XvMC support dnl ---------------------------------------------- |
