diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-11-09 18:52:08 +0100 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-11-09 18:52:08 +0100 |
commit | 281dbfcc4668928841bf3c2b39dbe295a58c3e5f (patch) | |
tree | e2ef34dfd58e2dc70f778333898fccb5d3ebbf63 /m4 | |
parent | ca08e0a8ae822cf1774f25bd84ab1643d6e6e9b7 (diff) | |
download | xine-lib-281dbfcc4668928841bf3c2b39dbe295a58c3e5f.tar.gz xine-lib-281dbfcc4668928841bf3c2b39dbe295a58c3e5f.tar.bz2 |
Use system's linux/videodev2.h header file.
Please note: on 2.4 systems without the extra V4L2 stack, the header will
be missing. As it is, both input_pvr and input_v4l (that still uses the old
interface) will be disabled if either header is not found.
Further optimisation to just disable PVR on non-V4L2-capable systems might
be useful.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/input.m4 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/m4/input.m4 b/m4/input.m4 index a0de77dc0..59c9df233 100644 --- a/m4/input.m4 +++ b/m4/input.m4 @@ -93,7 +93,8 @@ AC_DEFUN([XINE_INPUT_PLUGINS], [ [test x"$enableval" != x"no" && enable_v4l="yes"], [test $default_enable_v4l = disable && enable_v4l="no"]) if test x"$enable_v4l" != x"no"; then - AC_CHECK_HEADERS([linux/videodev.h], [have_v4l=yes], [have_v4l=no]) + have_v4l=yes + AC_CHECK_HEADERS([linux/videodev.h linux/videodev2.h], , [have_v4l=no]) AC_CHECK_HEADERS([asm/types.h]) if test x"$enable_v4l" = x"yes" && test x"$have_v4l" != x"yes"; then AC_MSG_ERROR([Video4Linux support requested, but prerequisite headers not found.]) |