autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

comma separated lists


From: Bruno Haible
Subject: comma separated lists
Date: Thu, 9 Jan 2003 21:47:42 +0100 (CET)

Hi,

AC_CHECK_HEADERS wants a whitespace separated list.
AC_CHECK_FUNCS wants a whitespace separated list.
AC_CHECK_DECLS wants a comma separated list.
AC_LIBSOURCES wants a comma separated list.

Why?! In m4 commas are used delimit things with different semantics, for
example the first and the second argument of a macro invocation, or the name
and the body of a macro. Whereas in m4 traditionally when things are
separated only by spaces you know that they will be treated the same way.

Such gratuitous syntactic unconsistencies make it harder to write autoconf
macros.

So I would suggest that you get back to the usual m4 syntax and change
AC_CHECK_DECLS and AC_LIBSOURCES to allow a whitespace separated list, and
no longer document that it also accepts a comma separated list.

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]