--- configure.orig	2009-09-30 01:12:39.000000000 -0300
+++ configure	2009-09-30 01:15:06.000000000 -0300
@@ -2380,7 +2380,7 @@
 fi
 
 
-TCLSH=`which tclsh`
+TCLSH=`which tclsh8.6-threads`
 VERSION=`echo "puts $::tcl_version ; exit" | ${TCLSH}`
 # Check whether --enable-version-check was given.
 if test "${enable_version_check+set}" = set; then :
@@ -3752,7 +3752,7 @@
   $as_echo_n "(cached) " >&6
 else
       # Double quotes because CPP needs to be expanded
-    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
+    for CPP in "$CC -E $CFLAGS $CPPFLAGS" "$CC -E -traditional-cpp" "/lib/cpp"
     do
       ac_preproc_ok=false
 for ac_c_preproc_warn_flag in '' yes
