PLUGIN_FIND_PACKAGE (FREETYPE freetype2)
IF (NOT FREETYPE_FOUND)
  CHECK_INCLUDE_FILE (ft2build.h HAVE_FT2BUILD_H)
  IF (NOT HAVE_FT2BUILD_H)
    PLUGIN_DISABLE ()
  ELSE ()
    PLUGIN_REQUIRE_LIBRARY (FREETYPE freetype)
    PLUGIN_REQUIRE_LIBRARY (Z z)
  ENDIF ()
ENDIF ()
