fixed minor errors in Jeff's patches.
authorJack Moffitt <jack@xiph.org>
Mon, 26 Mar 2001 22:30:08 +0000 (22:30 +0000)
committerJack Moffitt <jack@xiph.org>
Mon, 26 Mar 2001 22:30:08 +0000 (22:30 +0000)
svn path=/trunk/vorbis/; revision=1402

acinclude.m4
vorbis.m4

index 5a7e261..73e41bd 100644 (file)
@@ -16,7 +16,7 @@ dnl
 AC_ARG_WITH(ogg-prefix,[  --with-ogg-prefix=PFX   Prefix where libogg is installed (optional)], ogg_prefix="$withval", ogg_prefix="")
 AC_ARG_ENABLE(oggtest, [  --disable-oggtest       Do not try to compile and run a test Ogg program],, enable_oggtest=yes)
 
-  if test x$ogg_prefix != x ; then
+  if test "x$ogg_prefix" != "xNONE" ; then
     ogg_args="$ogg_args --prefix=$ogg_prefix"
     OGG_CFLAGS="-I$ogg_prefix/include"
     OGG_LIBS="-L$ogg_prefix/lib"
@@ -58,7 +58,7 @@ int main ()
        LIBS="$ac_save_LIBS"
   fi
 
-  if test "x$no_ogg" = x ; then
+  if test "x$no_ogg" = "x" ; then
      AC_MSG_RESULT(yes)
      ifelse([$1], , :, [$1])     
   else
index 7ce9600..1c0d846 100644 (file)
--- a/vorbis.m4
+++ b/vorbis.m4
@@ -12,7 +12,7 @@ dnl
 AC_ARG_WITH(vorbis-prefix,[  --with-vorbis-prefix=PFX   Prefix where libvorbis is installed (optional)], vorbis_prefix="$withval", vorbis_prefix="")
 AC_ARG_ENABLE(vorbistest, [  --disable-vorbistest       Do not try to compile and run a test Vorbis program],, enable_vorbistest=yes)
 
-  if test x$vorbis_prefix != x ; then
+  if test "x$vorbis_prefix" != "xNONE" ; then
     vorbis_args="$vorbis_args --prefix=$vorbis_prefix"
     VORBIS_CFLAGS="-I$vorbis_prefix/include"
     VORBIS_LIBDIR="-L$vorbis_prefix/lib"
@@ -56,7 +56,7 @@ int main ()
        LIBS="$ac_save_LIBS"
   fi
 
-  if test "x$no_vorbis" = x ; then
+  if test "x$no_vorbis" = "x" ; then
      AC_MSG_RESULT(yes)
      ifelse([$1], , :, [$1])     
   else