From 4f5a72cbc25fce6442d158c71495bbd7947bbf64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Sat, 2 Sep 2006 21:55:37 +0000 Subject: Make ./configure --enable-v4l fail if the videodev header is not found. CVS patchset: 8194 CVS date: 2006/09/02 21:55:37 --- configure.ac | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac index ca486d2e2..f70cadf08 100644 --- a/configure.ac +++ b/configure.ac @@ -556,14 +556,15 @@ dnl ---------------------------------------------- dnl Check for usable video-for-linux (v4l) support dnl ---------------------------------------------- AC_ARG_ENABLE([v4l], - AC_HELP_STRING([--disable-v4l], [do not build Video4Linux support]), - [with_v4l=${enableval}], [with_v4l=yes]) + AC_HELP_STRING([--disable-v4l], [do not build Video4Linux input plugin])) -if test "x$with_v4l" == "xyes"; then - AC_CHECK_HEADER(linux/videodev.h, have_v4l=yes,) -else - have_v4l=no +if test "x$enable_v4l" != "xno"; then + AC_CHECK_HEADERS([linux/videodev.h], [have_v4l=yes], [have_v4l=no]) + if test "x$enable_v4l" = "xyes" && test "x$have_v4l" = "xno"; then + AC_MSG_ERROR([Video4Linux support requested, but prerequisite headers not found.]) + fi fi + AM_CONDITIONAL(HAVE_V4L, [test x"$have_v4l" = "xyes"]) dnl ---------------------------------------------- -- cgit v1.2.3