configure: Merge the libcapi20 existence check with the soname check.