# HG changeset patch # User Chong Yidong # Date 1219955487 0 # Node ID fc1990cb3e568558680b67b7732074db87528ec8 # Parent 4abcb09b2bbdcb2706705bde8c44d22e5d6d0f78 Disable XFT and Freetype when without X. diff -r 4abcb09b2bbd -r fc1990cb3e56 configure.in --- a/configure.in Thu Aug 28 20:31:19 2008 +0000 +++ b/configure.in Thu Aug 28 20:31:27 2008 +0000 @@ -1808,7 +1808,7 @@ ## Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'. HAVE_XFT=maybe -if test "x${with_freetype}" = "xno"; then +if test "x${with_freetype}" = "xno" || test "x${with_x}" = "xno"; then with_xft="no"; fi if test "x${with_xft}" != "xno"; then @@ -1848,7 +1848,7 @@ dnl As we use Xft, we anyway use freetype. dnl In this case, there's no need of additional CFLAGS and LIBS. HAVE_FREETYPE=yes -elif test "x${with_freetype}" != "xno"; then +elif test "x${with_freetype}" != "xno" && test "x${with_x}" != "xno"; then PKG_CHECK_MODULES(FREETYPE, freetype2, HAVE_FREETYPE=yes, HAVE_FREETYPE=no) if test "${HAVE_FREETYPE}" = "yes"; then