Bug: https://bugs.openjdk.java.net/browse/JDK-8001922 Bug: https://bugs.openjdk.java.net/browse/JDK-8001927 Bug: https://bugs.openjdk.java.net/browse/JDK-8001921
These three bugs are all tightly related. The logic for detecting the freetype library has been really messy, and these were three of the ways the deficiencies showed themselves, but they were all resulting from the core problem.
I have redesigned the way freetype detection work, to be more in line with the normal way we detect "problematic" stuff in configure, that is, probe in suitable locations with decreasing precision, and check thouroughly what we find. (In this case, by compiling with the header files and linking with the library).
WebRev: http://cr.openjdk.java.net/~ihse/JDK-8001922-improve-freetype-detection/webrev.01
/Magnus