summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2014-01-04 15:38:43 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2014-01-04 15:38:43 +0100
commitaff06750c0cd62e7276e3230fa5dd8220b903132 (patch)
tree4861f1d6f048c9ff465644c2b1cf5e0f7b0df30f /configure.ac
parent960702b18260b8e238288e2e4df22d1521d521fe (diff)
Disable/enable resample on compiletime. Enable/disable using env on runtime.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac14
1 files changed, 10 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 820c627..7c3a0ed 100644
--- a/configure.ac
+++ b/configure.ac
@@ -301,10 +301,16 @@ dnl Check for sndfile
dnl ======================
PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.20)
-dnl ======================
-dnl Check for libsamplerate
-dnl ======================
-PKG_CHECK_MODULES(SAMPLERATE, samplerate >= 0.1.7)
+AC_ARG_WITH(resample, [ --with-resample Build with resample support])
+if test x$with_resample == xyes; then
+ AC_MSG_WARN([*** Building resample support!])
+ AC_DEFINE(WITH_RESAMPLE, [], [Use resample])
+
+ dnl ======================
+ dnl Check for libsamplerate
+ dnl ======================
+ PKG_CHECK_MODULES(SAMPLERATE, samplerate >= 0.1.7)
+fi
#dnl ======================
#dnl Check for libpng