The attached patch changes aclocal.m4 to generate a configure script that links correctly on NetBSD (no libdl) and to *not* link libtds when using FreeTDS. As of FreeTDS version 0.82, tds.h and libtds are no longer distributed or installed. (Or needed!)
The patch affects building from CVS *only*.
Recommend the following generated files be dropped from CVS:
Makefile
config.status
configure
scripts/install.sh
scripts/make_wrapper.sh
src/Makefile
src/config.h
It is otherwise necessary to first run "make distclean" before a build can be generated from a fresh checkout.
patch for aclocal.m4