Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2007-03-28
17:33 • Closed ticket [1688560fff]: ./configure chokes on variables passed on the comman... artifact: 55dea98f1d user: dkf
16:43 • Open ticket [1688560fff]. artifact: 980fca2282 user: eriklns
16:41 • Ticket [1688560fff]: 4 changes artifact: bea82dc1da user: nobody
16:02 • Pending ticket [1688560fff]. artifact: b05c898b5e user: dkf
2007-03-27
00:35 • Ticket [1688560fff]: 4 changes artifact: aba96fcc27 user: eriklns
2007-03-26
17:07 • New ticket [1688560fff]. artifact: 4909860e09 user: eriklns

./configure chokes on variables passed on the command line

Closed / Wont Fix1688560fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 20 years ago
Descriptionplain2007-03-26 17:07:30
When passing variables to a configure script, like:

./configure RANLIB=target-ranlib RC=/some/place/windres CC=target-gcc AR=target-ar

the following error is generated:

configure: warning: RANLIB=target-ranlib: invalid host type
configure: warning: RC=/some/place/windres: invalid host type
configure: error: can only configure for one host and one target at a time

Googling for the error message, made me believe that the autoconf version that produces the configure script may not be up to par. On the other hand it might be the case that autoconf is broken.

Note aside: passing variables as arguments to ./configure is the explicitly recommended (in favor of setting the environment variables before invoking ./configure) as per:

http://www.gnu.org/software/autoconf/manual/autoconf.html#Defining-Variables
eriklnsplain2007-03-27 00:35:45
Logged In: YES 
user_id=113903
Originator: YES

After having produced a configure script from the distribution supplied configure.in, with my autoconf version 2.57, the error went away.

This confirms the suspicion against the autoconf version with which configure script are produced.
dkfplain2007-03-28 16:02:04
Logged In: YES 
user_id=79902
Originator: NO

Is this an 8.4 build? If so, it's just a limitation of autoconf 2.13 which is the version used for 8.4 (and before) for historical reasons, and won't be fixed. If it is for 8.5 which used autoconf 2.57 (or is it 2.59?) there's a problem that needs to be fixed. But you indicate that 2.57 works, so I suspect it isn't 8.5...
[email protected]plain2007-03-28 16:41:03
Logged In: NO 

Indeed, it is 8.4.14
eriklnsplain2007-03-28 16:43:48
Logged In: YES 
user_id=113903
Originator: YES

Oh, forgot to log in, when saying:
"Indeed, it is 8.4.14"
dkf Closed ticket [1688560fff]. [History diff]2007-03-28 17:33:26
Log in (anonymous is fine) to add a comment.