Skip to content

Commit

Permalink
configure*: Fix wrong quote character in AC_MSG_ERROR
Browse files Browse the repository at this point in the history
Square brackets are used as quotes in autoconf.

From Section 8.1.1, Active Characters of the Autoconf manual[1]:

> To fully understand where proper quotation is important, you first
> need to know what the special characters are in Autoconf: ‘#’
> introduces a comment inside which no macro expansion is performed, ‘,’
> separates arguments, ‘[’ and ‘]’ are the quotes themselves, ‘(’ and
> ‘)’ (which M4 tries to match by pairs), and finally ‘$’ inside a macro
> definition.

[1] https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.70/autoconf.html#Active-Characters
  • Loading branch information
kmk3 committed Nov 24, 2021
1 parent b20a1f3 commit ef6df15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -3643,7 +3643,7 @@ fi
if test "x$HAVE_GAWK" != "xyes"; then :
as_fn_error $? "\"*** gawk not found ***\"" "$LINENO" 5
as_fn_error $? "*** gawk not found ***" "$LINENO" 5
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ AS_IF([test "x$enable_man" != "xno"], [
HAVE_MAN="-DHAVE_MAN"
AC_SUBST(HAVE_MAN)
AC_CHECK_PROG([HAVE_GAWK], [gawk], [yes], [no])
AS_IF([test "x$HAVE_GAWK" != "xyes"], [AC_MSG_ERROR("*** gawk not found ***")])
AS_IF([test "x$HAVE_GAWK" != "xyes"], [AC_MSG_ERROR([*** gawk not found ***])])
])

HAVE_FIRETUNNEL=""
Expand Down

0 comments on commit ef6df15

Please sign in to comment.