summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorjoye <joye>2013-12-27 20:18:17 (GMT)
committerjoye <joye>2013-12-27 20:18:17 (GMT)
commitba5d3cc7c4f2c5c4b9a373a7268cba17e077d6a6 (patch)
tree326472a03fac1f614ee2f89cd013a341dfa633c2 /configure
parenta167d8c0b3dc074f4a43f95169f51632e7bd6f3a (diff)
downloadblt-ba5d3cc7c4f2c5c4b9a373a7268cba17e077d6a6.zip
blt-ba5d3cc7c4f2c5c4b9a373a7268cba17e077d6a6.tar.gz
blt-ba5d3cc7c4f2c5c4b9a373a7268cba17e077d6a6.tar.bz2
*** empty log message ***
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure44
1 files changed, 34 insertions, 10 deletions
diff --git a/configure b/configure
index 3340032..9286726 100755
--- a/configure
+++ b/configure
@@ -620,6 +620,7 @@ ac_includes_default="\
ac_subst_vars='LTLIBOBJS
LIBOBJS
+WISH_PROG
TCLSH_PROG
VC_MANIFEST_EMBED_EXE
VC_MANIFEST_EMBED_DLL
@@ -5676,7 +5677,7 @@ done
# TEA_ADD_* any platform specific compiler/build info here.
#--------------------------------------------------------------------
-CLEANFILES="$CLEANFILES config.status config.log Makefile"
+#CLEANFILES="$CLEANFILES pkgIndex.tcl"
if test "${TEA_PLATFORM}" = "windows" ; then
# Ensure no empty if clauses
:
@@ -6339,14 +6340,6 @@ $as_echo "could not find any! Using -lX11." >&6; }
fi
-
- vars="${XINCLUDES}"
- for i in $vars; do
- PKG_INCLUDES="$PKG_INCLUDES $i"
- done
-
-
-
#--------------------------------------------------------------------
# Check whether --enable-threads or --disable-threads was given.
# This auto-enables if Tcl was compiled threaded.
@@ -9373,7 +9366,38 @@ $as_echo_n "checking for tclsh... " >&6; }
$as_echo "${TCLSH_PROG}" >&6; }
-#TEA_PROG_WISH
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wish" >&5
+$as_echo_n "checking for wish... " >&6; }
+ if test -f "${TK_BIN_DIR}/Makefile" ; then
+ # tkConfig.sh is in Tk build directory
+ if test "${TEA_PLATFORM}" = "windows"; then
+ WISH_PROG="${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${TK_DBGX}${EXEEXT}"
+ else
+ WISH_PROG="${TK_BIN_DIR}/wish"
+ fi
+ else
+ # tkConfig.sh is in install location
+ if test "${TEA_PLATFORM}" = "windows"; then
+ WISH_PROG="wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${TK_DBGX}${EXEEXT}"
+ else
+ WISH_PROG="wish${TK_MAJOR_VERSION}.${TK_MINOR_VERSION}${TK_DBGX}"
+ fi
+ list="`ls -d ${TK_BIN_DIR}/../bin 2>/dev/null` \
+ `ls -d ${TK_BIN_DIR}/.. 2>/dev/null` \
+ `ls -d ${TK_PREFIX}/bin 2>/dev/null`"
+ for i in $list ; do
+ if test -f "$i/${WISH_PROG}" ; then
+ REAL_TK_BIN_DIR="`cd "$i"; pwd`/"
+ break
+ fi
+ done
+ WISH_PROG="${REAL_TK_BIN_DIR}${WISH_PROG}"
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WISH_PROG}" >&5
+$as_echo "${WISH_PROG}" >&6; }
+
+
#--------------------------------------------------------------------
# Finally, substitute all of the various values into the Makefile.