summaryrefslogtreecommitdiff
path: root/bootstrap.sh
diff options
context:
space:
mode:
authorDimitrij Mijoski <dmjpp@hotmail.com>2018-03-12 15:32:26 +0100
committerPeter Dimov <pdimov@gmail.com>2018-12-18 18:48:56 +0200
commitd80efb2f4ae373ac416fb023c07836521c24829b (patch)
tree45d4478bb191ae7e44c3afbbf593261c57a72c0e /bootstrap.sh
parenta43cfc58bdb872a15811e86460082d03c3e70470 (diff)
downloadboost-d80efb2f4ae373ac416fb023c07836521c24829b.tar.gz
Detect ICU with pkg-config when possible.
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-xbootstrap.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index 8755ace36b..8efc24dd02 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -293,6 +293,11 @@ fi
$ECHO -n "Unicode/ICU support for Boost.Regex?... "
if test "x$flag_icu" != xno; then
if test "x$ICU_ROOT" = x; then
+ if command -v pkg-config > /dev/null && pkg-config icu-uc ; then
+ ICU_ROOT=`pkg-config --variable=prefix icu-uc`
+ fi
+ fi
+ if test "x$ICU_ROOT" = x; then
COMMON_ICU_PATHS="/usr /usr/local /sw"
for p in $COMMON_ICU_PATHS; do
if test -r $p/include/unicode/utypes.h; then