@matheusbsbs / matheus-bagliano / commits / 0ad8ff2cd1
Fork 0

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

The empty assignment NEEDS_SSL_WITH_CRYPTO= was mistakenly paired with the assignment NEEDS_SSL_WITH_CRYPTO=YesPlease in the "action-if-found" parameter of the AC_CHECK_LIB macro. The empty assignment was intended for the "action-if-not-found" section, since in that case, the necessary sha1 hash function was not found and the internal sha1 implementation will be used instead. Signed-off-by: Brandon Casey <drafnel@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Brandon Casey committed Jul 22, 2009 at 17:20 UTC 0ad8ff2cd185e84fd49dd961370411e379681f10
1 file changed +2 -3
configure.ac
+2 -3
@@ -342,9 +342,8 @@ GIT_STASH_FLAGS($OPENSSLDIR)
342 AC_CHECK_LIB([crypto], [SHA1_Init],
343 [NEEDS_SSL_WITH_CRYPTO=],
344 [AC_CHECK_LIB([ssl], [SHA1_Init],
345 - [NEEDS_SSL_WITH_CRYPTO=YesPlease
346 - NEEDS_SSL_WITH_CRYPTO=],
347 - [NO_OPENSSL=YesPlease])])
345 + [NEEDS_SSL_WITH_CRYPTO=YesPlease],
346 + [NEEDS_SSL_WITH_CRYPTO= NO_OPENSSL=YesPlease])])
347
348 GIT_UNSTASH_FLAGS($OPENSSLDIR)
349