Index: alsa-plugins-1.0.12rc1/configure.in =================================================================== --- alsa-plugins-1.0.12rc1.orig/configure.in +++ alsa-plugins-1.0.12rc1/configure.in @@ -13,15 +13,29 @@ PKG_CHECK_MODULES(ALSA, alsa >= 1.0.11) AC_CHECK_LIB(asound, snd_pcm_ioplug_create,, AC_ERROR([*** libasound has no external plugin SDK]), -ldl) -PKG_CHECK_MODULES(JACK, jack >= 0.98, [HAVE_JACK=yes], [HAVE_JACK=no]) +AC_ARG_ENABLE([jack], + AC_HELP_STRING([--disable-jack], [Disable building of JACK plugin])) +if test "x$enable_jack" != "xno"; then + PKG_CHECK_MODULES(JACK, jack >= 0.98, [HAVE_JACK=yes], [HAVE_JACK=no]) +fi AM_CONDITIONAL(HAVE_JACK, test x$HAVE_JACK = xyes) -PKG_CHECK_MODULES(pulseaudio, [libpulse >= 0.9.2], [HAVE_PULSE=yes], [HAVE_PULSE=no]) +AC_ARG_ENABLE([pulseaudio], + AC_HELP_STRING([--disable-pulseaudio], [Disable building of pulseaudio plugin])) +if test "x$enable_pulseaudio" != "xno"; then + PKG_CHECK_MODULES(pulseaudio, [libpulse >= 0.9.2], [HAVE_PULSE=yes], [HAVE_PULSE=no]) +fi AM_CONDITIONAL(HAVE_PULSE, test x$HAVE_PULSE = xyes) -PKG_CHECK_MODULES(samplerate, [samplerate], [HAVE_SAMPLERATE=yes], [HAVE_SAMPLERATE=no]) +AC_ARG_ENABLE([samplerate], + AC_HELP_STRING([--disable-samplerate], [Disable building of samplerate plugin])) +if test "x$enable_samplerate" != "xno"; then + PKG_CHECK_MODULES(samplerate, [samplerate], [HAVE_SAMPLERATE=yes], [HAVE_SAMPLERATE=no]) +fi AM_CONDITIONAL(HAVE_SAMPLERATE, test x$HAVE_SAMPLERATE = xyes) +AC_ARG_ENABLE([avcodec], + AC_HELP_STRING([--disable-avcodec], [Disable building of avcodec code (a52 plugin)])) AC_ARG_WITH([avcodec-includedir], [--with-avcodec-includedir=dir AVcodec include directory], [AVCODEC_CFLAGS="-I$withval"], [AVCODEC_CFLAGS=""]) @@ -35,9 +49,11 @@ LDFLAGS="$LDFLAGS $AVCODEC_LIBS" AC_SUBST(AVCODEC_CFLAGS) AVCODEC_LIBS="$AVCODEC_LIBS -lavcodec" AC_SUBST(AVCODEC_LIBS) -AC_CHECK_LIB([avcodec], [avcodec_open], [HAVE_AVCODEC=yes], [HAVE_AVCODEC=no]) -if test x$HAVE_AVCODEC = xyes; then - AC_CHECK_HEADER([ffmpeg/avcodec.h], [], [HAVE_AVCODEC=no]) +if test "x$enable_avcodec" != "xno"; then + AC_CHECK_LIB([avcodec], [avcodec_open], [HAVE_AVCODEC=yes], [HAVE_AVCODEC=no]) + if test x$HAVE_AVCODEC = xyes; then + AC_CHECK_HEADER([ffmpeg/avcodec.h], [], [HAVE_AVCODEC=no]) + fi fi AM_CONDITIONAL(HAVE_AVCODEC, test x$HAVE_AVCODEC = xyes) CFLAGS="$CFLAGS_saved"