Changeset View
Changeset View
Standalone View
Standalone View
src/secp256k1/configure.ac
Show All 40 Lines | if test x$cross_compiling != xyes; then | ||||
dnl in expected paths because they may conflict with system files. Ask | dnl in expected paths because they may conflict with system files. Ask | ||||
dnl Homebrew where each one is located, then adjust paths accordingly. | dnl Homebrew where each one is located, then adjust paths accordingly. | ||||
openssl_prefix=`$BREW --prefix openssl 2>/dev/null` | openssl_prefix=`$BREW --prefix openssl 2>/dev/null` | ||||
gmp_prefix=`$BREW --prefix gmp 2>/dev/null` | gmp_prefix=`$BREW --prefix gmp 2>/dev/null` | ||||
if test x$openssl_prefix != x; then | if test x$openssl_prefix != x; then | ||||
PKG_CONFIG_PATH="$openssl_prefix/lib/pkgconfig:$PKG_CONFIG_PATH" | PKG_CONFIG_PATH="$openssl_prefix/lib/pkgconfig:$PKG_CONFIG_PATH" | ||||
export PKG_CONFIG_PATH | export PKG_CONFIG_PATH | ||||
CRYPTO_CPPFLAGS="-I$openssl_prefix/include" | |||||
fi | fi | ||||
if test x$gmp_prefix != x; then | if test x$gmp_prefix != x; then | ||||
GMP_CPPFLAGS="-I$gmp_prefix/include" | GMP_CPPFLAGS="-I$gmp_prefix/include" | ||||
GMP_LIBS="-L$gmp_prefix/lib" | GMP_LIBS="-L$gmp_prefix/lib" | ||||
fi | fi | ||||
else | else | ||||
AC_PATH_PROG([PORT],port,) | AC_PATH_PROG([PORT],port,) | ||||
dnl if homebrew isn't installed and macports is, add the macports default paths | dnl if homebrew isn't installed and macports is, add the macports default paths | ||||
▲ Show 20 Lines • Show All 404 Lines • ▼ Show 20 Lines | *) | ||||
;; | ;; | ||||
esac | esac | ||||
if test x"$use_tests" = x"yes"; then | if test x"$use_tests" = x"yes"; then | ||||
SECP_OPENSSL_CHECK | SECP_OPENSSL_CHECK | ||||
if test x"$has_openssl_ec" = x"yes"; then | if test x"$has_openssl_ec" = x"yes"; then | ||||
if test x"$enable_openssl_tests" != x"no"; then | if test x"$enable_openssl_tests" != x"no"; then | ||||
AC_DEFINE(ENABLE_OPENSSL_TESTS, 1, [Define this symbol if OpenSSL EC functions are available]) | AC_DEFINE(ENABLE_OPENSSL_TESTS, 1, [Define this symbol if OpenSSL EC functions are available]) | ||||
SECP_TEST_INCLUDES="$SSL_CFLAGS $CRYPTO_CFLAGS" | SECP_TEST_INCLUDES="$SSL_CFLAGS $CRYPTO_CFLAGS $CRYPTO_CPPFLAGS" | ||||
SECP_TEST_LIBS="$CRYPTO_LIBS" | SECP_TEST_LIBS="$CRYPTO_LIBS" | ||||
case $host in | case $host in | ||||
*mingw*) | *mingw*) | ||||
SECP_TEST_LIBS="$SECP_TEST_LIBS -lgdi32" | SECP_TEST_LIBS="$SECP_TEST_LIBS -lgdi32" | ||||
;; | ;; | ||||
esac | esac | ||||
fi | fi | ||||
▲ Show 20 Lines • Show All 144 Lines • Show Last 20 Lines |