The Tcl Source has a number of C defines which control various (mostly internal) aspects of the system. Only a minority, if any (IIRC) can be controlled via the standard configure command. For the remainder it is necessary to use -D... or -D...=... with make.
The following defines are known:
TCL_FINALIZE_ON_EXIT- Finalize - free all memory on exit, despite the OS cleaning up after anyway. This reduces reports of false resource leaks for both dynamic and static memory trackers (valgrind, coverity).See also Tcl Public Macros for an un-annotated list of the public defines.