Revert "add checks when pkg-config is unavailable"

This reverts commit df66c890ff04cdc6681c2554f3024621da17d16c.

The generated configure is problematic
restore configure.ac for openssl