From 578b434f4d016eb36dcdaca728bae076475b4ddc Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Sat, 12 Mar 2011 02:46:52 +0000 Subject: [PATCH] trap exceptions in the configure check for whether boost regex has icu support --- SConstruct | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/SConstruct b/SConstruct index 818328ddc..1b3092b84 100644 --- a/SConstruct +++ b/SConstruct @@ -796,8 +796,15 @@ def boost_regex_has_icu(context): int main() { - UnicodeString ustr; - boost::u32regex pattern = boost::make_u32regex(ustr); + UnicodeString ustr; + try { + boost::u32regex pattern = boost::make_u32regex(ustr); + } + // an exception is fine, still indicates support is + // likely compiled into regex + catch (...) { + return 0; + } return 0; }