diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 15 |
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) | |||
10 | dnl AC_AIX | 10 | dnl AC_AIX |
11 | dnl AC_ISC_POSIX | 11 | dnl AC_ISC_POSIX |
12 | 12 | ||
13 | dnl TODO: do this | 13 | AC_LANG_CPLUSPLUS |
14 | dnl AC_LANG_CPLUSPLUS | ||
15 | 14 | ||
16 | dnl Locate required external software | 15 | dnl Locate required external software |
17 | AC_PROG_CC | 16 | AC_PROG_CC |
@@ -228,19 +227,27 @@ AC_ARG_ENABLE( | |||
228 | AC_MSG_RESULT([no]) | 227 | AC_MSG_RESULT([no]) |
229 | ) | 228 | ) |
230 | 229 | ||
230 | |||
231 | AC_MSG_CHECKING([whether to have Xft support]) | 231 | AC_MSG_CHECKING([whether to have Xft support]) |
232 | AC_ARG_ENABLE( | 232 | AC_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 | ||
245 | dnl Check for Xinerama support | 252 | dnl Check for Xinerama support |
246 | 253 | ||