From ea43b15ea9d753720a00931242a882925ee48e97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Lind=C3=A9n?= Date: Fri, 10 Apr 2015 16:54:20 +0200 Subject: [PATCH] use pkg-config to find sndfile (drop explicit LIB_SNDFILE and HAVE_SNDFILE since check_cfg deals with it) --- example-clients/wscript | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/example-clients/wscript b/example-clients/wscript index 232b4891..f834e8a2 100644 --- a/example-clients/wscript +++ b/example-clients/wscript @@ -36,11 +36,8 @@ example_libs = { } def configure(conf): - e = conf.check_cc(header_name='sndfile.h', define_name="HAVE_SNDFILE", mandatory=False) + conf.check_cfg(package='sndfile', args='--cflags --libs', mandatory=False) - if conf.is_defined('HAVE_SNDFILE'): - conf.env['LIB_SNDFILE'] = ['sndfile'] - 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