shithub: sox

Download patch

ref: affe28f816d6ed094e6ac2829399797a8dd036da
parent: d8ae6f69ab6de010fc0f26a7aa016015bd554ac7
author: evilynux <evilynux>
date: Wed May 2 11:50:15 EDT 2007

Added -logg, -lvorbisenc and -lvorbisfile when their respective headers are found.

--- a/configure.ac
+++ b/configure.ac
@@ -165,9 +165,9 @@
 dnl Check for Ogg Vorbis libraries
 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)],
+    AC_CHECK_LIB(ogg, ogg_packet_clear,LIBS="$LIBS -logg", with_ogg_vorbis=no)
+    AC_CHECK_LIB(vorbisfile, ov_clear,LIBS="$LIBS -lvorbisfile", with_ogg_vorbis=no)
+    AC_CHECK_LIB(vorbisenc, vorbis_encode_init_vbr,LIBS="$LIBS -lvorbisenc", with_ogg_vorbis=no)],
     with_ogg_vorbis=no)
 
 dnl Check for FLAC libraries