test link on xft fixed

This commit is contained in:
fluxgen 2003-04-16 15:43:29 +00:00
parent 04865daa75
commit ee81f56a60

View file

@ -229,21 +229,22 @@ AM_PATH_XFT(yes,
if test "x$XFT" = "xtrue" ; then if test "x$XFT" = "xtrue" ; then
AC_TRY_LINK([ AC_TRY_LINK([
#include <X11/Xft/Xft.h> #include <X11/Xft/Xft.h>
], [ XftCloseFont(0, 0); return 0; ], ], [ XftFontClose(0, 0); return 1; ],
AC_DEFINE(USE_XFT, 1, "antialias support"), [
AC_DEFINE(USE_XFT, 1, "antialias support") AC_DEFINE(USE_XFT, 1, "antialias support")
AC_MSG_CHECKING([Xft UTF-8 support]) AC_MSG_CHECKING([Xft UTF-8 support])
AC_TRY_LINK([ AC_TRY_LINK([
#include <X11/Xft/Xft.h> #include <X11/Xft/Xft.h>
], [ XftDrawStringUtf8(0, 0, 0, 0, 0, 0, 0); return 0; ], ], [ XftDrawStringUtf8(0, 0, 0, 0, 0, 0, 0); return 0; ],
AC_DEFINE(HAVE_XFT_UTF8_STRING, 1, "Xft UTF8 support") AC_DEFINE(HAVE_XFT_UTF8_STRING, 1, "Xft UTF8 support")
AC_MSG_RESULT(yes), AC_MSG_RESULT(yes),
AC_MSG_RESULT(no) 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 fi
AM_CONDITIONAL(XFT, test x$XFT = xtrue) AM_CONDITIONAL(XFT, test x$XFT = xtrue)