diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/configure.in b/configure.in index beb5844..ff070bb 100644 --- a/configure.in +++ b/configure.in | |||
@@ -227,6 +227,11 @@ AM_PATH_XFT(yes, | |||
227 | ) | 227 | ) |
228 | 228 | ||
229 | if test "x$XFT" = "xtrue" ; then | 229 | if test "x$XFT" = "xtrue" ; then |
230 | AC_TRY_LINK([ | ||
231 | #include <X11/Xft/Xft.h> | ||
232 | ], [ XftCloseFont(0, 0); return 0; ], | ||
233 | AC_DEFINE(USE_XFT, 1, "antialias support"), | ||
234 | |||
230 | AC_DEFINE(USE_XFT, 1, "antialias support") | 235 | AC_DEFINE(USE_XFT, 1, "antialias support") |
231 | AC_MSG_CHECKING([Xft UTF-8 support]) | 236 | AC_MSG_CHECKING([Xft UTF-8 support]) |
232 | AC_TRY_LINK([ | 237 | AC_TRY_LINK([ |
@@ -235,7 +240,9 @@ if test "x$XFT" = "xtrue" ; then | |||
235 | AC_DEFINE(HAVE_XFT_UTF8_STRING, 1, "Xft UTF8 support") | 240 | AC_DEFINE(HAVE_XFT_UTF8_STRING, 1, "Xft UTF8 support") |
236 | AC_MSG_RESULT(yes), | 241 | AC_MSG_RESULT(yes), |
237 | AC_MSG_RESULT(no) | 242 | AC_MSG_RESULT(no) |
238 | XFT=false | 243 | ), |
244 | AC_MSG_RESULT([Could not link with Xft. Install Xft if you want support for it.]) | ||
245 | XFT=false | ||
239 | ) | 246 | ) |
240 | fi | 247 | fi |
241 | 248 | ||