From: Sam James Date: Wed, 23 Apr 2025 09:57:00 +0000 (+0100) Subject: gdb: fix bashism in configure.ac X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e32b976a152894c00a01e4e0a48cd1f1d82d1d39;p=thirdparty%2Fbinutils-gdb.git gdb: fix bashism in configure.ac Use '=', not '==', as configure has a #!/bin/sh shebang and must work with non-bash shells. Fixes: c4375bc51c861dfa384a01bdb2e460e115710bf9 --- diff --git a/gdb/configure b/gdb/configure index e8a649f2ef0..c029c303176 100755 --- a/gdb/configure +++ b/gdb/configure @@ -28991,7 +28991,7 @@ else fi -if test "${enable_gdb_compile}" == yes; then +if test "${enable_gdb_compile}" = yes; then $as_echo "#define HAVE_COMPILE 1" >>confdefs.h diff --git a/gdb/configure.ac b/gdb/configure.ac index e0cc3c8a0b2..7ba799b2c48 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -1231,7 +1231,7 @@ AC_ARG_ENABLE([gdb-compile], [GDB_CHECK_YES_NO_VAL([$enableval], [--enable-gdb-compile])], [enable_gdb_compile=yes]) -if test "${enable_gdb_compile}" == yes; then +if test "${enable_gdb_compile}" = yes; then AC_DEFINE(HAVE_COMPILE, 1, [Define if compiling support to gdb compile.]) CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_GCC_COMPILE_OBS)" else