|
|
|
@ -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 ----------
|
|
|
|
|