提交 d1f1707a 编写于 作者: B Behdad Esfahbod

Bug 31965 - some GNU/Linux distributions lack icu.pc but have icu-config

Patch from suzuki toshiya.
上级 3c48982b
...@@ -28,7 +28,15 @@ if $have_glib; then ...@@ -28,7 +28,15 @@ if $have_glib; then
fi fi
AM_CONDITIONAL(HAVE_GLIB, $have_glib) AM_CONDITIONAL(HAVE_GLIB, $have_glib)
PKG_CHECK_MODULES(ICU, icu, have_icu=true, have_icu=false) PKG_CHECK_MODULES(ICU, icu, have_icu=true, [
AC_CHECK_PROG([have_icu], [icu-config], [have_icu], [true], [false], [$PATH])
if $have_icu; then
icu_cflags=`icu-config --cppflags`
icu_libs=`icu-config --ldflags-libsonly`
AC_SUBST(ICU_CFLAGS, [$icu_cflags])
AC_SUBST(ICU_LIBS, [$icu_libs])
fi
])
if $have_icu; then if $have_icu; then
AC_DEFINE(HAVE_ICU, 1, [Have ICU library]) AC_DEFINE(HAVE_ICU, 1, [Have ICU library])
fi fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册