delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/01/24/15:03:19

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Mon, 24 Jan 2005 21:58:16 +0200
From: "Eli Zaretskii" <eliz AT gnu DOT org>
To: Stepan Kasal <kasal AT ucw DOT cz>
Message-ID: <01c5024f$Blat.v2.4$31b8e540@zahav.net.il>
CC: karl AT freefriends DOT org, dave AT boost-consulting DOT com, bug-texinfo AT gnu DOT org,
akim AT epita DOT fr, ebb9 AT byu DOT net, cygwin AT cygwin DOT com
In-reply-to: <20050124083421.GA2986@matsrv.math.cas.cz> (message from Stepan Kasal on Mon, 24 Jan 2005 09:34:21 +0100)
Subject: Re: Fw: bug in texi2dvi, and hack patch
Reply-to: Eli Zaretskii <eliz AT gnu DOT org>
References: <41EE544A DOT 2000306 AT byu DOT net> <200501240115 DOT j0O1FWh15382 AT f7 DOT net> <20050124083421 DOT GA2986 AT matsrv DOT math DOT cas DOT cz>

> Date: Mon, 24 Jan 2005 09:34:21 +0100
> From: Stepan Kasal <kasal AT ucw DOT cz>
> Cc: dave AT boost-consulting DOT com, bug-texinfo AT gnu DOT org, akim AT epita DOT fr, ebb9 AT byu DOT net,
> 	cygwin AT cygwin DOT com
> 
> Fix the problem exactly as reported:
> the configure script tests for the problem:
> 
> 	AC_SUBST(TESTF, "test -f")
> 	testfile=conf$$.exe
> 	touch $testfile
> 	if test -x $testfile; then
> 		test -f $testfile || TESTF=:
> 	fi
> 	rm -f $testfile
> 
> and use
> 	for dir in $PATH; do
> 	  if test -x "$dir/$1" && @TESTF@ "$dir/$1"; then
> or
> 	testf="@TESTF@"
> 	...
> 	for dir in $PATH; do
> 	  if test -x "$dir/$1" && $testf "$dir/$1"; then
> 
> in texi2dvi.in .

Could you please annotate this with explanations of how/why this is
supposed to work correctly?  I have trouble following the convoluted
logic, perhaps because I don't know enough about Autoconf.  (I also
don't know what results you expect from "test -x foo.exe" when foo.exe
is an empty file produced by "touch foo.exe".)

> Another way to fix the problem is to adopt the solution used by autoconf:
> make sure that the variable $ac_executable_extensions, which is set in
> config.site on some platforms, gets substituted:
> 
> 	AC_SUBST(ac_executable_extensions)
> 
> and put the following to texi2dvi.in:
> 
> 	for dir in $PATH; do
> 	  for exec_ext in '' @ac_executable_extensions@; do
> 	    if test -f "$dir/$1" && test -x "$dir/$1"; then
> 		...

I'm okay with this method, provided that ac_executable_extensions can
be computed reliably (you didn't say how).

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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