diff options
author | andreas_kupries <andreas_kupries@noemail.net> | 2002-08-22 00:52:31 (GMT) |
---|---|---|
committer | andreas_kupries <andreas_kupries@noemail.net> | 2002-08-22 00:52:31 (GMT) |
commit | 2b45fc0f9fdc2dde3f93b1e2d4d20c69f0d973da (patch) | |
tree | eb9be0956d45a79838d6627d2f5e00347786c960 /win/tcl.m4 | |
parent | 6797185c4f3a03226c3932619aaedfd16ff2a8b5 (diff) | |
download | tcl-2b45fc0f9fdc2dde3f93b1e2d4d20c69f0d973da.zip tcl-2b45fc0f9fdc2dde3f93b1e2d4d20c69f0d973da.tar.gz tcl-2b45fc0f9fdc2dde3f93b1e2d4d20c69f0d973da.tar.bz2 |
* win/Makefile.in (CFLAGS):
* unix/Makefile.in (MEM_DEBUG_FLAGS): Added usage of @MEM_DEBUG_FLAGS@.
* win/configure.in:
* unix/configure.in: Added usage of SC_ENABLE_MEMDEBUG.
* win/tcl.m4:
* unix/tcl.m4: Added macro SC_ENABLE_MEMDEBUG. Allows a user of
configure to (de)activate memory validation and debugging
(TCL_MEM_DEBUG). No need to modify the makefile anymore.
FossilOrigin-Name: 26d5a58144ac9962be2a5880c2acedc8139e95a4
Diffstat (limited to 'win/tcl.m4')
-rw-r--r-- | win/tcl.m4 | 36 |
1 files changed, 36 insertions, 0 deletions
@@ -300,6 +300,42 @@ AC_DEFUN(SC_ENABLE_SYMBOLS, [ ]) +#------------------------------------------------------------------------ +# SC_ENABLE_MEMDEBUG -- +# +# Specify if the memory debugging code should be used +# +# Arguments: +# none +# +# Requires the following vars to be set in the Makefile: +# None. +# +# Results: +# +# Adds the following arguments to configure: +# --enable-memdebug +# +# Defines the following @vars@: +# MEM_DEBUG_FLAGS Sets to -DTCL_MEM_DEBUG if true +# Sets to "" if false +# +#------------------------------------------------------------------------ + +AC_DEFUN(SC_ENABLE_MEMDEBUG, [ + AC_MSG_CHECKING([for build with memory debugging]) + AC_ARG_ENABLE(memdebug, [ --enable-memdebug build with memory debugging [--disable-memdebug]], [tcl_ok=$enableval], [tcl_ok=no]) + if test "$tcl_ok" = "yes"; then + MEM_DEBUG_FLAGS=-DTCL_MEM_DEBUG + AC_MSG_RESULT([yes]) + else + MEM_DEBUG_FLAGS="" + AC_MSG_RESULT([no]) + fi + AC_SUBST(MEM_DEBUG_FLAGS) +]) + + #-------------------------------------------------------------------- # SC_CONFIG_CFLAGS # |