delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/06/29/11:43:18

Date: Fri, 29 Jun 2001 17:53:16 +0300
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: "Laurynas Biveinis" <lauras AT softhome DOT net>
Message-Id: <3395-Fri29Jun2001175316+0300-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9
CC: djgpp-workers AT delorie DOT com
In-reply-to: <20010629142627.B205@lauras.lt>
Subject: Re: bash 2.04 build failure?
References: <3395-Wed20Jun2001200621+0300-eliz AT is DOT elta DOT co DOT il> <3B3890D8 DOT 12023 DOT 1A6E91 AT localhost> <20010628184544 DOT B205 AT lauras DOT lt> <20010629142627 DOT B205 AT lauras DOT lt>
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: "Laurynas Biveinis" <lauras AT softhome DOT net>
> Date: Fri, 29 Jun 2001 14:26:27 +0200
> 
> > Consider you have hello.exe in current dir and this script:
> > 
> > #!/bin/sh
> > if (./hello; exit) ; then
> >    ac_cv_prog_cc_cross=no
> > else
> >    ac_cv_prog_cc_cross=yes
> > fi
> > echo '$ac_cv_prog_cc_cross = ' $ac_cv_prog_cc_cross
> > 
> > Its output:
> > Hello, world!
> > $ac_cv_prog_cc_cross = yes
> > 
> > Hello.exe returns with exit code 0.
> 
> Looks like I got it - it boils down to the same extension search order.
> My testcase fails because there are both conftest and conftest.exe in same
> directory. If I move out extensionless conftest outta way, it starts working.

On second thought, I don't think I understand the problem in this case
and why does moving conftest out of the way solves it: running both
foo and foo.exe should have produced the same effect in this case,
since they are both the same program.  Could you explain why you think
it fails?

(I also think you meant hello, not conftest.)

Also, I thought you wanted the extensionless program toi run at the
expense of the one with extension, no?  At least I think Tim and Mark
wanted that.  But you seem to say that running the extensionless
program is harmful in this case.

- Raw text -


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