Evas: fine tuned the harfbuzz checks to make sure harfbuzz was compiled with freetype support and just check if it also compiled with glib support. ATM there's no good lib for checking unicode characteristics so until there is one, we optionally use harfbuzz's glib integration - such lib is planned by the guy who wrote Harfbuzz.

SVN revision: 56454
This commit is contained in:
Tom Hacohen 2011-01-30 10:36:24 +00:00
parent d9cdf88a23
commit 836b16f085
1 changed files with 29 additions and 0 deletions

View File

@ -305,6 +305,8 @@ fi
# harfbuzz support
have_harfbuzz="no"
have_harfbuzz_glib="no"
have_harfbuzz_ft="no"
AC_ARG_ENABLE([harfbuzz],
AC_HELP_STRING([--disable-harfbuzz],
[disable complex text shaping and layouting support. @<:@default=enabled@:>@]),
@ -329,6 +331,33 @@ if test "x${want_harfbuzz}" = "xyes" -o "x${want_harfbuzz}" = "xauto" ; then
AC_MSG_ERROR([Harfbuzz not found (strict dependencies checking)])
fi
])
if test "x$have_harfbuzz" = "xyes" ; then
CPPFLAGS_SAVE="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $HARFBUZZ_CFLAGS"
# must have for usage with harfbuzz although harfbuzz may not have it.
AC_CHECK_HEADER(hb-ft.h,
[
have_harfbuzz_ft="yes"
],
[
if test "x$want_harfbuzz" = "xyes" -a "x$use_strict" = "xyes" ; then
AC_MSG_ERROR([Harfbuzz-ft not found (strict dependencies checking)])
fi
have_harfbuzz="no"
])
# nice to have if harfbuzz has it
AC_CHECK_HEADER(hb-glib.h,
[
have_harfbuzz_glib="yes"
AC_DEFINE(HAVE_HARFBUZZ_GLIB, 1, [have harfbuzz glib support])
],
[
have_harfbuzz_glib="no"
])
CPPFLAGS="$CPPFLAGS_SAVE"
fi
fi
if test "x${have_harfbuzz}" = "xno"; then