build: Depend on pangoft2 on X11

We need the fontconfig API to reinitialize the fontmap caches whenever
the system tells us that the user fonts have changed.
This commit is contained in:
Emmanuele Bassi 2011-08-18 15:32:29 +01:00
parent 397fe1b5b6
commit e906d2cbde

View File

@ -386,10 +386,21 @@ AS_CASE([$CLUTTER_FLAVOUR],
CLUTTER_SONAME_INFIX=win32 CLUTTER_SONAME_INFIX=win32
], ],
[AC_MSG_ERROR([Invalid backend for Clutter: use glx, osx, [AC_MSG_ERROR([Invalid backend for Clutter])]
win32, eglx or eglnative])]
) )
AS_IF([test "x$SUPPORT_X11" = "x1"],
[
# we use fontconfig API and pango-fc when the fontconfig
# configuration changes
PKG_CHECK_EXISTS([pangoft2],
[
AC_DEFINE([HAVE_PANGO_FT2], [1], [Supports PangoFt2])
BACKEND_PC_FILES="$BACKEND_PC_FILES pangoft2"
],
[])
])
AS_IF([test "x$SUPPORT_GLX" = "x1"], AS_IF([test "x$SUPPORT_GLX" = "x1"],
[ [
AC_DEFINE([HAVE_CLUTTER_GLX], [1], [Have the GLX backend]) AC_DEFINE([HAVE_CLUTTER_GLX], [1], [Have the GLX backend])