From: Arnold D. Robbins Date: Tue, 26 Jan 1988 01:16:41 +0000 (+0000) Subject: perl 1.0 patch 7: use of included malloc.c should be optional X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a1cc2bdc08f9aa1504f32e5b0b782c2b3cffd124;p=p5sagit%2Fp5-mst-13.2.git perl 1.0 patch 7: use of included malloc.c should be optional The version of malloc.c that comes with perl was not really intended to be used everywhere--it was included mostly for debugging purposes. It's a nice little package, however, so I'm making it optional (via Configure) as to whether you want it or not. --- diff --git a/Configure b/Configure index 7327e1c..d32c305 100755 --- a/Configure +++ b/Configure @@ -8,7 +8,7 @@ # and edit it to reflect your system. Some packages may include samples # of config.h for certain machines, so you might look for one of those.) # -# $Header: Configure,v 1.0.1.2 88/01/24 03:51:55 root Exp $ +# $Header: Configure,v 1.0.1.3 88/01/26 14:14:14 root Exp $ # # Yes, you may rip this off to use in other distribution packages. # (Note: this Configure script was generated automatically. Rather than @@ -79,6 +79,9 @@ d_vfork='' d_voidsig='' libc='' libnm='' +mallocsrc='' +mallocobj='' +usemymalloc='' mansrc='' manext='' models='' @@ -1249,6 +1252,31 @@ else esac fi +: determine which malloc to compile in +echo " " +case "$usemymalloc" in +'') + if bsd || v7; then + dflt='y' + else + dflt='n' + fi + ;; +*) dflt="$usemymalloc" + ;; +esac +rp="Do you wish to attempt to use the malloc that comes with $package? [$dflt]" +$echo $n "$rp $c" +. myread +case "$ans" in +'') ans=$dflt;; +esac +usemymalloc="$ans" +case "$ans" in +y*) mallocsrc='malloc.c'; mallocobj='malloc.o';; +*) mallocsrc=''; mallocobj='';; +esac + echo " " echo "End of configuration questions." echo " " @@ -1309,6 +1337,9 @@ d_vfork='$d_vfork' d_voidsig='$d_voidsig' libc='$libc' libnm='$libnm' +mallocsrc='$mallocsrc' +mallocobj='$mallocobj' +usemymalloc='$usemymalloc' mansrc='$mansrc' manext='$manext' models='$models' diff --git a/Makefile.SH b/Makefile.SH index 798d9a3..fc05ca2 100644 --- a/Makefile.SH +++ b/Makefile.SH @@ -14,9 +14,12 @@ case "$0" in esac echo "Extracting Makefile (with variable substitutions)" cat >Makefile <Makefile <