function and causes problems with false negatives on some linux distros. Instead, use the test code used by AC_CHECK_FUNC. This commit was SVN r8592.
- since we now have three places where we need to add a -l<foo> if and only if it isn't already in something in LIBS that provides symbol bar... This commit was SVN r8370.