From 9b2bb18a92a95b701d3a535a81191d145bbe05b4 Mon Sep 17 00:00:00 2001 From: Amar Takhar Date: Sun, 23 Mar 2008 00:36:36 +0000 Subject: [PATCH] Add a run check for Fontconfig. Originally committed to SVN as r2118. --- configure.in | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/configure.in b/configure.in index 6e91db08f..023c96a58 100644 --- a/configure.in +++ b/configure.in @@ -182,6 +182,19 @@ PKG_CHECK_MODULES(FONTCONFIG, fontconfig >= 2.4, AC_SUBST(FONTCONFIG_CFLAGS) AC_SUBST(FONTCONFIG_LIBS) +AC_AGI_COMPILE([FontConfig], [fontconfig], [$FONTCONFIG_CFLAGS], [$FONTCONFIG_LIBS],[ +#include +int main(void) { + int fc = FcInit(); + FcConfig* config; + config = FcConfigGetCurrent(); + if ((!config) || (!fc)) { return 1;} + return 0; +}]) + +if test "$agi_with_fontconfig" = "no"; then + AC_MSG_FAILURE([Please install a working Fontconfig library.]) +fi #################