diff options
author | Martin Pitt <martin.pitt@ubuntu.com> | 2011-02-14 11:26:22 +0100 |
---|---|---|
committer | Martin Pitt <martin.pitt@ubuntu.com> | 2011-02-14 11:26:22 +0100 |
commit | 8f624253f0135ca77a893ad4e8168f51ef90d4da (patch) | |
tree | 54a7c3b7e55e1319e8d084443e5373117a3d3a1f /configure.in | |
parent | 94ea0fc8b96f406655607c51d7d5a83876f82c6f (diff) |
Do not build hald-probe-video4linux if v4l1 is not available.
The old v4l1 API is gone from current kernels (2.6.38), and thus
linux/videodev.h does not exist any more. Add a configure check for the include
and do not build hald-probe-video4linux if it is not available.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 2394c456..861938fc 100644 --- a/configure.in +++ b/configure.in @@ -479,6 +479,9 @@ if test "x$with_libpci" != xno ; then fi AM_CONDITIONAL([HAVE_LIBPCI], [test "x$USE_LIBPCI" = "xyes"]) +AC_CHECK_HEADERS([linux/videodev.h], [have_videodev_h=yes], []) +AM_CONDITIONAL(HAVE_V4L1, [test "x$have_videodev_h" = "xyes"]) + AC_ARG_WITH([backend], AS_HELP_STRING([--with-backend=<name>], [backend to use (linux/solaris/freebsd/dummy)]), |