From e3047e45ebb57a407385c59d78029e98ffb4b2b8 Mon Sep 17 00:00:00 2001 From: Witold Pilat Date: Sun, 19 Jan 2014 07:23:33 +0000 Subject: configure: Add option to disable libsamplerate. Some distros don't like automagic dependencies. Fixes #315. --- configure.ac | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index e7e257ec..90c2752a 100644 --- a/configure.ac +++ b/configure.ac @@ -73,8 +73,13 @@ AC_SDL_MAIN_WORKAROUND([ ]) # Check for libsamplerate. - - AC_CHECK_LIB(samplerate, src_new) + AC_ARG_WITH([libsamplerate], + AS_HELP_STRING([--without-libsamplerate], + [Build without libsamplerate @<:@default=check@:>@]), + [], + [ + AC_CHECK_LIB(samplerate, src_new) + ]) AC_CHECK_LIB(m, log) AC_CHECK_HEADERS([linux/kd.h dev/isa/spkrio.h dev/speaker/speaker.h]) -- cgit v1.2.3