aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-07-26 14:51:24 +0200
committerGregor Jasny <gjasny@googlemail.com>2017-07-26 20:32:04 +0200
commited6eeee5f7dbc5b1b5b9263ae9281665d3fbe105 (patch)
treee2f7080725d6291cc7d4a9eef4a8ad3b680b90da /configure.ac
parent5649bf5343fb7c32f909f92ec07c1bf5b77ff869 (diff)
Build libv4lconvert helper support only when fork() is available
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index ae8f2e20..72c9421c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -299,6 +299,9 @@ argp_saved_libs=$LIBS
AC_SUBST([ARGP_LIBS])
LIBS=$argp_saved_libs
+AC_CHECK_FUNCS([fork], AC_DEFINE([HAVE_LIBV4LCONVERT_HELPERS],[1],[whether to use libv4lconvert helpers]))
+AM_CONDITIONAL([HAVE_LIBV4LCONVERT_HELPERS], [test x$ac_cv_func_fork = xyes])
+
AC_CHECK_HEADER([linux/i2c-dev.h], [linux_i2c_dev=yes], [linux_i2c_dev=no])
AM_CONDITIONAL([HAVE_LINUX_I2C_DEV], [test x$linux_i2c_dev = xyes])

Privacy Policy