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],[
38
38
fi
39
39
if test x"$has_libcrypto" = x"yes" && test x"$has_openssl_ec" = x; then
40
40
AC_MSG_CHECKING ( for EC functions in libcrypto )
41
+ CPPFLAGS_TEMP="$CPPFLAGS"
42
+ CPPFLAGS="$CRYPTO_CPPFLAGS $CPPFLAGS"
41
43
AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [
42
44
#include <openssl/ec.h>
43
45
#include <openssl/ecdsa.h>
@@ -51,6 +53,7 @@ if test x"$has_libcrypto" = x"yes" && test x"$has_openssl_ec" = x; then
51
53
ECDSA_SIG_free(sig_openssl);
52
54
] ] ) ] ,[ has_openssl_ec=yes] ,[ has_openssl_ec=no] )
53
55
AC_MSG_RESULT ( [ $has_openssl_ec] )
56
+ CPPFLAGS="$CPPFLAGS_TEMP"
54
57
fi
55
58
] )
56
59
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ case $host_os in
46
46
if test x$openssl_prefix != x; then
47
47
PKG_CONFIG_PATH="$openssl_prefix/lib/pkgconfig:$PKG_CONFIG_PATH"
48
48
export PKG_CONFIG_PATH
49
+ CRYPTO_CPPFLAGS="-I$openssl_prefix/include"
49
50
fi
50
51
if test x$gmp_prefix != x; then
51
52
GMP_CPPFLAGS="-I$gmp_prefix/include"
@@ -451,7 +452,7 @@ if test x"$use_tests" = x"yes"; then
451
452
if test x"$has_openssl_ec" = x"yes"; then
452
453
if test x"$enable_openssl_tests" != x"no"; then
453
454
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 "
455
456
SECP_TEST_LIBS="$CRYPTO_LIBS"
456
457
457
458
case $host in
You can’t perform that action at this time.
0 commit comments