aboutsummaryrefslogtreecommitdiff
path: root/config-daemon.ac
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2015-02-04 09:36:58 +0100
committerLudovic Courtès <ludo@gnu.org>2015-02-04 22:49:34 +0100
commit3b9855f496de70de0acc99f60a679caecea4bac7 (patch)
treeb4d94ec7c20f56feac19da49f2ffe31c4256608c /config-daemon.ac
parent6a070700df00e8248cb397af44ee76e83a164df6 (diff)
downloadpatches-3b9855f496de70de0acc99f60a679caecea4bac7.tar
patches-3b9855f496de70de0acc99f60a679caecea4bac7.tar.gz
build: Make 'chroot' a hard requirement.
* config-daemon.ac: Error out when $ac_cv_func_chroot is not "yes". * nix/nix-daemon/guix-daemon.cc (options): Remove #ifdef HAVE_CHROOT. (main): Likewise.
Diffstat (limited to 'config-daemon.ac')
-rw-r--r--config-daemon.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/config-daemon.ac b/config-daemon.ac
index 28cae23b9d..32520acbf2 100644
--- a/config-daemon.ac
+++ b/config-daemon.ac
@@ -75,6 +75,10 @@ if test "x$guix_build_daemon" = "xyes"; then
AC_CHECK_FUNCS([chroot unshare])
AC_CHECK_HEADERS([sched.h sys/param.h sys/mount.h tr1/unordered_set])
+ if test "x$ac_cv_func_chroot" != "xyes"; then
+ AC_MSG_ERROR(['chroot' function missing, bailing out])
+ fi
+
dnl lutimes and lchown: used when canonicalizing store items.
dnl posix_fallocate: used when extracting archives.
dnl vfork: to speed up spawning of helper programs.