summaryrefslogtreecommitdiff
path: root/configure.py
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2019-06-07 11:36:39 +0200
committerRich Trott <rtrott@gmail.com>2019-06-14 15:40:50 -0700
commit30f285da314dc5c9fa7457784d948bf5ddfab361 (patch)
tree4f258648d139d058e75656ef658e9b40a3af5b54 /configure.py
parent16edec8cfab1d88e86de75057b669ccaea5ced87 (diff)
downloadandroid-node-v8-30f285da314dc5c9fa7457784d948bf5ddfab361.tar.gz
android-node-v8-30f285da314dc5c9fa7457784d948bf5ddfab361.tar.bz2
android-node-v8-30f285da314dc5c9fa7457784d948bf5ddfab361.zip
build: fix icu-i18n pkg-config version check
The pkg_config() helper can either return a tuple of None values (no pkg-config installed) and that was what the check was testing for, but it can also return a tuple of empty strings when the package isn't installed. PR-URL: https://github.com/nodejs/node/pull/28118 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Refael Ackermann (רפאל פלחי) <refack@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.py b/configure.py
index 71943cae2c..9d9f0aec0b 100755
--- a/configure.py
+++ b/configure.py
@@ -1348,7 +1348,7 @@ def configure_intl(o):
# ICU from pkg-config.
o['variables']['v8_enable_i18n_support'] = 1
pkgicu = pkg_config('icu-i18n')
- if pkgicu[0] is None:
+ if not pkgicu[0]:
error('''Could not load pkg-config data for "icu-i18n".
See above errors or the README.md.''')
(libs, cflags, libpath, icuversion) = pkgicu