@@ -48,17 +48,12 @@ case $host_os in
4848 # in expected paths because they may conflict with system files. Ask
4949 # Homebrew where each one is located, then adjust paths accordingly.
5050 openssl_prefix=`$BREW --prefix openssl 2>/dev/null`
51- gmp_prefix=`$BREW --prefix gmp 2>/dev/null`
5251 valgrind_prefix=`$BREW --prefix valgrind 2>/dev/null`
5352 if test x$openssl_prefix != x; then
5453 PKG_CONFIG_PATH="$openssl_prefix/lib/pkgconfig:$PKG_CONFIG_PATH"
5554 export PKG_CONFIG_PATH
5655 CRYPTO_CPPFLAGS="-I$openssl_prefix/include"
5756 fi
58- if test x$gmp_prefix != x; then
59- GMP_CPPFLAGS="-I$gmp_prefix/include"
60- GMP_LIBS="-L$gmp_prefix/lib"
61- fi
6257 if test x$valgrind_prefix != x; then
6358 VALGRIND_CPPFLAGS="-I$valgrind_prefix/include"
6459 fi
@@ -164,9 +159,6 @@ AC_ARG_ENABLE(external_default_callbacks,
164159# Legal values are int64 (for [u]int64_t), int128 (for [unsigned] __int128), and auto (the default).
165160AC_ARG_WITH ( [ test-override-wide-multiply] , [ ] ,[ set_widemul=$withval] , [ set_widemul=auto] )
166161
167- AC_ARG_WITH ( [ bignum] , [ AS_HELP_STRING ( [ --with-bignum=gmp|no|auto] ,
168- [ bignum implementation to use [ default=auto] ] ) ] ,[ req_bignum=$withval] , [ req_bignum=auto] )
169-
170162AC_ARG_WITH ( [ asm] , [ AS_HELP_STRING ( [ --with-asm=x86_64|arm|no|auto] ,
171163[ assembly optimizations to use (experimental: arm) [ default=auto] ] ) ] ,[ req_asm=$withval] , [ req_asm=auto] )
172164
@@ -245,32 +237,6 @@ else
245237 esac
246238fi
247239
248- if test x"$req_bignum" = x"auto"; then
249- SECP_GMP_CHECK
250- if test x"$has_gmp" = x"yes"; then
251- set_bignum=gmp
252- fi
253-
254- if test x"$set_bignum" = x; then
255- set_bignum=no
256- fi
257- else
258- set_bignum=$req_bignum
259- case $set_bignum in
260- gmp)
261- SECP_GMP_CHECK
262- if test x"$has_gmp" != x"yes"; then
263- AC_MSG_ERROR ( [ gmp bignum explicitly requested but libgmp not available] )
264- fi
265- ;;
266- no)
267- ;;
268- *)
269- AC_MSG_ERROR ( [ invalid bignum implementation selection] )
270- ;;
271- esac
272- fi
273-
274240# Select assembly optimization
275241use_external_asm=no
276242
@@ -308,24 +274,6 @@ auto)
308274 ;;
309275esac
310276
311- # Select bignum implementation
312- case $set_bignum in
313- gmp)
314- AC_DEFINE ( HAVE_LIBGMP , 1 , [ Define this symbol if libgmp is installed] )
315- AC_DEFINE ( USE_NUM_GMP , 1 , [ Define this symbol to use the gmp implementation for num] )
316- AC_DEFINE ( USE_FIELD_INV_NUM , 1 , [ Define this symbol to use the num-based field inverse implementation] )
317- AC_DEFINE ( USE_SCALAR_INV_NUM , 1 , [ Define this symbol to use the num-based scalar inverse implementation] )
318- ;;
319- no)
320- AC_DEFINE ( USE_NUM_NONE , 1 , [ Define this symbol to use no num implementation] )
321- AC_DEFINE ( USE_FIELD_INV_BUILTIN , 1 , [ Define this symbol to use the native field inverse implementation] )
322- AC_DEFINE ( USE_SCALAR_INV_BUILTIN , 1 , [ Define this symbol to use the native scalar inverse implementation] )
323- ;;
324- *)
325- AC_MSG_ERROR ( [ invalid bignum implementation] )
326- ;;
327- esac
328-
329277# Set ecmult window size
330278if test x"$req_ecmult_window" = x"auto"; then
331279 set_ecmult_window=15
@@ -390,11 +338,6 @@ else
390338 enable_openssl_tests=no
391339fi
392340
393- if test x"$set_bignum" = x"gmp"; then
394- SECP_LIBS="$SECP_LIBS $GMP_LIBS"
395- SECP_INCLUDES="$SECP_INCLUDES $GMP_CPPFLAGS"
396- fi
397-
398341if test x"$enable_valgrind" = x"yes"; then
399342 SECP_INCLUDES="$SECP_INCLUDES $VALGRIND_CPPFLAGS"
400343fi
@@ -571,7 +514,6 @@ echo " module extrakeys = $enable_module_extrakeys"
571514echo " module schnorrsig = $enable_module_schnorrsig"
572515echo
573516echo " asm = $set_asm"
574- echo " bignum = $set_bignum"
575517echo " ecmult window size = $set_ecmult_window"
576518echo " ecmult gen prec. bits = $set_ecmult_gen_precision"
577519# Hide test-only options unless they're used.
0 commit comments