Skip to content

Commit

Permalink
Fix check for icu 52.1 or newer
Browse files Browse the repository at this point in the history
It detected old versions but did not disable the training build.
This completes commit 66da4df.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed Jun 25, 2019
1 parent 5895534 commit 676b188
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions configure.ac
Expand Up @@ -431,12 +431,10 @@ AM_CONDITIONAL([ENABLE_TRAINING], true)
PKG_CHECK_MODULES([ICU_UC], [icu-uc >= 52.1], [have_icu_uc=true], [have_icu_uc=false])
PKG_CHECK_MODULES([ICU_I18N], [icu-i18n >= 52.1], [have_icu_i18n=true], [have_icu_i18n=false])
if !($have_icu_uc && $have_icu_i18n); then
if !($have_icu); then
AC_MSG_WARN([icu 52.1 or higher is required, but was not found.])
AC_MSG_WARN([Training tools WILL NOT be built.])
AC_MSG_WARN([Try to install libicu-devel package.])
AM_CONDITIONAL([ENABLE_TRAINING], false)
fi
AC_MSG_WARN([icu 52.1 or higher is required, but was not found.])
AC_MSG_WARN([Training tools WILL NOT be built.])
AC_MSG_WARN([Try to install libicu-devel package.])
AM_CONDITIONAL([ENABLE_TRAINING], false)
else
CPPFLAGS="$CPPFLAGS $ICU_UC_CFLAGS $ICU_I18N_CFLAGS"
fi
Expand Down

0 comments on commit 676b188

Please sign in to comment.