mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-13 05:12:34 -03:00
Merge pull request #155
971fe81
build: fix openssl detection for cross builds (Cory Fields)
This commit is contained in:
commit
8bb0e93045
1 changed files with 7 additions and 2 deletions
|
@ -30,8 +30,13 @@ AC_DEFUN([SECP_OPENSSL_CHECK],[
|
||||||
if test x"$use_pkgconfig" = x"yes"; then
|
if test x"$use_pkgconfig" = x"yes"; then
|
||||||
: #NOP
|
: #NOP
|
||||||
m4_ifdef([PKG_CHECK_MODULES],[
|
m4_ifdef([PKG_CHECK_MODULES],[
|
||||||
PKG_CHECK_MODULES([CRYPTO], [libcrypto], [has_libcrypto=yes; AC_DEFINE(HAVE_LIBCRYPTO,1,[Define this symbol if libcrypto is installed])],[has_libcrypto=no])
|
PKG_CHECK_MODULES([CRYPTO], [libcrypto], [has_libcrypto=yes],[has_libcrypto=no])
|
||||||
: #NOP
|
if test x"$has_libcrypto" = x"yes"; then
|
||||||
|
TEMP_LIBS="$LIBS"
|
||||||
|
LIBS="$LIBS $CRYPTO_LIBS"
|
||||||
|
AC_CHECK_LIB(crypto, main,[AC_DEFINE(HAVE_LIBCRYPTO,1,[Define this symbol if libcrypto is installed])],[has_libcrypto=no])
|
||||||
|
LIBS="$TEMP_LIBS"
|
||||||
|
fi
|
||||||
])
|
])
|
||||||
else
|
else
|
||||||
AC_CHECK_HEADER(openssl/crypto.h,[AC_CHECK_LIB(crypto, main,[has_libcrypto=yes; CRYPTO_LIBS=-lcrypto; AC_DEFINE(HAVE_LIBCRYPTO,1,[Define this symbol if libcrypto is installed])]
|
AC_CHECK_HEADER(openssl/crypto.h,[AC_CHECK_LIB(crypto, main,[has_libcrypto=yes; CRYPTO_LIBS=-lcrypto; AC_DEFINE(HAVE_LIBCRYPTO,1,[Define this symbol if libcrypto is installed])]
|
||||||
|
|
Loading…
Reference in a new issue