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

add the --readline auto option

parent bac7cc77
......@@ -36,13 +36,7 @@ example_libs = {
}
def configure(conf):
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
#if conf.is_defined('HAVE_READLINE'):
# conf.env['LIB_READLINE'] = ['readline']
conf.env['BUILD_EXAMPLE_CLIENT_TRANSPORT'] = bool(conf.env['LIB_READLINE'])
conf.env['BUILD_EXAMPLE_CLIENT_TRANSPORT'] = conf.env['READLINE']
conf.env['BUILD_EXAMPLE_CLIENT_REC'] = conf.env['SNDFILE']
......
......@@ -433,6 +433,8 @@ def options(opt):
samplerate.add_package('samplerate')
sndfile = add_auto_option(opt, 'sndfile', help='Build with libsndfile')
sndfile.add_package('sndfile')
readline = add_auto_option(opt, 'readline', help='Build with readline')
readline.add_library('readline')
# dbus options
opt.sub_options('dbus')
......
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