From 7f44d219b3f9d34a911e8db56f3b0cddeb48fa33 Mon Sep 17 00:00:00 2001 From: Fred Kiefer Date: Thu, 27 Feb 2003 01:22:45 +0000 Subject: [PATCH] Check for FreeType 2 fontconfig. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@16080 72102866-910b-0410-8b05-ffd578937521 --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index ae9962a..99ebdbe 100644 --- a/configure.ac +++ b/configure.ac @@ -190,6 +190,12 @@ if test "$have_xft" = yes -a "$ac_cv_header_X11_Xft_Xft_h" = yes; then if test "$have_utf8" = yes; then AC_DEFINE(HAVE_UTF8,1,[Define if you have XftDrawStringUtf8]) fi + AC_CHECK_LIB(fontconfig, FcPatternCreate, have_fc=yes, have_fc=no) + AC_CHECK_HEADER(fontconfig/fontconfig.h) + if test "$have_fc" = yes -a "$ac_cv_header_fontconfig_fontconfig_h" = yes; then + GRAPHIC_LIBS="${GRAPHIC_LIBS} -lfontconfig" + AC_DEFINE(HAVE_FC,1,[Define if you have FcPatternCreate]) + fi fi CPPFLAGS="${save_header}" LIBS="${save_libs}"