395
395
396
396
if test x"$use_tests" = x"yes"; then
397
397
SECP_OPENSSL_CHECK
398
- if test x"$has_openssl_ec" = x"yes"; then
399
- if test x"$ enable_openssl_tests" != x"no"; then
398
+ if test x"$enable_openssl_tests" != x"no" && test x"$ has_openssl_ec" = x"yes"; then
399
+ enable_openssl_tests=yes
400
400
AC_DEFINE ( ENABLE_OPENSSL_TESTS , 1 , [ Define this symbol if OpenSSL EC functions are available] )
401
401
SECP_TEST_INCLUDES="$SSL_CFLAGS $CRYPTO_CFLAGS $CRYPTO_CPPFLAGS"
402
402
SECP_TEST_LIBS="$CRYPTO_LIBS"
@@ -406,16 +406,17 @@ if test x"$use_tests" = x"yes"; then
406
406
SECP_TEST_LIBS="$SECP_TEST_LIBS -lgdi32"
407
407
;;
408
408
esac
409
- fi
410
409
else
411
410
if test x"$enable_openssl_tests" = x"yes"; then
412
411
AC_MSG_ERROR ( [ OpenSSL tests requested but OpenSSL with EC support is not available] )
413
412
fi
413
+ enable_openssl_tests=no
414
414
fi
415
415
else
416
416
if test x"$enable_openssl_tests" = x"yes"; then
417
417
AC_MSG_ERROR ( [ OpenSSL tests requested but tests are not enabled] )
418
418
fi
419
+ enable_openssl_tests=no
419
420
fi
420
421
421
422
if test x"$set_bignum" = x"gmp"; then
@@ -503,6 +504,8 @@ echo "Build Options:"
503
504
echo " with ecmult precomp = $set_precomp"
504
505
echo " with external callbacks = $use_external_default_callbacks"
505
506
echo " with benchmarks = $use_benchmark"
507
+ echo " with tests = $use_tests"
508
+ echo " with openssl tests = $enable_openssl_tests"
506
509
echo " with coverage = $enable_coverage"
507
510
echo " module ecdh = $enable_module_ecdh"
508
511
echo " module recovery = $enable_module_recovery"
0 commit comments