[vorbis-dev] ogg.m4 and vorbis.m4
volsung at asu.edu
volsung at asu.edu
Mon Aug 20 06:57:13 PDT 2001
On Mon, 20 Aug 2001, Jeff Squyres wrote:
> Ah -- I was wondering where NONE came from. Here's what I get (BTW, 2.52
> is the most recent version of autoconf):
>
> $prefix 2.13 2.52
> --------------------- ------------- ----------------
> <nothing> NONE NONE
> --prefix=foo foo foo
>
> $ogg_prefix 2.13 2.52
> --------------------- ------------- ----------------
> <nothing> "" ""
> --with-ogg-prefix=foo foo foo
> --without-ogg-prefix no no
>
> I'm not sure where the whole "x$foo" = "x" thing came from (perhaps
> someone put the quotes in later), but there's no harm in adding another
> character, so I left it in my original e-mail. So if we understand where
> the NONE stuff came from, we can reduce the test to:
>
> if test "$ogg_prefix" != "" -a "$ogg_prefix" != "no"; then
> ...
> elif test "$prefix" != "" -a "$prefix" != "NONE"; then
> ...
> fi
>
> Howzat?
Looks good. This is exactly the information I was looking for.
The "x" stuff is to avoid problems where the shell does not interpret the
empty string as another argument. Without it, you might feed test fewer
arguments than you intend, like:
test !=
test != NONE
etc.
Do we need to test $prefix for being empty if "NONE" is really the case we are
going for? I think the stuff about "NONE" vs. "" was just confusion about
$prefix vs. $ogg_prefix.
---
Stan Seibert
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the Vorbis-dev
mailing list