delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/01/10/10:50:52

Message-Id: <199901101550.PAA86044@out1.ibm.net>
From: "Mark E." <melbrecht1 AT ibm DOT net>
To: djgpp-workers AT delorie DOT com
Date: Sun, 10 Jan 1999 10:51:17 -0500
MIME-Version: 1.0
Subject: Re: shell utils 1.16 question
References: <199901082041 DOT UAA153364 AT out5 DOT ibm DOT net>
In-reply-to: <Pine.SUN.3.91.990110133301.20678S-100000@is>
X-mailer: Pegasus Mail for Win32 (v3.01d)
Reply-To: djgpp-workers AT delorie DOT com

> The right way to fix this is to change Autoconf so that the generated
> scripts automatically work correctly on DOS and Windows.

Right.
>Since "test -x"
> cannot be used unconditionally (some old shells don't support it), one
> way that works is this:
> 
>     if test -n "$COMSPEC$ComSpec"; then ac_x=-x; else ac_x=-f; fi
> 
> (the ComSpec part is for NT) and subsequently use "test $ac_x" instead
> of "test -f".
> 

I proposed testing $COMSPEC to the autoconf mailing list before 
my e-mail outage, but this solution was also rejected in the mail I 
read a few minutes. If I hadn't already deleted the e-mail with the 
reason, I could have quoted the reason here, but I do remember it 
saying something like the solution not being in the spirit of 
autoconf. 

Mark

- Raw text -


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