From 750c1b5b48dcd33ba4a4d5290c50f564bf45bc58 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 6 Jun 2009 21:45:18 +0100 Subject: [PATCH] [configure] Check for FcInit() --- configure.ac | 2 +- test/cairo-test.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index b20afefce..7c406e7ab 100644 --- a/configure.ac +++ b/configure.ac @@ -322,7 +322,7 @@ if test "x$use_ft" = "xyes"; then fi if test "x$use_fc" = "xyes"; then - CAIRO_CHECK_FUNCS_WITH_FLAGS(FcFini, [$FONTCONFIG_CFLAGS], [$FONTCONFIG_LIBS]) + CAIRO_CHECK_FUNCS_WITH_FLAGS(FcInit FcFini, [$FONTCONFIG_CFLAGS], [$FONTCONFIG_LIBS]) fi dnl =========================================================================== diff --git a/test/cairo-test.c b/test/cairo-test.c index 4e3d2fb39..758a352f6 100644 --- a/test/cairo-test.c +++ b/test/cairo-test.c @@ -747,7 +747,9 @@ REPEAT: /* Pre-initialise fontconfig so that the configuration is loaded without * malloc failures (our primary goal is to test cairo fault tolerance). */ +#if HAVE_FCINIT FcInit (); +#endif MEMFAULT_ENABLE_FAULTS (); #endif