From: David Hankins Date: Wed, 27 Feb 2008 23:04:53 +0000 (+0000) Subject: autoconf regeneration X-Git-Tag: v4_1_0a2~49 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3004d0a31848daade58e34187289d1fcf3f274aa;p=thirdparty%2Fdhcp.git autoconf regeneration --- diff --git a/configure b/configure index de5dcec46..df1f2c4a0 100755 --- a/configure +++ b/configure @@ -1285,6 +1285,9 @@ Optional Features: --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors --enable-dhcpv6 enable support for DHCPv6 (default is yes) + --enable-paranoia enable support for chroot/setuid (default is no) + --eanble-early-chroot enable chrooting prior to configuration (default is + no) Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] @@ -4328,6 +4331,39 @@ _ACEOF fi +# PARANOIA is off by default (until we can test it with all features) +# Check whether --enable-paranoia was given. +if test "${enable_paranoia+set}" = set; then + enableval=$enable_paranoia; +fi + +# Check whether --enable-early_chroot was given. +if test "${enable_early_chroot+set}" = set; then + enableval=$enable_early_chroot; +fi + +# If someone enables early chroot, but does not enable paranoia, do so for +# them. +if test "$enable_paranoia" != "yes" && \ + test "$enable_early_chroot" = "yes" ; then + enable_paranoia="yes" +fi + +if test "$enable_paranoia" = "yes" ; then + +cat >>confdefs.h <<\_ACEOF +#define PARANOIA 1 +_ACEOF + +fi +if test "$enable_early_chroot" = "yes" ; then + +cat >>confdefs.h <<\_ACEOF +#define EARLY_CHROOT 1 +_ACEOF + +fi + ### ### Path fun. Older versions of DHCP were installed in /usr/sbin, so we ### need to look there and potentially overwrite by default (but not if