From: Paul Brossier Date: Thu, 5 Nov 2009 22:21:32 +0000 (+0100) Subject: wscript: add option to disable libsamplerate X-Git-Tag: bzr2git~23 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2e4fb04084c09663b1f149a23d060925c3530ca9;p=aubio.git wscript: add option to disable libsamplerate --- diff --git a/wscript b/wscript index 8b59dc8d..1b675457 100644 --- a/wscript +++ b/wscript @@ -23,6 +23,8 @@ def set_options(opt): help='compile without jack support') opt.add_option('--disable-lash', action='store_true', default=False, help='compile without lash support') + opt.add_option('--disable-libsamplerate', action='store_true', default=False, + help='compile without libsamplerate support') opt.add_option('--with-target-platform', type='string', help='set target platform for cross-compilation', dest='target_platform') opt.tool_options('compiler_cc') @@ -54,11 +56,12 @@ def configure(conf): if (Options.options.enable_complex == True): conf.check(header_name='complex.h') - # required dependancies + # check dependencies conf.check_cfg(package = 'sndfile', atleast_version = '1.0.4', args = '--cflags --libs') - conf.check_cfg(package = 'samplerate', atleast_version = '0.0.15', - args = '--cflags --libs') + if (Options.options.disable_libsamplerate == False): + conf.check_cfg(package = 'libsamplerate', atleast_version = '0.0.15', + args = '--cflags --libs') # double precision mode if (Options.options.enable_double == True):