summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWitold Pilat2014-01-19 07:23:33 +0000
committerSimon Howard2014-01-19 07:24:09 +0000
commite3047e45ebb57a407385c59d78029e98ffb4b2b8 (patch)
tree3222dd480610b31567e1b447ec1a5efd130b3e34
parent3ad2868c5747b3f11c798f6ae6803ca05dff6aa8 (diff)
downloadchocolate-doom-e3047e45ebb57a407385c59d78029e98ffb4b2b8.tar.gz
chocolate-doom-e3047e45ebb57a407385c59d78029e98ffb4b2b8.tar.bz2
chocolate-doom-e3047e45ebb57a407385c59d78029e98ffb4b2b8.zip
configure: Add option to disable libsamplerate.
Some distros don't like automagic dependencies. Fixes #315.
-rw-r--r--configure.ac9
1 files 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])