Skip to content

Commit

Permalink
configure.ac: fix autoconf-2.72 compatibility
Browse files Browse the repository at this point in the history
`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
  • Loading branch information
trofi committed Dec 23, 2023
1 parent 7633fbc commit f444a31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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, , [
Expand All @@ -100,7 +100,7 @@ AS_IF([test "x$enable_termcap" = "xyes"],
])
])
])
]))
])])

# Generate all files
AC_OUTPUT

0 comments on commit f444a31

Please sign in to comment.