Skip to content

Commit 4d7b9d7

Browse files
committed
configure: fix bashisms
See also zeromq/libzmq@3b26401. configure scripts need to be runnable with a POSIX-compliant /bin/sh. On many (but not all!) systems, /bin/sh is provided by Bash, so errors like this aren't spotted. Notably Debian defaults to /bin/sh provided by dash which doesn't tolerate such bashisms as '=='. This retains compatibility with bash.
1 parent f256329 commit 4d7b9d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

configure.ac

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ AC_ARG_WITH(gcov, [AS_HELP_STRING([--with-gcov=yes/no],
7575
[With GCC Code Coverage reporting])],
7676
[ZPROJECT_GCOV="$withval"])
7777

78-
if test "x${ZPROJECT_GCOV}" == "xyes"; then
78+
if test "x${ZPROJECT_GCOV}" = "xyes"; then
7979
CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
8080

8181
if test "x${ZPROJECT_ORIG_CFLAGS}" != "xnone"; then
@@ -94,7 +94,7 @@ AC_ARG_ENABLE(address-sanitizer, [AS_HELP_STRING([--enable-address-sanitizer=yes
9494
[Build with GCC Address Sanitizer instrumentation])],
9595
[ZPROJECT_ASAN="$enableval"])
9696

97-
if test "x${ZPROJECT_ASAN}" == "xyes"; then
97+
if test "x${ZPROJECT_ASAN}" = "xyes"; then
9898
CFLAGS="${CFLAGS} -fsanitize=address"
9999
CXXFLAGS="${CXXFLAGS} -fsanitize=address"
100100

@@ -114,7 +114,7 @@ AC_ARG_ENABLE([bindings-python],
114114
[ZPROJECT_BINDINGS_PYTHON=$enableval],
115115
[ZPROJECT_BINDINGS_PYTHON=no])
116116

117-
if test "x$ZPROJECT_BINDINGS_PYTHON" == "xyes"; then
117+
if test "x$ZPROJECT_BINDINGS_PYTHON" = "xyes"; then
118118
AM_CONDITIONAL(ENABLE_BINDINGS_PYTHON, true)
119119
AC_MSG_RESULT([yes])
120120
else

0 commit comments

Comments
 (0)