| > The problem was that Lars was AC_DEFINE($var), which unfortunately
| > is not extensible in 2.13. It is now, and autoheader, IMHO, achieves
| > that end for both the maintainer, *and* the end user. I personally
| > consider it is a requirement that all the #undef templates be
| > documented/described.
|
| Does something like
|
| for ac_func in LIST
| do
| ...
| ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
| AC_DEFINE_UNQUOTED($ac_tr_func, 1, [ /* Define if you have $ac_func. */])
| ...
| done
|
| work now, too?
No: you have to use literals. config.h is extracted by m4, which
cannot read shell variables. The only way out is
AC_DEFINE_UNQUOTED(AC_TR_CPP([HAVE_$1]), 1,
[ /* Define if you have $ac_func. */])
and *never* use a sh-for loop. m4 loops are ok, but no sh loop.
Akim