[MPlayer-users] [PATCH] ./configure syntax error

D Richard Felker III dalias at aerifal.cx
Fri Jan 3 17:25:24 CET 2003


On Fri, Jan 03, 2003 at 11:22:58PM +1100, Cameron Hutchison wrote:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> Once upon a time Steven M. Schultz said...
> > 
> > > > -if x86 && ! cygwin; then
> > > > +if test x86 -a ! cygwin; then
> > > 
> > > I don't think so. x86 and cygwin are function calls, not variables.
> > 
> > 	Right.  And the shell will evaluate them as function calls _before_
> > 	invoking 'test' - won't it?
> 
> No. They're just arguments to 'test'. The shell will just pass them as
> strings.

I don't think so; that's total nonsense. If that were the case you'd
be running test on a constant string which would always evaluate to
true!!

> if x86 ; then if cygwin ; then : ; else <stuff goes here> ; fi ; fi

This should work, but it contradicts what you said before. Also silly
to have two ifs. Use if x86 && cygwin ; then : ...

Rich



More information about the MPlayer-users mailing list