From 1ad8da5795c9b7e348aac6fc0a7c31e26584aa2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 18 Sep 2016 20:25:16 +0200 Subject: Use libv4l1-videodev.h when available MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- configure.in.in | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'configure.in.in') diff --git a/configure.in.in b/configure.in.in index c9fa660..406e664 100644 --- a/configure.in.in +++ b/configure.in.in @@ -555,14 +555,20 @@ AC_ARG_ENABLE(webcam, ) if test x$enable_webcam = xyes; then - KDE_CHECK_HEADERS([linux/videodev.h], - [], - [enable_webcam="no"]) + KDE_CHECK_HEADERS( + [libv4l1-videodev.h], + [videodev_header="libv4l1-videodev.h"], + [ + KDE_CHECK_HEADERS([linux/videodev.h], + [videodev_header="linux/videodev.h"], + [enable_webcam="no"]) + ]) fi AM_CONDITIONAL(ENABLE_WEBCAM, test $enable_webcam = yes) if test x$enable_webcam = xyes; then AC_DEFINE(ENABLE_WEBCAM, 1, [Define to 1 if webcam support is enabled]) + AC_DEFINE_UNQUOTED(VIDEODEV_HEADER, ["$videodev_header"], [Define header name for videodev]) fi dnl ---------- END WEBCAM CHECK ---------- -- cgit v1.2.3