Test for FontConfig availability in configure when using wxGTK

This library is now needed in order to implement wxFont private font
methods.
This commit is contained in:
Vadim Zeitlin
2017-11-07 18:23:11 +01:00
parent 28864d3ef6
commit ac4f99fa0d
6 changed files with 109 additions and 6 deletions

View File

@@ -2962,6 +2962,14 @@ libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
dnl AC_MSG_RESULT(not found)
dnl fi
fi
PKG_CHECK_MODULES(FONTCONFIG, [fontconfig],
[
AC_DEFINE(wxUSE_FONTCONFIG)
CXXFLAGS="$FONTCONFIG_CFLAGS $CXXFLAGS"
GUI_TK_LIBRARY="$GUI_TK_LIBRARY $FONTCONFIG_LIBS"
],
[AC_MSG_WARN([fontconfig library not found, run-time font loading won't be supported by wxFont])])
fi
if test "$wxUSE_DFB" = 1; then