Failure to find libtermcap frequently occurs when the development packages for libtermcap are not installed. make clean will not clear config.cache, though make distclean should. We don't consider either of these to be bugs.