- dnl Check for lutimes, optionally used for changing the mtime of
- dnl symlinks.
- AC_CHECK_FUNCS([lutimes])
+ 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.
+ dnl `--> now disabled because of unpredictable behavior:
+ dnl see <http://lists.gnu.org/archive/html/guix-devel/2014-05/msg00036.html>
+ dnl and Nix commit f794465c (Nov. 2012).
+ dnl sched_setaffinity: to improve RPC locality.
+ dnl statvfs: to detect disk-full conditions.
+ dnl strsignal: for error reporting.
+ dnl statx: fine-grain 'stat' call, new in glibc 2.28.
+ AC_CHECK_FUNCS([lutimes lchown posix_fallocate sched_setaffinity \
+ statvfs nanosleep strsignal statx])