wscript: fallback on ooura last
authorPaul Brossier <piem@piem.org>
Thu, 26 Sep 2013 19:58:55 +0000 (14:58 -0500)
committerPaul Brossier <piem@piem.org>
Mon, 30 Sep 2013 15:18:49 +0000 (18:18 +0300)
wscript

diff --git a/wscript b/wscript
index 0645cd9..697a715 100644 (file)
--- a/wscript
+++ b/wscript
@@ -138,13 +138,16 @@ def configure(ctx):
         ctx.check_cfg(package = 'fftw3f', atleast_version = '3.0.0',
             args = '--cflags --libs', mandatory = False)
     ctx.define('HAVE_FFTW3', 1)
+
+  # fftw disabled, use ooura
+  if 'HAVE_FFTW3F' in ctx.env.define_key:
+    ctx.msg('Checking for FFT implementation', 'fftw3f')
+  elif 'HAVE_FFTW3' in ctx.env.define_key:
+    ctx.msg('Checking for FFT implementation', 'fftw3')
+  elif 'HAVE_ACCELERATE' in ctx.env.define_key:
+    ctx.msg('Checking for FFT implementation', 'vDSP')
   else:
-    # fftw disabled, use ooura
-    if 'HAVE_ACCELERATE' in ctx.env.define_key:
-        ctx.msg('Checking for FFT implementation', 'vDSP')
-    else:
-        ctx.msg('Checking for FFT implementation', 'ooura')
-    pass
+    ctx.msg('Checking for FFT implementation', 'ooura')
 
   if (Options.options.enable_jack != False):
     ctx.check_cfg(package = 'jack', atleast_version = '0.15.0',