| 1 |
# Configure paths for video4linux |
| 2 |
|
| 3 |
dnl Usage: |
| 4 |
dnl AC_CHECK_V4L([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) |
| 5 |
dnl Test for video4linux interface, and defines |
| 6 |
dnl prerequisites: |
| 7 |
|
| 8 |
AC_DEFUN([AC_CHECK_V4L], |
| 9 |
[ |
| 10 |
AC_ARG_ENABLE(v4l, [ --enable-v4l support v4l video interface. [[autodetect]]], |
| 11 |
[], enable_v4l=yes) |
| 12 |
if test "$enable_v4l" = yes; then |
| 13 |
AC_CHECK_HEADER([linux/videodev.h], [], enable_v4l=no) |
| 14 |
fi |
| 15 |
|
| 16 |
if test "$enable_v4l" = yes; then |
| 17 |
ifelse([$1], , :, [$1]) |
| 18 |
else |
| 19 |
ifelse([$2], , :, [$2]) |
| 20 |
fi |
| 21 |
]) |
| 22 |
|