Tcl Source Code

View Ticket
Login
Ticket UUID: a63a35d5ae493cd968f77b16947b1188572cc5c2
Title: reunite old comment with relevant code in unix/configure.ac
Type: Bug Created on: 2022-04-16 18:26:11
Submitter: chrstphrchvz Assigned to: nobody
Subsystem: 53. Configuration and Build Tools Severity: Minor
Priority: 5 Medium Last modified: 2022-04-16 18:26:11
Status: Open Closed by: nobody
Resolution: None Closed on:
Version: 8.0 (roughly) and later
Description:

A comment in unix/configure.ac seems to have become separated over time from the relevant code:

# Note:  in the following variable, it's important to use the absolute
# path name of the Tcl directory rather than "..":  this is because
# AIX remembers this path and will attempt to use it at run-time to look
# up the Tcl library.

if test "`uname -s`" = "Darwin" ; then …

Here is the comment as it first appeared in unix/configure.in for Tcl 7.5 (I am not certain, but would guess that it is explaining the -L`pwd` usage for TCL_BUILD_LIB_SPEC; I did not locate earlier versions or any discussion more specific than remarks in the changes file from March 1996 about getting configuration working on AIX):

# Note:  in the following variable, it's important to use the absolute
# path name of the Tcl directory rather than "..":  this is because
# AIX remembers this path and will attempt to use it at run-time to look
# up the Tcl library.

if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then TCL_BUILD_LIB_SPEC="-L`pwd` -ltcl${VERSION}" TCL_LIB_SPEC="-L${exec_prefix}/lib -ltcl${VERSION}" else TCL_BUILD_LIB_SPEC="-L`pwd` -ltcl`echo ${VERSION} | tr -d .`" TCL_LIB_SPEC="-L${exec_prefix}/lib -ltcl`echo ${VERSION} | tr -d .`" fi

Is this comment still relevant and should be relocated/rephrased (so as not to get lost again)?