changeset 6709:4c9fb525be47

[gaim-migrate @ 7235] Check a little more intelligently for minimal Tcl versions. committer: Tailor Script <tailor@pidgin.im>
author Ethan Blanton <elb@pidgin.im>
date Tue, 02 Sep 2003 19:56:17 +0000
parents 07943485f4ec
children 3a08f08edbf5
files configure.ac
diffstat 1 files changed, 16 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/configure.ac	Tue Sep 02 16:17:15 2003 +0000
+++ b/configure.ac	Tue Sep 02 19:56:17 2003 +0000
@@ -587,14 +587,22 @@
 		enable_tcl=no
 	else
 		. $TCLCONFIG
-		eval "TCL_LIB_SPEC=\"$TCL_LIB_SPEC\""
-		AC_MSG_CHECKING([for Tcl linkability])
-		oldLIBS=$LIBS
-		LIBS="$LIBS $TCL_LIB_SPEC"
-		AC_TRY_LINK([#include <tcl.h>], [Tcl_Interp *interp; Tcl_Init(interp)],
-			    [AC_MSG_RESULT([yes]);enable_tcl=yes],
-			    [AC_MSG_RESULT([no]);enable_tcl=no])
-		LIBS="$oldLIBS"
+		AC_MSG_CHECKING([Tcl version compatability])
+		if test "$TCL_MAJOR_VERSION" -lt 8 -o "$TCL_MINOR_VERSION" -lt 2; then
+			AC_MSG_RESULT([bad, $TCL_VERSION found but 8.3 required])
+			enable_tcl=no
+		else
+			AC_MSG_RESULT([ok, $TCL_VERSION])
+			eval "TCL_LIB_SPEC=\"$TCL_LIB_SPEC\""
+			AC_MSG_CHECKING([for Tcl linkability])
+			oldLIBS=$LIBS
+			LIBS="$LIBS $TCL_LIB_SPEC"
+			AC_TRY_LINK([#include <tcl.h>],
+				    [Tcl_Interp *interp; Tcl_Init(interp)],
+		 		    [AC_MSG_RESULT([yes]);enable_tcl=yes],
+		 		    [AC_MSG_RESULT([no]);enable_tcl=no])
+			LIBS="$oldLIBS"
+		fi
 	fi
 fi