From 8be88e77f5c275fdf4efc99ae182d14940948786 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Mon, 3 Oct 2016 14:24:29 +0200 Subject: [PATCH] wscript: disable libsamplerate if double precision enabled (libsamplerate only supports float) --- wscript | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wscript b/wscript index 3646dd38..a2dda42b 100644 --- a/wscript +++ b/wscript @@ -261,6 +261,13 @@ def configure(ctx): mandatory = ctx.options.enable_sndfile) # check for libsamplerate + if (ctx.options.enable_double): + if (ctx.options.enable_samplerate): + ctx.fatal("Could not compile aubio in double precision mode with libsamplerate") + else: + ctx.options.enable_samplerate = False + ctx.msg('Checking if using samplerate', 'no (disabled in double precision mode)', + color = 'YELLOW') if (ctx.options.enable_samplerate != False): ctx.check_cfg(package = 'samplerate', atleast_version = '0.0.15', args = '--cflags --libs', -- 2.11.0