autoconf-patches
[Top][All Lists]
Advanced

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

Re: Initial draft patch: AS_EXECUTABLE_P


From: Lars J. Aas
Subject: Re: Initial draft patch: AS_EXECUTABLE_P
Date: Tue, 23 Jan 2001 19:03:28 +0100
User-agent: Mutt/1.2.5i

On Tue, Jan 23, 2001 at 12:55:10PM -0500, Pavel Roskin wrote:
: On Mon, 22 Jan 2001, Tim Van Holder wrote:
: >     * m4sh.m4 (AS_EXECUTABLE_P, _AS_TEST_PREPARE):
: >     New macros.
: 
: AS_EXECUTABLE_P should provably be named AS_OS_EXECUTABLE. This is one of
: the few cases when Autoconf is dealing with the OS, not with the
: libraries. Another case would be the maximal length of the arguments.
: 
: Besides, why that "_P" on the end? My first guess was "profiling" as in
: libc_p.a.

That was yesterday's topic - _P to mark "predicate" macros that "returns"
boolean values.  Predicate macros should be guaranteed to work in cases
like the following:

MACRO_P(args) && ANOTHER_P(args) && mail -s "make $$$s" < spam.txt

while PREDICATE_P(); do
  echo "Hello World"
done

if MACRO_P; then
  exit 1
fi

  Lars J



reply via email to

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