summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAlan Coopersmith <Alan.Coopersmith@sun.com>2005-08-16 15:52:25 +0000
committerAlan Coopersmith <Alan.Coopersmith@sun.com>2005-08-16 15:52:25 +0000
commit42f1737418b0c1d7e2ceaaaf3ddbcb2db7ab614b (patch)
tree43554278fe643e355f8098b3c8d192d52df21112 /configure.ac
parent2eae29c6f837bd6f8ab383f0d4e61742c063291a (diff)
Fix render checks to check for both Xrender & Xft2, and to define XRENDER
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac21
1 files changed, 18 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index da8e4b4..414af00 100644
--- a/configure.ac
+++ b/configure.ac
@@ -40,10 +40,25 @@ if test "x$xaw_use_xprint" = "xyes" ; then
XLOGO_LIBS="$XLOGO_LIBS $XPRINT_UTIL_LIBS"
fi
-PKG_CHECK_MODULES(XRENDER, xrender)
+# Use render & xft2 to draw logo?
-XLOGO_CFLAGS="$XLOGO_CFLAGS $XRENDER_CFLAGS"
-XLOGO_LIBS="$XLOGO_LIBS $XRENDER_LIBS"
+AC_ARG_WITH(render,
+ AC_HELP_STRING([--with-xrender], [Use Xrender & Xft2 to draw logo]),
+ USE_RENDER="$withval", USE_RENDER="try")
+
+if test "x$USE_RENDER" = "xtry" ; then
+ PKG_CHECK_EXISTS([xrender xft], USE_RENDER="yes", USE_RENDER="no")
+fi
+
+if test "x$USE_RENDER" = "xyes" ; then
+ PKG_CHECK_MODULES(XRENDER, xrender)
+ PKG_CHECK_MODULES(XFT, xft)
+
+ AC_DEFINE(XRENDER, 1, [Define to 1 to use Xrender & Xft2 to draw logo])
+
+ XLOGO_CFLAGS="$XLOGO_CFLAGS $XRENDER_CFLAGS $XFT_CFLAGS"
+ XLOGO_LIBS="$XLOGO_LIBS $XRENDER_LIBS $XFT_LIBS"
+fi
AC_SUBST(XLOGO_CFLAGS)
AC_SUBST(XLOGO_LIBS)