configure.ac: properly unset NEEDS_SSL_WITH_CRYPTO when sha1 func is missing