Skip to content
Tcl Source Code View Ticket
Login

View Ticket

tcl.m4 default library and include search paths

Closed / Rejected1368254fffffffffffffffffffffffffffffffffCreated 21 years agoUpdated 18 years ago
Descriptionplain2005-11-28 14:28:29
Working with TEA 3.3 I found that I always need to use
--with-tcl
and --with-tclinclude to make my extensions compile.

That's because by default tea searches for tclConfig.sh
in places like /usr/lib or /usr/local/lib but many
systems, such as ubuntu, debian, OpenBSD, place it on
/usr/lib/tcl8.4 or /usr/local/lib/tcl8.4

The same happens with tcl.h that is searched into
/usr/local/include or /usr/include;

The patch is a simply (and tcl version hard-coded) way
to avoid the strong usage of these configure options.

It should be better to do this looking on the deault
paths and adding them a version dependent string but I
don't figure out how to do this.
bugantplain2005-11-28 21:28:31
File Added - 157813: tclm4.diff
bugant Ticket [1368254fff]: 1 change [History diff]2005-11-28 21:30:02
bugantplain2005-12-06 00:38:58
File Added - 158730: patch
stwoplain2009-03-14 11:43:38
Recommend closing because:
The idea is partially ok but the patches are way off.
It is usually better to supply --with-tcl in order to avoid ambiguity.
The switch --with-tclinclude should not be necessary if Tcl is properly configured and installed.
Alternatively, even more paths could be added to the list of directories to search. This approach will of course get uglier with future versions.
dkfplain2009-03-15 01:08:29
allow_comments - 1
Log in (anonymous is fine) to add a comment.

Attachments: