configure: print out warning when fontconfig is missing

Lei Zhang thestig at google.com
Fri Mar 9 13:25:33 CST 2007


Hi,

My Slackware box has fontconfig in the wrong location and it wasn't
getting detected, so Wine was missing fonts as a result. Configure
should print out a warning about this.
-------------- next part --------------
From 3e1f2a890b71caa4a1ca2d9ae0ce75a2b9a2eedf Mon Sep 17 00:00:00 2001
From: Lei Zhang <thestig at fido.smo.corp.google.com>
Date: Fri, 9 Mar 2007 11:16:54 -0800
Subject: [PATCH] Configure should print out a warning when fontconfig is missing.
---
 configure.ac |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index 59257fd..53c5644 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2036,6 +2036,13 @@ then
   AC_MSG_WARN([to enable Wine to use TrueType fonts.])
 fi
 
+if test "$ac_cv_header_fontconfig_fontconfig_h" != "yes"
+then
+  echo >&2
+  AC_MSG_WARN([Fontconfig development files not found.])
+  AC_MSG_WARN([Wine will not be able to load fonts using fontconfig.])
+fi
+
 if test -z "$FONTSSUBDIRS"
 then
   echo >&2
-- 
1.4.1


More information about the wine-patches mailing list