From f444a316f5178b8e20fe31e7b2d979e651da077e Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sat, 23 Dec 2023 19:12:42 +0000 Subject: [PATCH] configure.ac: fix `autoconf-2.72` compatibility `autoconf-2.72` slightly changed `AS_IF`/`AC_CHECL_LIB` definitions and exposed the bug of missng quoting around the arguments: editline> ./configure: line 13944: syntax error near unexpected token `;;' editline> ./configure: line 13944: ` ;;' The change adds quoting as suggested by https://savannah.gnu.org/support/index.php?110990 --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 880f6f1..3fe0410 100644 --- a/configure.ac +++ b/configure.ac @@ -89,7 +89,7 @@ AS_IF([test "x$enable_terminal_bell" = "xyes"], AM_CONDITIONAL([ENABLE_EXAMPLES], [test "$enable_examples" = yes]) # Check for a termcap compatible library if enabled -AS_IF([test "x$enable_termcap" = "xyes"], +AS_IF([test "x$enable_termcap" = "xyes"], [ AC_DEFINE(CONFIG_USE_TERMCAP, 1, [Define to use the termcap library for terminal size.]) AC_CHECK_LIB(terminfo, tgetent, , [ AC_CHECK_LIB(termcap, tgetent, , [ @@ -100,7 +100,7 @@ AS_IF([test "x$enable_termcap" = "xyes"], ]) ]) ]) - ])) + ])]) # Generate all files AC_OUTPUT