use ax_check_openssl.m4 instead of a direct use of pkg-config.