autoconf fixes to replace HAVE_TDBPWD with HAVE_TDBSAM