configure.ac: Make usage of libv4l optional by a configure parameter.

Original commit message from CVS:
Patch by: Alexandre Rostovtsev <tetromino at gmail dot com>
* configure.ac:
Make usage of libv4l optional by a configure parameter.
Fixes bug #563504.
This commit is contained in:
Alexandre Rostovtsev 2008-12-07 19:01:35 +00:00 committed by Sebastian Dröge
parent c54c9e2bac
commit 9f2e7127dc
2 changed files with 25 additions and 7 deletions

View file

@ -1,3 +1,11 @@
2008-12-07 Sebastian Dröge <sebastian.droege@collabora.co.uk>
Patch by: Alexandre Rostovtsev <tetromino at gmail dot com>
* configure.ac:
Make usage of libv4l optional by a configure parameter.
Fixes bug #563504.
2008-12-05 Sebastian Dröge <sebastian.droege@collabora.co.uk>
* docs/plugins/Makefile.am:

View file

@ -550,7 +550,14 @@ return 0;
fi
])
# Make libv4l2 non-automagic
AC_ARG_WITH([libv4l2],
AC_HELP_STRING([--with-libv4l2],
[support video buffer conversion using libv4l2]),
[],
[with_libv4l2=check])
if test x$HAVE_GST_V4L2 = xyes; then
if test x$with_libv4l2 != xno; then
PKG_CHECK_MODULES(LIBV4L2, libv4l2,
[ have_libv4l2=yes
AC_DEFINE(HAVE_LIBV4L2, 1,
@ -558,6 +565,9 @@ if test x$HAVE_GST_V4L2 = xyes; then
], [
have_libv4l2=no
])
else
have_libv4l2=no
fi
fi
dnl Check for X11