+Set direct-write buffers limit for sandbox child.
[captive.git] / configure.in
index 73f8e60..c302d1c 100644 (file)
@@ -51,6 +51,7 @@ AM_GLIB_GNU_GETTEXT
 GTK_DOC_CHECK
 dnl AM_CONDITIONAL needs to be here explicitely for doc/apiref/Makefile rebuild
 AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)
+AM_CONDITIONAL(GTK_DOC_USE_LIBTOOL, test -n "$LIBTOOL")
 
 dnl Do not discard 'CFLAGS' settings as they may have been passed us by rpmbuild(8)
 
@@ -79,9 +80,10 @@ AC_ARG_WITH(sandbox-chroot,
                [ CAPTIVE_SANDBOX_CHROOT="$withval" ],[ CAPTIVE_SANDBOX_CHROOT="/var/lib/captive" ])
 AC_DEFINE_UNQUOTED(CAPTIVE_SANDBOX_CHROOT,"$CAPTIVE_SANDBOX_CHROOT",
                [root-owned directory for captive-sandbox-server])
+AC_SUBST(CAPTIVE_SANDBOX_CHROOT)
 
-dnl Permit 'if IS_FALSE' for Makefile.am-s; symbol 'FALSE' forbidden by automake
-AM_CONDITIONAL(IS_FALSE,false)
+dnl Permit 'if NEVER' for Makefile.am-s; symbol 'FALSE' forbidden by automake
+AM_CONDITIONAL(NEVER,false)
 
 dnl Separate 'acconfig.h' is no longer recommended by autoconf
 AH_TOP([
@@ -225,6 +227,11 @@ PKG_CHECK_MODULES(OPENSSL,openssl,,[
 AC_SUBST(OPENSSL_CFLAGS)
 AC_SUBST(OPENSSL_LIBS)
 
+have_lufs_includes=true
+AC_CHECK_HEADERS(lufs/fs.h lufs/proto.h,,[ have_lufs_includes=false ])
+AM_CONDITIONAL(HAVE_LUFS_INCLUDES,$have_lufs_includes)
+AC_CHECK_TYPES([struct lufs_sbattr],,,[#include <lufs/proto.h>])
+
 dnl for $(top_srcdir)/src/libcaptive/sandbox/split-sandbox.c
 AM_PATH_LINC(,,[AC_MSG_ERROR([Captive requires linc library used by ORBit.])])