aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index f631423..989e22a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -33,6 +33,13 @@ AC_HEADER_STDC
AC_HEADER_MAJOR
AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/ioctl.h unistd.h linux/videodev.h png.h glade/glade.h])
+# Check for V4L2
+AC_CHECK_LIB(v4l2, v4l2_open, LIBV4L="yes",,)
+if test "$LIBV4L" != "yes"; then
+ echo "Oops: libv4l library not found."
+ exit 1
+fi
+
# Don't assume that gcc warnings are errors
AX_IS_RELEASE(always)
AX_COMPILER_FLAGS([WARN_CFLAGS],[WARN_LDFLAGS])

Privacy Policy