tcl3270 Build and Install Instructions

To build tcl3270, type:
    ./configure
    make
To install tcl3270 in the default install directory (/usr/local/bin), type:
    make install

Notes on the tcl Library

tcl3270 uses tcl 8.2. It assumes that the header file tcl.h has been installed in the directory /usr/local/include/tcl8.2, and that the tcl library libtcl82.a has been installed in the directory /usr/local/lib. If you have a different version of tcl, or it is installed in different directories, you will need to pass additional options to the configure script.

To use a different version of tcl, pass the --with-tcl option to configure, e.g:

    ./configure --with-tcl=8.3
This will cause the configure script to look in for a library called libtcl83.a (passing the -ltcl83 option to the C compiler).  It will look for the header files in /usr/local/include/tcl8.3 and the tcl library in /usr/local/lib.

If you have the tcl header files or libraries installed in directories other than those selected by default, you must pass these options to configure in environment variables. To specify a different header file directory, put a -I option in the CPPFLAGS environment variable. To specify a different library directory, put a -L option in the LDFLAGS environment variable.  For example (using bash, ksh, or sh):

    CPPFLAGS=-I/auto/unsupported/tcl LDFLAGS=-L/auto/unsupported/lib ./configure
Using csh, it's similar:
    (setenv CPPFLAGS -I/auto/unsupported/tcl; setenv LDFLAGS -L/auto/unsupported/lib; ./configure)
tcl3270 has not been tested with earlier versions of tcl.

Notes for Solaris 2.x and Sun's C Compiler

Do not use Sun's BSD-compatibility compiler, /usr/ucb/cc. This is good advice in general, but in particular, tcl3270 will not build with it. You must have a directory containing gcc (preferred) or Sun's standard compiler in your $PATH ahead of /usr/ucb.