SHA256
1
0
forked from pool/x3270
x3270/tcl8.4.patch

35 lines
987 B
Diff

--- tcl3270-3.3/configure.in
+++ tcl3270-3.3/configure.in
@@ -39,15 +39,16 @@
tclver=$with_tcl, tclver=8.3)
dnl Allow TclX
-AC_ARG_WITH(tclx, [ --with-tclx[=VERSION] Use TclX], , with_tclx=no)
+AC_ARG_WITH(tclx, [ --with-tclx[=VERSION] Use TclX], , with_tclx=no,
+tclxver=$with_tclx, with_tclx=no)
dnl Set up tclvr (tclver without the period, for BSD)
dnl Note that --with-tclx=VERSION overrides --with-tcl=VERSION.
-if test "$with_tclx" = no
-then :
-elif test "$with_tclx" != yes
-then tclver=$with_tclx
-fi
+# if test "$with_tclx" = no
+# then :
+# elif test "$with_tclx" != yes
+# then tclver=$with_tclx
+# fi
tclvr=`echo $tclver | tr -d .`
dnl Checks for header files.
@@ -230,7 +231,7 @@
then AC_ERROR(Can't find TCL library)
fi
if test "$with_tclx" != no
-then AC_CHECK_LIB(tclx$tclver, Tclx_Init, ,
+then AC_CHECK_LIB(tclx$tclxver, Tclx_Init, ,
AC_CHECK_LIB(tclx$tclvr, Tclx_Init, ,AC_ERROR(Can't find TclX library)))
fi
AC_CHECK_LIB(nsl, gethostbyname)