Lines 151-165
Link Here
|
151 |
dnl video4linux/hardware dependent tools. Else, undefine HAVE_V4L |
151 |
dnl video4linux/hardware dependent tools. Else, undefine HAVE_V4L |
152 |
|
152 |
|
153 |
have_video4linux=false |
153 |
have_video4linux=false |
|
|
154 |
AC_ARG_WITH([v4l], AC_HELP_STRING([--without-v4l], [Disable v4l1 API])) |
155 |
AS_IF([test "x$with_v4l" != "xno"], [ |
154 |
case $host in |
156 |
case $host in |
155 |
*-*-linux*) |
157 |
*-*-linux*) |
156 |
AC_CHECK_HEADER(linux/videodev.h, |
158 |
AC_CHECK_HEADER(linux/videodev.h, |
157 |
[have_video4linux=true |
159 |
[have_video4linux=true |
158 |
AC_DEFINE(HAVE_V4L, 1, |
160 |
AC_DEFINE(HAVE_V4L, 1, |
159 |
[Building for Linux - using the video4linux API])], |
161 |
[Building for Linux - using the video4linux API])], []) |
160 |
[AC_MSG_ERROR([videodev.h not found - please install the linux kernel headers])]) |
162 |
;; |
161 |
;; |
163 |
esac]) |
162 |
esac |
164 |
|
|
|
165 |
AS_IF([test "x$have_video4linux" != "xtrue" && test "x$with_v4l" != "xno"], |
166 |
[have_video4linux=false |
167 |
AC_MSG_WARN([videodev.h not found - please install the linux kernel headers programms needing v4l disabled])]) |
163 |
AM_CONDITIONAL(HAVE_V4L, test x$have_video4linux = xtrue) |
168 |
AM_CONDITIONAL(HAVE_V4L, test x$have_video4linux = xtrue) |
164 |
|
169 |
|
165 |
dnl ********************************************************************* |
170 |
dnl ********************************************************************* |