emacs-devel
[Top][All Lists]
Advanced

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

Re: RFC: status icon support


From: Tom Tromey
Subject: Re: RFC: status icon support
Date: Sun, 13 Jan 2008 18:35:17 -0700
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.990 (gnu/linux)

rms> Would someone please add comments explaining the meaning of
rms> EMACS_ARG_Y and EMACS_ARG_N?  I cannot understand their definitions,
rms> and I am not sure what they do.

Here's my understanding of them:

dnl EMACS_ARG_Y(NAME, HELP-STRING, [IF-GIVEN], [IF-NOT-GIVEN])
dnl Define a new --with option which is disabled by default.
dnl NAME is the base name of the option.
dnl HELP-STRING is the help text for the option.  It should not include
dnl    the option name; this macro provides that to AS_HELP_STRING.
dnl IF-GIVEN and IF-NOT-GIVEN are the same as for AC_ARG_WITH.
AC_DEFUN([EMACS_ARG_Y],[dnl
AC_ARG_WITH([$1],[AS_HELP_STRING([--with-$1],[$2])],[$3],[$4])dnl
])dnl
dnl EMACS_ARG_N(NAME, HELP-STRING, [IF-YES], [IF-NO])
dnl Define a new --with option which is enabled by default.
dnl Arguments are the same as EMACS_ARG_Y.
AC_DEFUN([EMACS_ARG_N],[dnl
AC_ARG_WITH([$1],[AS_HELP_STRING([--without-$1],[$2])],[$3],[$4])dnl
])dnl


Tom




reply via email to

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