From 5a59aef94c68053e9d298124d9c7e125976871dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Lind=C3=A9n?= Date: Fri, 10 Apr 2015 17:11:34 +0200 Subject: [PATCH] add the --readline auto option --- example-clients/wscript | 8 +------- wscript | 2 ++ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/example-clients/wscript b/example-clients/wscript index 0c8f32da..cee04cc2 100644 --- a/example-clients/wscript +++ b/example-clients/wscript @@ -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'] diff --git a/wscript b/wscript index 5d03cd18..05d79ddc 100644 --- a/wscript +++ b/wscript @@ -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')