diff options
author | Lennart Poettering <lennart@poettering.net> | 2005-10-30 18:21:57 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2005-10-30 18:21:57 +0000 |
commit | aedd4e87362371d83dd64d0bfb03ea3e5526607f (patch) | |
tree | cbe35acdb665b1ffeb0fa81220cb0d44549dfc4c /configure.ac | |
parent | d8260fdf4310e135f301d0b8296aeffa02f5f494 (diff) |
* add chroot() support on Linux
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@907 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 356a0ad..4e9a98a 100644 --- a/configure.ac +++ b/configure.ac @@ -215,6 +215,17 @@ AC_TYPE_PID_T AC_CHECK_DECLS(environ) +enable_chroot=yes +AC_CHECK_HEADERS([sys/capability.h],,enable_chroot=no) +AC_CHECK_HEADERS([sys/prctl.h],,enable_chroot=no) +AC_CHECK_FUNCS([chroot],,enable_chroot=no) + +AM_CONDITIONAL(ENABLE_CHROOT, test "x$enable_chroot" = "xyes") + +if test "x$enable_chroot" = "xyes" ; then + AC_DEFINE([ENABLE_CHROOT], 1, [Enable chroot() usage]) +fi + # Check for pkg-config manually first, as if its not installed the # PKG_PROG_PKG_CONFIG macro won't be defined. AC_CHECK_PROG(have_pkg_config, pkg-config, yes, no) @@ -729,6 +740,7 @@ echo " Linux Distro: ${with_distro} User for Avahi: ${AVAHI_USER} Group for Avahi: ${AVAHI_GROUP} + Enable chroot(): ${enable_chroot} " BUILD_DAEMON="no (!)" |