Skip to content

Commit 8dc75e9

Browse files
committed
Merge pull request bitcoin#158
28ade27 build: nuke bashisms (Cory Fields)
2 parents bccaf86 + 28ade27 commit 8dc75e9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

build-aux/m4/bitcoin_secp.m4

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
1818
__asm__ __volatile__("movq $0x100000000,%1; mulq %%rsi" : "+a"(a) : "S"(tmp) : "cc", "%rdx");
1919
]])],[has_64bit_asm=yes],[has_64bit_asm=no])
2020
AC_MSG_RESULT([$has_64bit_asm])
21-
if test x"$set_field" == x"64bit_asm"; then
22-
if test x"$has_64bit_asm" == x"no"; then
21+
if test x"$set_field" = x"64bit_asm"; then
22+
if test x"$has_64bit_asm" = x"no"; then
2323
AC_MSG_ERROR([$set_field field support explicitly requested but no x86_64 assembly available])
2424
fi
2525
fi
@@ -43,7 +43,7 @@ else
4343
)])
4444
LIBS=
4545
fi
46-
if test x"$has_libcrypto" == x"yes" && test x"$has_openssl_ec" = x; then
46+
if test x"$has_libcrypto" = x"yes" && test x"$has_openssl_ec" = x; then
4747
AC_MSG_CHECKING(for EC functions in libcrypto)
4848
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
4949
#include <openssl/ec.h>

configure.ac

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if test "x$CFLAGS" = "x"; then
2323
fi
2424

2525
AC_PROG_CC_C99
26-
if test x"$ac_cv_prog_cc_c99" == x"no"; then
26+
if test x"$ac_cv_prog_cc_c99" = x"no"; then
2727
AC_MSG_ERROR([c99 compiler support required])
2828
fi
2929

@@ -258,7 +258,7 @@ esac
258258

259259
if test x"$use_tests" = x"yes"; then
260260
SECP_OPENSSL_CHECK
261-
if test x"$has_openssl_ec" == x"yes"; then
261+
if test x"$has_openssl_ec" = x"yes"; then
262262
AC_DEFINE(ENABLE_OPENSSL_TESTS, 1, [Define this symbol if OpenSSL EC functions are available])
263263
SECP_TEST_INCLUDES="$SSL_CFLAGS $CRYPTO_CFLAGS"
264264
SECP_TEST_LIBS="$CRYPTO_LIBS"
@@ -291,7 +291,7 @@ AC_SUBST(SECP_INCLUDES)
291291
AC_SUBST(SECP_LIBS)
292292
AC_SUBST(SECP_TEST_LIBS)
293293
AC_SUBST(SECP_TEST_INCLUDES)
294-
AM_CONDITIONAL([USE_ASM], [test x"$set_field" == x"64bit_asm"])
294+
AM_CONDITIONAL([USE_ASM], [test x"$set_field" = x"64bit_asm"])
295295
AM_CONDITIONAL([USE_TESTS], [test x"$use_tests" != x"no"])
296296
AM_CONDITIONAL([USE_BENCHMARK], [test x"$use_benchmark" != x"no"])
297297

0 commit comments

Comments
 (0)