]> granicus.if.org Git - curl/commitdiff
configure: avoid undefined check_for_ca_bundle
authorCarlo Marcelo Arenas Belón <carenas@gmail.com>
Sun, 11 Aug 2019 02:14:01 +0000 (19:14 -0700)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 11 Aug 2019 14:50:18 +0000 (16:50 +0200)
instead of using a "greater than 0" test, check for variable being
set, as it is always set to 1, and could be left unset if non of
OPENSSL MBEDTLS GNUTLS WOLFSSL is being configured for.

Closes #4213

configure.ac

index 1ddc3d60100c2591154ecd3fe6a75142877db21f..020a0e08cee14854304bee76e517ec7f794484b1 100755 (executable)
@@ -2633,7 +2633,7 @@ dnl **********************************************************************
 dnl Check for the CA bundle
 dnl **********************************************************************
 
-if test "$check_for_ca_bundle" -gt 0; then
+if test -n "$check_for_ca_bundle"; then
   CURL_CHECK_CA_BUNDLE
 fi