Note the way REVISION and WANTLIB are defined. This is (more or less) the Makefile portion that lib-depends-check is supposed to handle eventually...