Skip to content
Tcl Source Code View Ticket
Login

View Ticket

TEA_PROG_WISH / TEA_PROG_TCLSH busted?

Closed / Fixed1307513fffffffffffffffffffffffffffffffffCreated 21 years agoUpdated 20 years ago
Descriptionplain2005-09-29 01:32:58
After updating to TEA 3.3 (tclconfig/tcl.m4 r1.72), the
TEA_PROG_WISH macro for some reason decides that
wish8.4 lives in the extension's build directory, which
is wrong.

On Debian stable, Tile package CVS HEAD (2005-09-28):

| mkdir build ; cd build
| sh ../configure --with-tcl=/usr/lib/tcl8.4
--with-tk=/usr/lib/tk8.4

spits out a Makefile containing:

| TCLSH_PROG      = /u/jenglish/src/tile/build/tclsh8.4
| WISH_PROG       = /u/jenglish/src/tile/build/wish8.4

(/u/jenglish/src/tile is where my CVS checkout is).

With TEA 3.2, the same incantation gave the correct
results:

| TCLSH_PROG      = /usr/bin/tclsh8.4
| WISH_PROG       = /usr/bin/wish8.4
jenglishplain2005-09-29 08:46:07
Logged In: YES 
user_id=68433

Relevant change is probably tcl.m4 r1.71:

revision 1.71
date: 2005/07/26 19:09:23;  author: mdejong;  state: Exp; 
lines: +56 -129
        * tcl.m4 (TEA_PROG_TCLSH, TEA_BUILD_TCLSH,
        TEA_PROG_WISH, TEA_BUILD_WISH): Remove
        TEA_BUILD_TCLSH and TEA_BUILD_WISH because
        of complaints that it broke the build when
        only an installed version of Tcl was available
        at extension build time. The TEA_PROG_TCLSH and
        TEA_PROG_WISH macros will no longer search the
        path at all. The build tclsh or installed
        tclsh shell will now be found by TEA_PROG_TCLSH.


The new versions of TEA_PROG_WISH and TEA_PROG_TCLSH  no
longer even allow the user to set WISH_PROG and TCLSH_PROG
in the environment as an override for when 'configure'
guesses wrong.  At the very least, please restore this
feature -- 'configure' scripts break, a lot, and it's
crucial that end users be able to override the defaults at
configure-time on platforms where this happens.
dgpplain2005-09-29 19:02:43
Logged In: YES 
user_id=80530


See comments at Bug 1160114
for the history.
dgp Ticket [1307513fff]: 1 change [History diff]2005-10-01 04:41:57
dgpplain2005-10-01 04:41:58
Logged In: YES 
user_id=80530


chat reveals something that
was too broad has been replaced
with something that's too narrow.

something like SC_PROG_TCLSH
ought to go in the "installed" branch
of TEA_PROG_TCLSH so that 
tclsh can still be found in the "variant"
Tcl installs like those on Debian systems.
(and in ActiveTcl ?)
jenglishplain2005-11-15 04:51:48
Logged In: YES 
user_id=68433

Changes in tclconfig.m4 r1.75 (2005-10-30  Daniel Steffen)
seem to have fixed the problem; works for me now.

Still, it would be a good idea to (a) issue a warning if
${TCLSH_PROG} ends up pointing to something that isn't
actually executable, and (b) allowing the user to override
TCLSH_PROG in the environment at configure-time.
hobbsplain2007-02-10 01:32:26
Logged In: YES 
user_id=72656
Originator: NO

The main issue is fixed ... we'll go with that.
sf-robotplain2007-02-24 10:20:11
Logged In: YES 
user_id=1312539
Originator: NO

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
Log in (anonymous is fine) to add a comment.