[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    PATCH: Karbon and libXft issues
From:       Werner Trobin <trobin () kde ! org>
Date:       2002-03-09 19:03:04
[Download RAW message or body]

Hi!

Today I tried to find a solution for the libXft issue with karbon, and for me 
the following patch to karbon/configure.in.in works. If you want to test it, 
please apply the patch, re-run make -f Makefile.cvs, configure, and make.

I'd be really happy if some Solaris user could tell me how freetype works on 
those machines (Solaris doesn't have libXft, as I heard).

Rob, Lenny: I don't know if it's possible for you to use freetype without Xft, 
but with the attached patch you get a HAVE_XFT #define in config.h to detect 
this.

Ciao,
Werner
["config.diff" (text/x-diff)]

? config.diff
Index: configure.in.in
===================================================================
RCS file: /home/kde/koffice/karbon/configure.in.in,v
retrieving revision 1.13
diff -b -u -p -r1.13 configure.in.in
--- configure.in.in	2002/02/27 14:45:47	1.13
+++ configure.in.in	2002/03/09 19:00:56
@@ -26,6 +26,19 @@ if test -n "$FREETYPE_CONFIG"; then
 fi
 
 
+dnl "Borrowed" from avifile ;)
+dnl =====================
+dnl Check for Xft library
+dnl =====================
+have_xft=no
+AC_CHECK_HEADER($x_includes/X11/Xft/Xft.h,have_xft=yes,)
+if test x$have_xft = xyes; then
+    AC_CHECK_LIB(Xft, XftDrawString32,
+                 LIBFREETYPE_LIBS="$LIBFREETYPE_LIBS -lXft"; have_xft=yes; AC_DEFINE([HAVE_XFT], 1, \
[Define if you have 'Xft' library (-lXft)]), +                 have_xft=no,
+                 $X_LDFLAGS -lX11 -lXext -lXft $X_EXTRA_LIBS)
+fi
+
 AC_SUBST(LIBFREETYPE_LIBS)
 AC_SUBST(LIBFREETYPE_CFLAGS)
 AC_SUBST(LIBFREETYPE_RPATH)


_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic