]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Drop bashism from configure script
authorKévin Le Gouguec <legouguec@adacore.com>
Mon, 20 Oct 2025 14:54:39 +0000 (16:54 +0200)
committerKévin Le Gouguec <legouguec@adacore.com>
Mon, 20 Oct 2025 14:54:39 +0000 (16:54 +0200)
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
gdb/configure.ac

index 04bb60f9f1f2e9b982472da5e57a7cee5c91a848..55be281fbb4229fb4d74603000fa92ce19d55690 100755 (executable)
@@ -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
index 5e5a3a01d06117a93e0c4773d0138bccaff9295f..9c258eedc757d44fe90e618f8ef203d87466076f 100644 (file)
@@ -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