automake
[Top][All Lists]
Advanced

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

Re: Plan: Wednesday


From: Akim Demaille
Subject: Re: Plan: Wednesday
Date: 22 Aug 2001 11:52:26 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Artificial Intelligence)

>>>>> "Robert" == Robert Collins <address@hidden> writes:

>>>>> "Tom" == Tom Tromey <address@hidden> writes:

Tom> I haven't seen anything really bad recently.  I've got one more
Tom> update for the manual (see PR 220).  So I'm planning to release
Tom> 1.5 on or just after Wednesday, barring any reasons to the
Tom> contrary.

Robert> Speaking of PR 220, I came up with an idea... I don't know how
Robert> pratical it is...

Robert> for every AM_CONDITIONAL seen in configure.in|ac, insert an
Robert> automatic AM_CONDITIONAL(foo,false) in configure, up where the
Robert> AM_INIT macro was called.

Robert> I do realise that it's a user idiocy problem and thus
Robert> workarounds may not be appropriate.

My proposal would be (beware, hacky Autoconfery ahead)...

AC_DEFUN([AM_CONDITIONAL],
[ifelse([$1], [TRUE],
        [errprint(__file__:__line__: [$0: invalid condition: $1
])dnl
m4exit(1)])dnl
ifelse([$1], [FALSE],
       [errprint(__file__:__line__: [$0: invalid condition: $1
])dnl
m4exit(1)])dnl


AC_DEFINE([AM_CONDITIONAL_$1],
[AC_SUBST([$1_TRUE])
AC_SUBST([$1_FALSE])
if $2; then
  $1_TRUE=
  $1_FALSE='#'
else
  $1_TRUE='#'
  $1_FALSE=
fi
])
AC_REQUIRE([AM_CONDITIONAL_$1])
])


untested.



reply via email to

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