summaryrefslogtreecommitdiff
path: root/example-clients
diff options
context:
space:
mode:
authorKarl Lindén <karl.j.linden@gmail.com>2015-04-10 17:02:30 +0200
committerKarl Lindén <karl.j.linden@gmail.com>2015-04-10 17:02:30 +0200
commitbac7cc775de4461b5833f27cb13153839bb7cba8 (patch)
treee8ef157ac6863094edabbbfb341392204dcc052f /example-clients
parentea43b15ea9d753720a00931242a882925ee48e97 (diff)
downloadjack2-bac7cc775de4461b5833f27cb13153839bb7cba8.tar.gz
add the --sndfile auto option and check sndfile availability with env['SNDFILE'] instead of is_defined('HAVE_SNDFILE')
Diffstat (limited to 'example-clients')
-rw-r--r--example-clients/wscript4
1 files changed, 1 insertions, 3 deletions
diff --git a/example-clients/wscript b/example-clients/wscript
index f834e8a2..0c8f32da 100644
--- a/example-clients/wscript
+++ b/example-clients/wscript
@@ -36,8 +36,6 @@ example_libs = {
}
def configure(conf):
- conf.check_cfg(package='sndfile', args='--cflags --libs', mandatory=False)
-
e = conf.check_cc(lib='readline', define_name="HAVE_READLINE", mandatory=False)
# define_name="HAVE_READLINE" has no effect, LIB_READLINE is defined if readline is available
@@ -46,7 +44,7 @@ def configure(conf):
conf.env['BUILD_EXAMPLE_CLIENT_TRANSPORT'] = bool(conf.env['LIB_READLINE'])
- conf.env['BUILD_EXAMPLE_CLIENT_REC'] = conf.is_defined('HAVE_SNDFILE')
+ conf.env['BUILD_EXAMPLE_CLIENT_REC'] = conf.env['SNDFILE']
conf.env['BUILD_EXAMPLE_ALSA_IO'] = conf.env['SAMPLERATE'] and conf.env['BUILD_DRIVER_ALSA']