1dnl libmad (mp3) 2 3AC_ARG_WITH(mp3, AS_HELP_STRING([--without-mp3], 4 [Compile without mp3 support (libmad)])) 5 6if test "x$with_mp3" != "xno" 7then 8 AC_CHECK_LIB(mad, mad_stream_init, [ 9 AC_CHECK_HEADER([mad.h], ,)]) 10 11 if test "$ac_cv_lib_mad_mad_stream_init" = "yes" -a "$HAVE_ID3TAG" = "yes" 12 then 13 want_mp3="yes" 14 DECODER_PLUGINS="$DECODER_PLUGINS mp3" 15 fi 16fi 17 18AM_CONDITIONAL([BUILD_mp3], [test "$want_mp3"]) 19AC_CONFIG_FILES([decoder_plugins/mp3/Makefile]) 20