summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2004-03-23 22:35:09 +0000
committerNicholas Clark <nick@ccl4.org>2004-03-23 22:35:09 +0000
commit9df442c23deb1b1ba2f163eb54deeb4fe82ea80c (patch)
tree3cb6763b2644dd39a94a1066966a399f8cdd06e5 /Configure
parentb84d08606128d31ab874c747150180e32486af44 (diff)
downloadperl-9df442c23deb1b1ba2f163eb54deeb4fe82ea80c.tar.gz
Make usemallocwrap a Configure-time question. Default is yes for
usedevel, no otherwise, but I'm expecting hints files on known good platforms to override this. (and known bad) Demonstration hints file for darwin. p4raw-id: //depot/perl@22571
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure22
1 files changed, 22 insertions, 0 deletions
diff --git a/Configure b/Configure
index b58dd15d5d..072afbf65a 100755
--- a/Configure
+++ b/Configure
@@ -942,6 +942,7 @@ freetype=''
mallocobj=''
mallocsrc=''
malloctype=''
+usemallocwrap=''
usemymalloc=''
installman1dir=''
man1dir=''
@@ -6258,6 +6259,26 @@ EOM
;;
esac
+: determine whether to use malloc wrapping
+echo " "
+case "$usemallocwrap" in
+[yY]*|true|$define) dflt='y' ;;
+[nN]*|false|$undef) dflt='n' ;;
+*) case "$usedevel" in
+ [yY]*|true|$define) dflt='y' ;;
+ *) dflt='n' ;;
+ esac
+ ;;
+esac
+rp="Do you wish to wrap malloc calls to protect against potential overflows?"
+. ./myread
+usemallocwrap="$ans"
+case "$ans" in
+y*|true)
+ usemallocwrap="$define" ;;
+*)
+ usemallocwrap="$undef" ;;
+esac
: determine which malloc to compile in
echo " "
@@ -21143,6 +21164,7 @@ make_set_make='$make_set_make'
mallocobj='$mallocobj'
mallocsrc='$mallocsrc'
malloctype='$malloctype'
+usemallocwrap='$usemallocwrap'
man1dir='$man1dir'
man1direxp='$man1direxp'
man1ext='$man1ext'