configure: let check_symbol() return 0 or 1 depending on search result

Also, check_symbol() no longer unsets variables defined outside, so
that it does not break find_symbol_using_pkgconfig().
configure: extend find_symbol_using_pkgconfig() to multiple symbols

For this, the package name has moved to the first position in the
argument list.
Added program name to abstract.