summaryrefslogtreecommitdiff
path: root/misc/tmux/patches/patch-configure
blob: 1c4dbf827663285bfc0fe26670bb64eda02845b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-configure,v 1.5 2021/04/17 10:28:22 leot Exp $

Avoid unportable `==' test(1) operator.

Shared upstream via:

 <https://github.com/tmux/tmux/pull/2660>

--- configure.orig	2021-04-17 09:58:34.124050016 +0000
+++ configure
@@ -3030,10 +3030,10 @@ fi
 if test "x$enable_fuzzing" = xyes; then
 	$as_echo "#define NEED_FUZZING 1" >>confdefs.h
 
-	test "x$CC" == x && CC=clang
-	test "x$FUZZING_LIBS" == x && \
+	test "x$CC" = x && CC=clang
+	test "x$FUZZING_LIBS" = x && \
 		FUZZING_LIBS="-fsanitize=fuzzer"
-	test "x$SAVED_CFLAGS" == x && \
+	test "x$SAVED_CFLAGS" = x && \
 		AM_CFLAGS="-g -fsanitize=fuzzer-no-link,address"
 fi