I've defined a macro (AC_DEFUN) with this "prototype":

SOME_TEST([ ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, ATTRIBUTE-LIST ]]])

In ATTRIBUTE-LIST, I can specify things like "nodefault" or "default" and
whichever features I want to add later.  

Inside SOME_TEST I use the AC_ARG_WITH(something, ...) macro.  

Depending on whether the SOME_TEST macro is used with the "nodefault"
attribute I want the "--help"-related string in AC_ARG_WITH (AC_HELP_STRING)
to be updated like this:

SOME_TEST()                => --with-something    some test [default=yes]
SOME_TEST( , , nodefault ) => --with-something    some test [default=no]

I've tried some stuff but without any luck...  What seems to be one of
my problems is that I need the ATTRIBUTE-LIST argument ($3) scanned at
autoconf "compile-time", and also have variable-substitution done at
the same time.  How would I go about doing something like that?

Cheers,

  Lars J

Reply via email to