summaryrefslogtreecommitdiffstats
path: root/win/tcl.m4
diff options
context:
space:
mode:
authorhobbs <hobbs>2002-10-16 01:17:14 (GMT)
committerhobbs <hobbs>2002-10-16 01:17:14 (GMT)
commit650c12124f49c1c525e04caa6359819b875407a1 (patch)
tree6863022b30caf147f0fc37d89157bc2e8a4c2551 /win/tcl.m4
parent9d868002e735f03a02b204864b139004861e6ff6 (diff)
downloadtk-650c12124f49c1c525e04caa6359819b875407a1.zip
tk-650c12124f49c1c525e04caa6359819b875407a1.tar.gz
tk-650c12124f49c1c525e04caa6359819b875407a1.tar.bz2
* win/configure:
* win/tcl.m4: Add --enable-shared=mem support.
Diffstat (limited to 'win/tcl.m4')
-rw-r--r--win/tcl.m431
1 files changed, 23 insertions, 8 deletions
diff --git a/win/tcl.m4 b/win/tcl.m4
index 4b8cd22..cc7f95a 100644
--- a/win/tcl.m4
+++ b/win/tcl.m4
@@ -289,20 +289,35 @@ AC_DEFUN(SC_ENABLE_THREADS, [
AC_DEFUN(SC_ENABLE_SYMBOLS, [
AC_MSG_CHECKING([for build with symbols])
AC_ARG_ENABLE(symbols, [ --enable-symbols build with debugging symbols [--disable-symbols]], [tcl_ok=$enableval], [tcl_ok=no])
-
- if test "$tcl_ok" = "yes"; then
- CFLAGS_DEFAULT='$(CFLAGS_DEBUG)'
- LDFLAGS_DEFAULT='$(LDFLAGS_DEBUG)'
- DBGX=d
- AC_MSG_RESULT([yes])
- else
+# FIXME: Currently, LDFLAGS_DEFAULT is not used, it should work like CFLAGS_DEFAULT.
+ if test "$tcl_ok" = "no"; then
CFLAGS_DEFAULT='$(CFLAGS_OPTIMIZE)'
LDFLAGS_DEFAULT='$(LDFLAGS_OPTIMIZE)'
DBGX=""
AC_MSG_RESULT([no])
+ else
+ CFLAGS_DEFAULT='$(CFLAGS_DEBUG)'
+ LDFLAGS_DEFAULT='$(LDFLAGS_DEBUG)'
+ DBGX=g
+ if test "$tcl_ok" = "yes"; then
+ AC_MSG_RESULT([yes (standard debugging)])
+ fi
+ fi
+ AC_SUBST(CFLAGS_DEFAULT)
+ AC_SUBST(LDFLAGS_DEFAULT)
+
+ if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then
+ AC_DEFINE(TCL_MEM_DEBUG)
fi
-])
+ if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then
+ if test "$tcl_ok" = "all"; then
+ AC_MSG_RESULT([enabled symbols mem debugging])
+ else
+ AC_MSG_RESULT([enabled $tcl_ok debugging])
+ fi
+ fi
+])
#--------------------------------------------------------------------
# SC_CONFIG_CFLAGS