From 39f8eb4a21670e6b973dcfc86d0b1339064f5642 Mon Sep 17 00:00:00 2001 From: Neil Bowers Date: Wed, 16 Mar 2022 23:43:53 +0000 Subject: [PATCH] Add Configure question for taint support This adds a Configure question for whether you want taint support. It defaults to "yes", so that ./Configure -des will build a perl which supports taint in the usual way. If you say "no", then perl is compiled with -DSILENT_NO_TAINT_SUPPORT so that taint features silently do nothing. I've submitted a separate pull request on perl/metaconfig, which adds the underlying metaconfig unit for this question, which was used to build this Configure script. --- Configure | 44 +++++++++++++++++++++++++++++++++- Cross/config.sh-arm-linux | 1 + Cross/config.sh-arm-linux-n770 | 1 + Porting/config.sh | 1 + configure.com | 1 + metaconfig.h | 1 + plan9/config_sh.sample | 1 + uconfig.h | 2 +- uconfig.sh | 1 + uconfig64.sh | 1 + win32/config.gc | 1 + win32/config.vc | 1 + 12 files changed, 54 insertions(+), 2 deletions(-) diff --git a/Configure b/Configure index bd96249c07c7..279844e004a9 100755 --- a/Configure +++ b/Configure @@ -1333,6 +1333,7 @@ stdchar='' d_stdio_stream_array='' stdio_stream_array='' sysman='' +taint_support='' sGMTIME_max='' sGMTIME_min='' sLOCALTIME_max='' @@ -7305,6 +7306,40 @@ esac : confusing anyway. installstyle=$dflt +: U/perl/taint_support.U - do we want taint support? +case "$taint_support" in + $undef|false|[Nn]*) + dflt="n" + ;; + *) + dflt="y" + ;; +esac +cat >&4 <&4 +else + echo "scripts." >&4 +fi +cat <