Alexandre Oliva <[EMAIL PROTECTED]> writes:
> On Feb 13, 2001, Tom Tromey <[EMAIL PROTECTED]> wrote:
>
> > I don't want to remove anything from autoconf's blacklist. Doing that
> > means we have to update autoconf whenever we change automake.
>
> Nope. CVS Autoconf has a macro to remove strings from the blacklist.
>
> ifdef([m4_pattern_allow],[m4_pattern_allow([AM_CFLAGS])])
>
> will let you refer to AM_CFLAGS in configure.in without introducing
> any dependency on CVS autoconf.
Let me nitpick a bit:
ifdef([m4_pattern_allow],
[m4_pattern_allow([^AM_CFLAGS$])])dnl
(note the anchors too). I insist on the dnl: currently automake dump
a long series of empty lines coming from there. And BTW, instead of
# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
# the ones we care about.
ifdef([m4_pattern_allow], [m4_pattern_allow([AM_CFLAGS])])
ifdef([m4_pattern_allow], [m4_pattern_allow([AM_CPPFLAGS])])
ifdef([m4_pattern_allow], [m4_pattern_allow([AM_CXXFLAGS])])
ifdef([m4_pattern_allow], [m4_pattern_allow([AM_OBJCFLAGS])])
ifdef([m4_pattern_allow], [m4_pattern_allow([AM_FFLAGS])])
ifdef([m4_pattern_allow], [m4_pattern_allow([AM_RFLAGS])])
ifdef([m4_pattern_allow], [m4_pattern_allow([AM_GCJFLAGS])])
you can
# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
# the ones we care about.
ifdef([m4_pattern_allow],
[m4_pattern_allow([^AM_(C|CPP|CXX|OBJC|F|R|GCJ)FLAGS$])])dnl