Make comparison POSIX compliant

String comparison with == is not POSIX compliant and can fail with e.g.
dash.

Fixes https://github.com/tio/tio/issues/115
This commit is contained in:
Jakob Haufe 2020-10-07 10:08:31 +02:00
parent 39a8f63640
commit 93771ffab8
No known key found for this signature in database
GPG key ID: 4CF2B218F54DAE3D

View file

@ -86,7 +86,7 @@ AC_DEFINE_UNQUOTED([AUTOCONF_BAUDRATE_CASES],[$BAUDRATE_CASES],[Switch cases for
# Check for interface for setting arbitrary I/O speeds
AC_CHECK_DECL([TCGETS2], [AC_DEFINE([HAVE_TERMIOS2],[1],[Define if termios2 exists.]) have_termios2=yes], , [[#include <asm/termios.h>]])
AM_CONDITIONAL([ADD_SETSPEED2],[test "x$have_termios2" == "xyes"])
AM_CONDITIONAL([ADD_SETSPEED2],[test "x$have_termios2" = "xyes"])
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([src/Makefile])