Currently, if USE_IMP_SYS is defined then PERL_MALLOC gets undefined.
We should also undefine DEBUG_MSTATS if PERL_MALLOC is (or has become)
undefined, and we should do all this *before* inspecting DEBUG_MSTATS
to see if we need to add -DPERL_DEBUGGING_MSTATS to BUILDOPT.
p4raw-id: //depot/perl@23970
CRYPT_FLAG = -DHAVE_DES_FCRYPT
!ENDIF
+!IF "$(USE_IMP_SYS)" == "define"
+PERL_MALLOC = undef
+DEBUG_MSTATS = undef
+!ENDIF
+
!IF "$(PERL_MALLOC)" == ""
PERL_MALLOC = undef
-DEBUG_MSTATS = undef
+DEBUG_MSTATS = undef
!ENDIF
!IF "$(DEBUG_MSTATS)" == ""
-DEBUG_MSTATS = undef
+DEBUG_MSTATS = undef
!ENDIF
!IF "$(DEBUG_MSTATS)" == "define"
-BUILDOPT = $(BUILDOPT) -DPERL_DEBUGGING_MSTATS
-!ENDIF
-
-!IF "$(USE_IMP_SYS)" == "define"
-PERL_MALLOC = undef
+BUILDOPT = $(BUILDOPT) -DPERL_DEBUGGING_MSTATS
!ENDIF
!IF "$(USE_MULTI)" == ""
# 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
.ENDIF
PERL_MALLOC *= undef
+DEBUG_MSTATS *= undef
USE_MULTI *= undef
USE_ITHREADS *= undef
USE_LARGE_FILES *= undef
USE_PERLCRT *= undef
-.IF "$(PERL_MALLOC)" == "undef"
+.IF "$(USE_IMP_SYS)" == "define"
PERL_MALLOC = undef
-DEBUG_MSTATS = undef
.ENDIF
-.IF "$(DEBUG_MSTATS)" == "undef"
-DEBUG_MSTATS = undef
+.IF "$(PERL_MALLOC)" == "undef"
+DEBUG_MSTATS = undef
.ENDIF
.IF "$(DEBUG_MSTATS)" == "define"
-BUILDOPT += -DPERL_DEBUGGING_MSTATS
-.ENDIF
-
-.IF "$(USE_IMP_SYS)" == "define"
-PERL_MALLOC = undef
+BUILDOPT += -DPERL_DEBUGGING_MSTATS
.ENDIF
.IF "$(USE_IMP_SYS)$(USE_MULTI)" == "defineundef"