fox1.6 (1.6.37-1) link_fontconfig.diff

Summary

 configure.in |   11 +++++++++++
 1 file changed, 11 insertions(+)

    
download this patch

Patch contents

Index: fox1.6-1.6.36/configure.in
===================================================================
--- fox1.6-1.6.36.orig/configure.in	2009-11-15 04:05:44.759563227 +0100
+++ fox1.6-1.6.36/configure.in	2009-11-15 04:24:06.502555687 +0100
@@ -408,6 +408,17 @@
 fi
 AC_MSG_RESULT([$link_to_freetype])
 
+AC_MSG_CHECKING([if we should link libfontconfig])
+link_to_fontconfig="no"
+if test "x$with_xft" == "xyes"; then
+  FONTCONFIGLIBS=`pkg-config --libs fontconfig`
+  if test "x$FONTCONFIGLIBS" != "x"; then
+    X_BASE_LIBS="$X_BASE_LIBS $FONTCONFIGLIBS"
+    link_to_fontconfig="yes ($FONTCONFIGLIBS)"
+  fi
+fi
+AC_MSG_RESULT([$link_to_fontconfig])
+
 AC_SUBST(GL_LIBS)
 AC_SUBST(GL_TESTS)