aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.in15
1 files changed, 11 insertions, 4 deletions
diff --git a/configure.in b/configure.in
index c2a716c..d874ca4 100644
--- a/configure.in
+++ b/configure.in
@@ -10,8 +10,7 @@ dnl Check for various flavors of UNIX(r)
10dnl AC_AIX 10dnl AC_AIX
11dnl AC_ISC_POSIX 11dnl AC_ISC_POSIX
12 12
13dnl TODO: do this 13AC_LANG_CPLUSPLUS
14dnl AC_LANG_CPLUSPLUS
15 14
16dnl Locate required external software 15dnl Locate required external software
17AC_PROG_CC 16AC_PROG_CC
@@ -228,19 +227,27 @@ AC_ARG_ENABLE(
228 AC_MSG_RESULT([no]) 227 AC_MSG_RESULT([no])
229) 228)
230 229
230
231AC_MSG_CHECKING([whether to have Xft support]) 231AC_MSG_CHECKING([whether to have Xft support])
232AC_ARG_ENABLE( 232AC_ARG_ENABLE(
233 xft, 233 xft,
234[ --enable-xft Xft (antialias) support [default=no]], 234[ --enable-xft Xft (antialias) support [default=no]],
235 if test x$enableval = "xyes"; then 235 if test x$enableval = "xyes"; then
236 AC_MSG_RESULT([yes]) 236 AC_MSG_RESULT([yes])
237 AC_DEFINE(USE_XFT, 1, "antialias support") 237 AC_CHECK_LIB(Xft, XftFontOpen,
238 LIBS="$LIBS -lXft" 238 LIBS="$LIBS -lXft"
239 XFT=true
240 AC_DEFINE(USE_XFT, 1, "antialias support"),
241 AC_MSG_ERROR([Could not find XftFontOpen in -lXft.])
242 )
239 else 243 else
240 AC_MSG_RESULT([no]) 244 AC_MSG_RESULT([no])
245 XFT=false
241 fi, 246 fi,
242 AC_MSG_RESULT([no]) 247 AC_MSG_RESULT([no])
248 XFT=false
243) 249)
250 AM_CONDITIONAL(XFT, test x$XFT = xtrue)
244 251
245dnl Check for Xinerama support 252dnl Check for Xinerama support
246 253