From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1726) id B3487382B261; Mon, 13 Jun 2022 12:12:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B3487382B261 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Andrew Burgess To: gdb-cvs@sourceware.org Subject: [binutils-gdb] gdb: don't use bashism in configure test X-Act-Checkin: binutils-gdb X-Git-Author: Sam James X-Git-Refname: refs/heads/master X-Git-Oldrev: afd53c3c0a22528b9e56f599c4fd2cf6585ed8fa X-Git-Newrev: c714aff10b1a5542dac657d86eb56140945bbd65 Message-Id: <20220613121253.B3487382B261@sourceware.org> Date: Mon, 13 Jun 2022 12:12:53 +0000 (GMT) X-BeenThere: gdb-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Jun 2022 12:12:53 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dc714aff10b1a= 5542dac657d86eb56140945bbd65 commit c714aff10b1a5542dac657d86eb56140945bbd65 Author: Sam James Date: Thu Jun 9 04:37:51 2022 +0100 gdb: don't use bashism in configure test =20 Results in configure output like: ``` checking for X... no /var/tmp/portage/sys-devel/gdb-12.1/work/gdb-12.1/gdb/configure: 18837:= test: yes: unexpected operator checking whether to use babeltrace... auto ``` =20 ... when /bin/sh is provided by a POSIX-compliant shell, like dash, instead of bash. Diff: --- gdb/configure | 2 +- gdb/configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gdb/configure b/gdb/configure index 1008cbef28b..1b821390801 100755 --- a/gdb/configure +++ b/gdb/configure @@ -18760,7 +18760,7 @@ else fi =20 =20 -if test "${enable_libbacktrace}" =3D=3D "yes"; then +if test "${enable_libbacktrace}" =3D "yes"; then LIBBACKTRACE_INC=3D"-I$srcdir/../libbacktrace/ -I../libbacktrace/" LIBBACKTRACE_LIB=3D../libbacktrace/.libs/libbacktrace.a =20 diff --git a/gdb/configure.ac b/gdb/configure.ac index e3c19bc8859..bf03b875dfe 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -2113,7 +2113,7 @@ AC_ARG_ENABLE([libbacktrace], esac], enable_libbacktrace=3Dyes) =20 -if test "${enable_libbacktrace}" =3D=3D "yes"; then +if test "${enable_libbacktrace}" =3D "yes"; then LIBBACKTRACE_INC=3D"-I$srcdir/../libbacktrace/ -I../libbacktrace/" LIBBACKTRACE_LIB=3D../libbacktrace/.libs/libbacktrace.a AC_DEFINE(HAVE_LIBBACKTRACE, 1, [Define if libbacktrace is being used.])