and force PERL_MALLOC off if USE_IMP_SYS is on
This brings makefile.mk into line with Makefile in this regard
(PERL_MALLOC cannot currently be used with USE_IMP_SYS, e.g. see:
http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2004-07/msg00465.html
so it is sensible to enforce this, and to not have the default set
to a configuration that isn't allowed)
p4raw-id: //depot/perl@23769
# extensions if you change the default. Currently, this cannot be enabled
# if you ask for USE_IMP_SYS above.
#
-PERL_MALLOC *= define
+#PERL_MALLOC *= define
#
# set this to enable debugging mstats
# This must be enabled to use the Devel::Peek::mstat() function. This cannot
# be enabled without PERL_MALLOC as well.
#
-DEBUG_MSTATS = define
+#DEBUG_MSTATS = define
#
# set the install locations of the compiler include/libraries
BUILDOPT += -DPERL_DEBUGGING_MSTATS
.ENDIF
+.IF "$(USE_IMP_SYS)" == "define"
+PERL_MALLOC = undef
+.ENDIF
+
.IF "$(USE_IMP_SYS)$(USE_MULTI)" == "defineundef"
USE_MULTI != define
.ENDIF