[build] Require fontconfig >= 2.2.95 if we're using it at all.

We require at least fontconfig 2.2.95 when we're using
fontconfig because we depend on the FcResultOutOfMemory
error code introduced in that version.
This commit is contained in:
M Joonas Pihlaja 2009-06-19 18:34:34 +03:00
parent 84e587bbfa
commit d9b5a98a78

View file

@ -302,10 +302,11 @@ CAIRO_ENABLE_FONT_BACKEND(ft, FreeType, auto, [
ft_LIBS="$FREETYPE_LIBS"
])
FONTCONFIG_MIN_VERSION=2.2.95
CAIRO_ENABLE_FONT_BACKEND(fc, Fontconfig, auto, [
use_fc=$use_ft
if test "x$use_fc" = "xyes"; then
fc_REQUIRES="fontconfig"
fc_REQUIRES="fontconfig >= $FONTCONFIG_MIN_VERSION"
PKG_CHECK_MODULES(FONTCONFIG, $fc_REQUIRES,,
[AC_MSG_RESULT(no); use_fc="no (requires $fc_REQUIRES)"])
fi