diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2006-09-02 21:55:37 +0000 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2006-09-02 21:55:37 +0000 |
commit | 4f5a72cbc25fce6442d158c71495bbd7947bbf64 (patch) | |
tree | 5ce193d1788bddc4c4ab77eb0ec7868f4de63426 | |
parent | 04693e80d0f61d5e167ce2a0e71ae370779edacb (diff) | |
download | xine-lib-4f5a72cbc25fce6442d158c71495bbd7947bbf64.tar.gz xine-lib-4f5a72cbc25fce6442d158c71495bbd7947bbf64.tar.bz2 |
Make ./configure --enable-v4l fail if the videodev header is not found.
CVS patchset: 8194
CVS date: 2006/09/02 21:55:37
-rw-r--r-- | configure.ac | 13 |
1 files 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 ---------------------------------------------- |