Don't use icu-config when cross-compiling

This commit is contained in:
Behdad Esfahbod 2011-08-02 11:40:44 -04:00
parent 390dab49b6
commit e9c2341b13
1 changed files with 10 additions and 7 deletions

View File

@ -103,6 +103,8 @@ AM_CONDITIONAL(HAVE_CAIRO_FT, $have_cairo_ft)
dnl ==========================================================================
PKG_CHECK_MODULES(ICU, icu, have_icu=true, [
have_icu=false
if test $cross_compiling == no; then
AC_CHECK_PROG([have_icu], [icu-config], [true], [false])
if $have_icu; then
icu_cflags=`icu-config --cppflags`
@ -111,6 +113,7 @@ PKG_CHECK_MODULES(ICU, icu, have_icu=true, [
AC_SUBST(ICU_CFLAGS, [$icu_cflags])
AC_SUBST(ICU_LIBS, [$icu_libs])
fi
fi
])
if $have_icu; then
AC_DEFINE(HAVE_ICU, 1, [Have ICU library])