greeter-linking.patch revision 1447
70N/AFrom 284532c0884893728b75ca37f5d2a9a33f7bc8db Mon Sep 17 00:00:00 2001
70N/AFrom: Julien Cristau <jcristau@debian.org>
70N/ADate: Sat, 22 Oct 2011 17:14:46 +0200
70N/ASubject: [PATCH:xdm] greeter: link against -lXrender if xft is enabled
371N/A
70N/AXmuCvtStringToXftColor uses XRenderParseColor, so require xrender for
70N/Athe xft option, and link against it.
70N/A
70N/ASigned-off-by: Julien Cristau <jcristau@debian.org>
70N/AReviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
70N/A---
70N/A configure.ac | 4 ++--
70N/A greeter/Login.c | 4 ++++
70N/A 2 files changed, 6 insertions(+), 2 deletions(-)
70N/A
70N/Adiff --git a/configure.ac b/configure.ac
70N/Aindex b123a1f..2d95000 100644
70N/A--- a/configure.ac
70N/A+++ b/configure.ac
70N/A@@ -311,10 +311,10 @@ AC_ARG_WITH(xft,
70N/A AC_HELP_STRING([--with-xft],
70N/A [Use Xft to draw text (default is YES if installed)]),
70N/A [USE_XFT="$withval"],
70N/A- PKG_CHECK_EXISTS(xft, [USE_XFT="yes"], [USE_XFT="no"]))
70N/A+ PKG_CHECK_EXISTS(xft xrender, [USE_XFT="yes"], [USE_XFT="no"]))
70N/A
70N/A if test "x$USE_XFT" = "xyes" ; then
70N/A- PKG_CHECK_MODULES(XFT, xft)
70N/A+ PKG_CHECK_MODULES(XFT, xft xrender)
70N/A GREETER_CFLAGS="$GREETER_CFLAGS $XFT_CFLAGS"
70N/A GREETER_LIBS="$GREETER_LIBS $XFT_LIBS"
70N/A AC_DEFINE([USE_XFT], 1,
493N/Adiff --git a/greeter/Login.c b/greeter/Login.c
70N/Aindex 4903ea2..2fec5f4 100644
70N/A--- a/greeter/Login.c
70N/A+++ b/greeter/Login.c
493N/A@@ -91,6 +91,10 @@ from The Open Group.
70N/A # include <X11/extensions/Xinerama.h>
70N/A #endif
493N/A
70N/A+#ifdef USE_XFT
70N/A+# include <X11/extensions/Xrender.h>
70N/A+#endif
70N/A+
70N/A #ifndef DEBUG
70N/A # define XDM_ASSERT(a) /* do nothing */
70N/A #else
70N/A