Index: sox-13.0.0/configure.ac =================================================================== --- sox-13.0.0.orig/configure.ac +++ sox-13.0.0/configure.ac @@ -120,12 +120,19 @@ AC_SUBST(SNDFILE_CFLAGS) AC_SUBST(SNDFILE_LIBS) dnl Check for Ogg Vorbis libraries +AC_ARG_WITH(oggvorbis, AC_HELP_STRING([--with-oggvorbis], + [Use oggvorbis if present (default is yes)]), + [with_ogg_vorbis=$withval], + [with_ogg_vorbis=yes]) + +if test "$with_ogg_vorbis" = yes; then AC_CHECK_HEADER(vorbis/codec.h, [with_ogg_vorbis=yes AC_CHECK_LIB(ogg, ogg_packet_clear,, with_ogg_vorbis=no) AC_CHECK_LIB(vorbisfile, ov_clear,, with_ogg_vorbis=no) AC_CHECK_LIB(vorbisenc, vorbis_encode_init_vbr,, with_ogg_vorbis=no)], with_ogg_vorbis=no) +fi dnl Check for FLAC libraries AC_ARG_WITH(flac,