From: Thomas D Date: Sat, 14 Feb 2015 17:42:52 +0000 (+0100) Subject: "--disable-hardening" option improved X-Git-Tag: dnsdist-1.0.0-alpha1~292^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0b61c63359161a6ea3d891558c36b9c564c979fb;p=pdns "--disable-hardening" option improved * Splitted into argument and helptext * MSG about hardening status added to configure output --- diff --git a/configure.ac b/configure.ac index f34cc6331..3c9908dd8 100644 --- a/configure.ac +++ b/configure.ac @@ -37,9 +37,15 @@ AC_DEFINE([_GNU_SOURCE], [1], AX_CXX_COMPILE_STDCXX_11(,optional) AM_CONDITIONAL([CXX2011],[test "$HAVE_CXX11" = "1"]) -AC_ARG_ENABLE([hardening], [ - AS_HELP_STRING([--disable-hardening, disable compiler security checks]) -]) + +AC_MSG_CHECKING([whether we will enable compiler security checks]) +AC_ARG_ENABLE([hardening], + [AS_HELP_STRING([--disable-hardening],[disable compiler security checks @<:@default=no@:>@])], + [enable_hardening=$enableval], + [enable_hardening=yes] +) +AC_MSG_RESULT([$enable_hardening]) + AS_IF([test "x$enable_hardening" != "xno"], [ AC_CC_PIE AC_CC_STACK_PROTECTOR