shithub: aubio

Download patch

ref: eb6899125ac83900710180c02b94bc593a1426d2
parent: a984461f81c2549a1df0d6c0160cfd5262ee2713
author: Paul Brossier <[email protected]>
date: Fri Aug 21 07:04:03 EDT 2015

wscript: check HAVE_AV* from ctx.env

--- a/wscript
+++ b/wscript
@@ -243,7 +243,7 @@
         ctx.check_cfg(package = 'libavresample', atleast_version = '1.0.1',
                 args = '--cflags --libs', uselib_store = 'AVRESAMPLE',
                 mandatory = ctx.options.enable_avcodec)
-        if all ( 'HAVE_' + i in ctx.env.define_key
+        if all ( 'HAVE_' + i in ctx.env
                 for i in ['AVCODEC', 'AVFORMAT', 'AVUTIL', 'AVRESAMPLE'] ):
             ctx.define('HAVE_LIBAV', 1)
             ctx.msg('Checking for all libav libraries', 'yes')