summaryrefslogtreecommitdiffstats
path: root/unix/configure.in
diff options
context:
space:
mode:
authordgp@users.sourceforge.net <dgp>2003-10-06 15:34:17 (GMT)
committerdgp@users.sourceforge.net <dgp>2003-10-06 15:34:17 (GMT)
commit49d2f9a9535a194d5c21b4ced0c93525302f4b0a (patch)
treefeb537d06039cca6288ffe9c762ccd8c964bd485 /unix/configure.in
parent94eff26c916bd638f415d000512b37b4716f482e (diff)
downloadtk-49d2f9a9535a194d5c21b4ced0c93525302f4b0a.zip
tk-49d2f9a9535a194d5c21b4ced0c93525302f4b0a.tar.gz
tk-49d2f9a9535a194d5c21b4ced0c93525302f4b0a.tar.bz2
* unix/configure.in: Added check that version of Tcl header found
by configure matches that of the Tk we wish to build. As long as the Tk sources insist on lockstep releases, Tk's configuration should verify that's what we have. [Bug 749088] * unix/configure: autoconf (2.57)
Diffstat (limited to 'unix/configure.in')
-rw-r--r--unix/configure.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/unix/configure.in b/unix/configure.in
index 6e87853..68c6fca 100644
--- a/unix/configure.in
+++ b/unix/configure.in
@@ -3,7 +3,7 @@ dnl This file is an input file used by the GNU "autoconf" program to
dnl generate the file "configure", which is run during Tk installation
dnl to configure the system for the local environment.
#
-# RCS: @(#) $Id: configure.in,v 1.89 2003/09/25 05:36:08 das Exp $
+# RCS: @(#) $Id: configure.in,v 1.90 2003/10/06 15:34:18 dgp Exp $
AC_INIT(../generic/tk.h)
AC_PREREQ(2.57)
@@ -102,6 +102,12 @@ if test "${TCL_THREADS}" = 1; then
AC_DEFINE(_THREAD_SAFE)
fi
+if test "${TCL_VERSION}" != "${TK_VERSION}"; then
+ AC_MSG_ERROR([${TCL_BIN_DIR}/tclConfig.sh is for Tcl ${TCL_VERSION}.
+Tk ${TK_VERSION}${TK_PATCH_LEVEL} needs Tcl ${TK_VERSION}.
+Use --with-tcl= option to indicate location of tclConfig.sh file for Tcl ${TK_VERSION}.])
+fi
+
#--------------------------------------------------------------------
# Recompute the necessary flags to run the compiler
#--------------------------------------------------------------------