configure.ac: add macro MPD_ENABLE_AUTO_PKG
Simplify the definition of many build options.
This commit is contained in:
@@ -52,7 +52,7 @@ const struct DecoderPlugin *const decoder_plugins[] = {
|
||||
#ifdef HAVE_MAD
|
||||
&mad_decoder_plugin,
|
||||
#endif
|
||||
#ifdef HAVE_MPG123
|
||||
#ifdef ENABLE_MPG123
|
||||
&mpg123_decoder_plugin,
|
||||
#endif
|
||||
#ifdef HAVE_MP4V2
|
||||
@@ -61,19 +61,17 @@ const struct DecoderPlugin *const decoder_plugins[] = {
|
||||
#ifdef ENABLE_VORBIS_DECODER
|
||||
&vorbis_decoder_plugin,
|
||||
#endif
|
||||
#if defined(HAVE_FLAC)
|
||||
#ifdef ENABLE_FLAC
|
||||
&oggflac_decoder_plugin,
|
||||
#endif
|
||||
#ifdef HAVE_FLAC
|
||||
&flac_decoder_plugin,
|
||||
#endif
|
||||
#ifdef HAVE_OPUS
|
||||
#ifdef ENABLE_OPUS
|
||||
&opus_decoder_plugin,
|
||||
#endif
|
||||
#ifdef ENABLE_SNDFILE
|
||||
&sndfile_decoder_plugin,
|
||||
#endif
|
||||
#ifdef HAVE_AUDIOFILE
|
||||
#ifdef ENABLE_AUDIOFILE
|
||||
&audiofile_decoder_plugin,
|
||||
#endif
|
||||
#ifdef ENABLE_DSD
|
||||
@@ -86,10 +84,10 @@ const struct DecoderPlugin *const decoder_plugins[] = {
|
||||
#ifdef HAVE_MPCDEC
|
||||
&mpcdec_decoder_plugin,
|
||||
#endif
|
||||
#ifdef HAVE_WAVPACK
|
||||
#ifdef ENABLE_WAVPACK
|
||||
&wavpack_decoder_plugin,
|
||||
#endif
|
||||
#ifdef HAVE_MODPLUG
|
||||
#ifdef ENABLE_MODPLUG
|
||||
&modplug_decoder_plugin,
|
||||
#endif
|
||||
#ifdef ENABLE_MIKMOD_DECODER
|
||||
@@ -104,10 +102,10 @@ const struct DecoderPlugin *const decoder_plugins[] = {
|
||||
#ifdef ENABLE_FLUIDSYNTH
|
||||
&fluidsynth_decoder_plugin,
|
||||
#endif
|
||||
#ifdef HAVE_ADPLUG
|
||||
#ifdef ENABLE_ADPLUG
|
||||
&adplug_decoder_plugin,
|
||||
#endif
|
||||
#ifdef HAVE_FFMPEG
|
||||
#ifdef ENABLE_FFMPEG
|
||||
&ffmpeg_decoder_plugin,
|
||||
#endif
|
||||
#ifdef HAVE_GME
|
||||
|
Reference in New Issue
Block a user