From 82f437c6ffcfe9dc78741d44cbbda9439ea4d6f6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?K=C3=A9vin=20Le=20Gouguec?= Date: Mon, 20 Oct 2025 16:54:39 +0200 Subject: [PATCH] Drop bashism from configure script Results of evaluating 'test "no" == yes' in non-Bash shells range from unfortunate (dash: "test: no: unexpected operator") to comically wrong (AdaCore's gsh: returns 0). --- gdb/configure | 2 +- gdb/configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gdb/configure b/gdb/configure index 04bb60f9f1f..55be281fbb4 100755 --- a/gdb/configure +++ b/gdb/configure @@ -28746,7 +28746,7 @@ else fi -if test "$enable_py_limited_api" == yes; then +if test "$enable_py_limited_api" = yes; then # The minimal Python limited API version is currently set to 3.11 for the # support of PyBuffer_FillInfo and PyBuffer_Release. # The choice of the minimal version for the Python limited API won't be frozen diff --git a/gdb/configure.ac b/gdb/configure.ac index 5e5a3a01d06..9c258eedc75 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -1077,7 +1077,7 @@ AC_ARG_ENABLE([py-limited-api], [GDB_CHECK_YES_NO_VAL([$enableval], [--enable-py-limited-api])], [enable_py_limited_api=no]) -if test "$enable_py_limited_api" == yes; then +if test "$enable_py_limited_api" = yes; then # The minimal Python limited API version is currently set to 3.11 for the # support of PyBuffer_FillInfo and PyBuffer_Release. # The choice of the minimal version for the Python limited API won't be frozen -- 2.47.3