From 74efa45d8cad7e4cf85c85520d093f5d072d7f04 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 25 Sep 2015 20:31:05 +0100 Subject: [PATCH] Improve finding of libicu without pkgconfig. --- wscript | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/wscript b/wscript index c4e6fdf42..2970e8fc5 100644 --- a/wscript +++ b/wscript @@ -162,7 +162,19 @@ def configure(conf): # libicu if conf.check_cfg(package='icu-i18n', args='--cflags --libs', uselib_store='ICU', mandatory=False) is None: if conf.check_cfg(package='icu', args='--cflags --libs', uselib_store='ICU', mandatory=False) is None: - Logs.pprint('RED', 'libicu not found') + conf.check_cxx(fragment=""" + #include + int main(void) { + UErrorCode status = U_ZERO_ERROR; + UCharsetDetector* detector = ucsdet_open (&status); + return 0; }\n + """, + mandatory=True, + msg='Checking for libicu', + okmsg='yes', + libpath=['/usr/local/lib', '/usr/lib', '/usr/lib/x86_64-linux-gnu'], + lib=['icuio', 'icui18n', 'icudata'], + uselib_store='ICU') # libsndfile conf.check_cfg(package='sndfile', args='--cflags --libs', uselib_store='SNDFILE', mandatory=True) -- 2.30.2