You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/secp256k1/build-aux/m4/bitcoin_secp.m4
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -78,7 +78,13 @@ fi
78
78
dnl
79
79
AC_DEFUN([SECP_GMP_CHECK],[
80
80
if test x"$has_gmp" != x"yes"; then
81
-
AC_CHECK_HEADER(gmp.h,[AC_CHECK_LIB(gmp, __gmpz_init,[has_gmp=yes; GMP_LIBS=-lgmp; AC_DEFINE(HAVE_LIBGMP,1,[Define this symbol if libgmp is installed])])])
81
+
CPPFLAGS_TEMP="$CPPFLAGS"
82
+
CPPFLAGS="$GMP_CPPFLAGS $CPPFLAGS"
83
+
LIBS_TEMP="$LIBS"
84
+
LIBS="$GMP_LIBS $LIBS"
85
+
AC_CHECK_HEADER(gmp.h,[AC_CHECK_LIB(gmp, __gmpz_init,[has_gmp=yes; GMP_LIBS="$GMP_LIBS -lgmp"; AC_DEFINE(HAVE_LIBGMP,1,[Define this symbol if libgmp is installed])])])
86
+
CPPFLAGS="$CPPFLAGS_TEMP"
87
+
LIBS="$LIBS_TEMP"
82
88
fi
83
89
if test x"$set_field" = x"gmp" && test x"$has_gmp" != x"yes"; then
84
90
AC_MSG_ERROR([$set_field field support explicitly requested but libgmp was not found])
0 commit comments