summaryrefslogtreecommitdiffstats
path: root/win/tcl.m4
diff options
context:
space:
mode:
authorhobbs <hobbs>2003-10-06 19:11:11 (GMT)
committerhobbs <hobbs>2003-10-06 19:11:11 (GMT)
commit69baf768e2f48d48b91bad42ea851df7b22a6849 (patch)
tree0608f0a22d136f3552134474309dbaf5604efa4e /win/tcl.m4
parent3abc1cebe83395f30484e75495cca0bfe6b74480 (diff)
downloadtk-69baf768e2f48d48b91bad42ea851df7b22a6849.zip
tk-69baf768e2f48d48b91bad42ea851df7b22a6849.tar.gz
tk-69baf768e2f48d48b91bad42ea851df7b22a6849.tar.bz2
* win/configure:
* win/tcl.m4: removed incorrect checks for existence of optimization. TCL_CFG_OPTIMIZED is now defined whenever the user does not build with --enable-symbols.
Diffstat (limited to 'win/tcl.m4')
-rw-r--r--win/tcl.m426
1 files changed, 1 insertions, 25 deletions
diff --git a/win/tcl.m4 b/win/tcl.m4
index 75e3352..f263325 100644
--- a/win/tcl.m4
+++ b/win/tcl.m4
@@ -302,12 +302,7 @@ AC_DEFUN(SC_ENABLE_SYMBOLS, [
DBGX=""
AC_MSG_RESULT([no])
- # Use result from SC_CONFIG_CFLAGS to determine if
- # optimization is truly active.
-
- if test "$OPTIMIZING" = "1" ; then
- AC_DEFINE(TCL_CFG_OPTIMIZED)
- fi
+ AC_DEFINE(TCL_CFG_OPTIMIZED)
else
CFLAGS_DEFAULT='$(CFLAGS_DEBUG)'
LDFLAGS_DEFAULT='$(LDFLAGS_DEBUG)'
@@ -608,25 +603,6 @@ AC_DEFUN(SC_CONFIG_CFLAGS, [
CFLAGS_OPTIMIZE="-nologo -Oti -Gs -GD ${runtime}"
STLIB_LD="lib -nologo"
LINKBIN="link -link50compat"
-
- # TIP #59
- # A check borrowed from 'rules.vc' to determine if the
- # compiler actually supports optimization. If not we do
- # not try to use this feature.
-
- lines=`$(CC) -nologo -Ox -c -Zs -TC -Fdtemp nul 2>&1 | grep "D4002" | wc -l`
-
- for f in temp.idb temp.pdb ; do
- if [ -f $f ]; then
- rm -f $f
- fi
- done
- if [ $lines -gt 0 ]; then
- OPTIMIZING=1
- else
- OPTIMIZING=0
- CFLAGS_OPTIMIZE="-nologo -Oti -Gs -GD ${runtime}"
- fi
fi
SHLIB_LD="${LINKBIN} -dll -nologo -incremental:no"