delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/06/26/04:45:18

From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: using configure with VC6?
Date: 26 Jun 2002 08:39:21 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 36
Message-ID: <afbujp$cmj$1@nets3.rz.RWTH-Aachen.DE>
References: <3D18CE8F DOT 1070101 AT inago DOT com>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 1025080761 13011 137.226.32.75 (26 Jun 2002 08:39:21 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 26 Jun 2002 08:39:21 GMT
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Neil Gower <neilg AT inago DOT com> wrote:

> I'm trying to build some code that was distributed with a GNU configure 
> script using the MS VC6 compiler (i.e. cl.exe and nmake) on W2K.
[...]
> I set CC=cl, and cl (the compiler) seems to work fine from the prompt. 
> However, when I run configure, I get:
[...]
> checking for working autoconf... missing
> checking for working automake... missing
> checking for working autoheader... found

This is rather strange. It's not clear to me how it could have
happened that you can find autoheader, but none of the other auto*
tools.

> checking for gcc... cl
> checking whether the C compiler (cl  ) works... no

I rather strongly suspect that the reason for this failure is that MS'
compiler doesn't comply with Unix-ish standards regarding options for
a C compiler --- "why should we?" is MS' typical point of view in
these matters.  

In particular, I don't think it ever interpreted option "-ofoo.exe" to
mean "call the generated .exe file foo.exe".  It expects
"/out:foo.exe" instead.  And that's just the first in a long series of
similar discrepancies.

I guess you will have to provide a wrapper program (Batch file, bash
script, or whatever), that reads a Unix-ish "cc" command line, and
re-writes its arguments into the syntax expected by 'cl'.  For further
simplicity, you might just as well call that script 'cc'.
-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019