shithub: sox

Download patch

ref: b852af9353236719355f1d81d8787eea5c2d1136
parent: b7396ccef8da152b40f0ebcbf6e9dfbe231e2411
author: cbagwell <cbagwell>
date: Sun Jan 26 12:16:18 EST 2003

Fixed configure problem were options weren't disabled if header files
were not found.

--- a/configure
+++ b/configure
@@ -3856,7 +3856,7 @@
 if test $ac_cv_header_vorbis_codec_h = yes; then
   found_ogg_vorbis=yes
 else
-  found_ogg_vorbis=no
+  enable_ogg_vorbis=no
 fi
 
 
@@ -4038,7 +4038,7 @@
 if test $ac_cv_header_mad_h = yes; then
   found_mad=yes
 else
-  found_mad=no
+  enable_mad=no
 fi
 
 
@@ -4220,7 +4220,7 @@
 if test $ac_cv_header_lame_lame_h = yes; then
   found_lame=yes
 else
-  found_lame=no
+  enable_lame=no
 fi
 
 
--- a/configure.in
+++ b/configure.in
@@ -129,7 +129,7 @@
 
 if test "$enable_ogg_vorbis" = yes
 then
-    AC_CHECK_HEADER(vorbis/codec.h, found_ogg_vorbis=yes, found_ogg_vorbis=no)
+    AC_CHECK_HEADER(vorbis/codec.h, found_ogg_vorbis=yes, enable_ogg_vorbis=no)
     if test "$found_ogg_vorbis" = yes
     then
         AC_CHECK_LIB(vorbis, vorbis_analysis_init,
@@ -144,7 +144,7 @@
 
 if test "$enable_mad" = yes
 then
-    AC_CHECK_HEADER(mad.h, found_mad=yes, found_mad=no)
+    AC_CHECK_HEADER(mad.h, found_mad=yes, enable_mad=no)
     if test "$found_mad" = yes
     then
         AC_CHECK_LIB(mad, mad_stream_buffer,
@@ -159,7 +159,7 @@
 
 if test "$enable_lame" = yes
 then
-    AC_CHECK_HEADER(lame/lame.h, found_lame=yes, found_lame=no)
+    AC_CHECK_HEADER(lame/lame.h, found_lame=yes, enable_lame=no)
     if test "$found_lame" = yes
     then
         AC_CHECK_LIB(mp3lame, lame_init,