Do you have the termcap library installed? It should be under the /lib or /usr/lib directory. Look for libtermcap.so.X, where X is the version number.
If it is installed, then your configure script probably cannot find it because it is under a non standard location. In that case you have to:
1. Add the path where libtermcap is located to /etc/ld.so.conf, and then run ldconfig, before running configure. (Do this as root). Or,
2. Set the path in the system environment variable LD_LIBRARY_PATH in the shell you are trying to run configure. Then run configure from that same termianl where you set it.
Another quick way to be able to tell configure the location of where the termcap library is located is by setting the LDFLAGS compiler variable and passing it to configure like this:
# LDFLAGS=-L<location_of_termcap_lib> ./configure <your_configure_options>
Hope this helps.
If I am off, let me know, 'cause I had trouble finguring out what your problem realy was.
P.S. you may also have to find out what pieces of software are need to properly configure the software you are trying to compile, because sometimes incompatible versions of compiling tools can cause problems.
/edit: Added P.S.