File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ AC_DEFUN([SECP_OPENSSL_CHECK],[
3838 fi
3939if test x"$has_libcrypto" = x"yes" && test x"$has_openssl_ec" = x; then
4040 AC_MSG_CHECKING ( for EC functions in libcrypto )
41+ CPPFLAGS_TEMP="$CPPFLAGS"
42+ CPPFLAGS="$CRYPTO_CPPFLAGS $CPPFLAGS"
4143 AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [
4244 #include <openssl/ec.h>
4345 #include <openssl/ecdsa.h>
@@ -51,6 +53,7 @@ if test x"$has_libcrypto" = x"yes" && test x"$has_openssl_ec" = x; then
5153 ECDSA_SIG_free(sig_openssl);
5254 ] ] ) ] ,[ has_openssl_ec=yes] ,[ has_openssl_ec=no] )
5355 AC_MSG_RESULT ( [ $has_openssl_ec] )
56+ CPPFLAGS="$CPPFLAGS_TEMP"
5457fi
5558] )
5659
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ case $host_os in
4646 if test x$openssl_prefix != x; then
4747 PKG_CONFIG_PATH="$openssl_prefix/lib/pkgconfig:$PKG_CONFIG_PATH"
4848 export PKG_CONFIG_PATH
49+ CRYPTO_CPPFLAGS="-I$openssl_prefix/include"
4950 fi
5051 if test x$gmp_prefix != x; then
5152 GMP_CPPFLAGS="-I$gmp_prefix/include"
@@ -451,7 +452,7 @@ if test x"$use_tests" = x"yes"; then
451452 if test x"$has_openssl_ec" = x"yes"; then
452453 if test x"$enable_openssl_tests" != x"no"; then
453454 AC_DEFINE ( ENABLE_OPENSSL_TESTS , 1 , [ Define this symbol if OpenSSL EC functions are available] )
454- SECP_TEST_INCLUDES="$SSL_CFLAGS $CRYPTO_CFLAGS"
455+ SECP_TEST_INCLUDES="$SSL_CFLAGS $CRYPTO_CFLAGS $CRYPTO_CPPFLAGS "
455456 SECP_TEST_LIBS="$CRYPTO_LIBS"
456457
457458 case $host in
You can’t perform that action at this time.
0 commit comments