Next Up Previous Contents
Next: A.25 STAR_PLATFORM_SOURCES
Up: A The Starconf macros and variables
Previous: A.23 STAR_MONOLITHS
[ID index][Keyword index]

A.24 STAR_PATH_TCLTK

STAR_PATH_TCLTK([minversion=0], [options=''])

Finds a tclsh, and the associated libraries, optionally searching for Tk as well.

Sets substitution variable TCL_CFLAGS to the C compiler flags necessary to compile with Tcl, TCL_LIBS to the required library flags, and variable TCLSH to the full path of the matching tclsh executable and TCL_VERSION to the major.minor version number; if Tk is requested, it similarly sets TK_CFLAGS, TK_LIBS and WISH. Define the cpp variable TCL_MISSING to 1 if the required programs and libraries are not available (that is, it is also set if Tcl is available but a suitable version of Tk isn't).

If argument minversion is present, it specifies the minimum Tcl/Tk version number required.

If the argument options is present, it is a space-separated list of the words tk and itcl. If one or both of these is present, then the macro will find a Tcl location which also has Tk or itcl installed (note that the itcl test doesn't do anything at present).

The macro searches first in the path, and then in a selection of platform-specific standard locations. The configure option --with-tcl allows you to provide a path to a tclsh binary, which is put at the head of the list of locations to search. Option --without-tcl suppresses the search, and results in no variables being substituted.

This is intended to be similar to macro AC_PATH_XTRA.


Next Up Previous Contents
Next: A.25 STAR_PLATFORM_SOURCES
Up: A The Starconf macros and variables
Previous: A.23 STAR_MONOLITHS
[ID index][Keyword index]
The Starlink Build System
Starlink System Note 78
Norman Gray, Peter W Draper, Mark B Taylor, Steven E Rankin
11 April 2005. Release snapshot: $Revision: 1.116 $. Last updated 28 May 2006