From 0fe0425dee555027c94a39ca0bca5bac947f4702 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 27 Dec 2008 14:33:41 +0100 Subject: disable archive API without plugins When there are no archive plugins, we do not need the archive API at all. Drop all its overhead. --- src/Makefile.am | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am index 38ba8b223..b327a8f93 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -158,10 +158,7 @@ mpd_SOURCES = \ volume.c \ locate.c \ stored_playlist.c \ - timer.c \ - archive_api.c \ - archive_list.c \ - input_archive.c + timer.c if HAVE_LIBSAMPLERATE mpd_SOURCES += pcm_resample_libsamplerate.c @@ -187,6 +184,14 @@ if HAVE_ISO mpd_SOURCES += archive/iso_plugin.c endif +if ENABLE_ARCHIVE +mpd_SOURCES += \ + archive_api.c \ + archive_list.c \ + input_archive.c +endif + + # decoder plugins if HAVE_MAD -- cgit v1.2.3