Commit bac7cc77 authored by Karl Lindén's avatar Karl Lindén
Browse files

add the --sndfile auto option and check sndfile availability with...

add the --sndfile auto option and check sndfile availability with env['SNDFILE'] instead of is_defined('HAVE_SNDFILE')
parent ea43b15e
......@@ -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_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']
......@@ -431,6 +431,8 @@ def options(opt):
opus.add_package('opus', atleast_version='0.9.0')
samplerate = add_auto_option(opt, 'samplerate', help='Build with libsamplerate')
sndfile = add_auto_option(opt, 'sndfile', help='Build with libsndfile')
# dbus options
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment