From ee81f56a6011479d048d4225bdb4ab31c6d807e8 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Wed, 16 Apr 2003 15:43:29 +0000 Subject: test link on xft fixed --- configure.in | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/configure.in b/configure.in index ff070bb..581bc2b 100644 --- a/configure.in +++ b/configure.in @@ -229,21 +229,22 @@ AM_PATH_XFT(yes, if test "x$XFT" = "xtrue" ; then AC_TRY_LINK([ #include - ], [ XftCloseFont(0, 0); return 0; ], - AC_DEFINE(USE_XFT, 1, "antialias support"), + ], [ XftFontClose(0, 0); return 1; ], + [ - AC_DEFINE(USE_XFT, 1, "antialias support") - AC_MSG_CHECKING([Xft UTF-8 support]) - AC_TRY_LINK([ + AC_DEFINE(USE_XFT, 1, "antialias support") + AC_MSG_CHECKING([Xft UTF-8 support]) + AC_TRY_LINK([ #include ], [ XftDrawStringUtf8(0, 0, 0, 0, 0, 0, 0); return 0; ], AC_DEFINE(HAVE_XFT_UTF8_STRING, 1, "Xft UTF8 support") AC_MSG_RESULT(yes), AC_MSG_RESULT(no) - ), - AC_MSG_RESULT([Could not link with Xft. Install Xft if you want support for it.]) - XFT=false ) + ], + [ AC_MSG_RESULT([Could not link with Xft. Install Xft if you want support for it.]) + XFT=false + ]) fi AM_CONDITIONAL(XFT, test x$XFT = xtrue) -- cgit v0.11.2