gdb: don't use bashism in configure test
authorSam James <sam@gentoo.org>
Thu, 9 Jun 2022 03:37:51 +0000 (04:37 +0100)
committerAndrew Burgess <aburgess@redhat.com>
Mon, 13 Jun 2022 12:12:31 +0000 (13:12 +0100)
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
```

... when /bin/sh is provided by a POSIX-compliant shell, like dash,
instead of bash.

gdb/configure
gdb/configure.ac

index 1008cbef28bf29dc28e04554bca481ef4d6eb49c..1b8213908010592f9bba5045f035d976747784b2 100755 (executable)
@@ -18760,7 +18760,7 @@ else
 fi
 
 
-if test "${enable_libbacktrace}" == "yes"; then
+if test "${enable_libbacktrace}" = "yes"; then
   LIBBACKTRACE_INC="-I$srcdir/../libbacktrace/ -I../libbacktrace/"
   LIBBACKTRACE_LIB=../libbacktrace/.libs/libbacktrace.a
 
index e3c19bc8859dfe580f039ef61e8761a4cf985bc2..bf03b875dfe634eee56e394829d1d8c1744dd47c 100644 (file)
@@ -2113,7 +2113,7 @@ AC_ARG_ENABLE([libbacktrace],
 esac],
 enable_libbacktrace=yes)
 
-if test "${enable_libbacktrace}" == "yes"; then
+if test "${enable_libbacktrace}" = "yes"; then
   LIBBACKTRACE_INC="-I$srcdir/../libbacktrace/ -I../libbacktrace/"
   LIBBACKTRACE_LIB=../libbacktrace/.libs/libbacktrace.a
   AC_DEFINE(HAVE_LIBBACKTRACE, 1, [Define if libbacktrace is being used.])