The xft detection script should directly link with the freetype, otherwise the xft is not detected on systems with disabled indirect linking (e.g. Fedora). This bug originates from: https://bugzilla.redhat.com/show_bug.cgi?id=677692
This bug is revealed on Debian sid also (where xft-config script was removed recently, so the Tk library is not linked to libfontconfig and libfreetype anymore). Though the attached patch seems to be incomplete, because libtk uses some fontconfig symbols, so fontconfig should be added to the pkg-config call.
Also, libtk doesn't use freetype directly, so I wouldn't add freetype2 to pkg-config call, but replaced checking for FT_New_Face by something alse (e.g. XftFontOpen).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This bug is revealed on Debian sid also (where xft-config script was removed recently, so the Tk library is not linked to libfontconfig and libfreetype anymore). Though the attached patch seems to be incomplete, because libtk uses some fontconfig symbols, so fontconfig should be added to the pkg-config call.
Also, libtk doesn't use freetype directly, so I wouldn't add freetype2 to pkg-config call, but replaced checking for FT_New_Face by something alse (e.g. XftFontOpen).