[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AC_HELP_STRING and quotes
From: |
Alexandre Duret-Lutz |
Subject: |
AC_HELP_STRING and quotes |
Date: |
16 Feb 2001 10:10:23 +0100 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
Hi!
>>> "Pavel" == Pavel Roskin <address@hidden> writes:
[...]
Pavel> # m4_unquote(STRING)
Pavel> # ------------------
Pavel> # Remove one pair of the quotes if they exist
[...]
This just recall me of a place where I would like quotes not
to be removed...
I'd like to use AC_HELP_STRING to construct lines like
--enable-foobar[=DIR] short description here
^ ^
Unfortunately, it appears there are no ways to obtain this
(except not using AC_HELP_STRING).
AC_ARG_ENABLE([foobar],
[AC_HELP_STRING([--enable-foobar[=DIR]], [short description here])])
would produce
Optional Features:
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-foobar=DIR short description here
other forms of quoting are even worst
AC_ARG_ENABLE([foobar],
[AC_HELP_STRING([--enable-foobar[[=DIR]]], [short description here])])
AC_ARG_ENABLE([foobar],
[AC_HELP_STRING([[--enable-foobar[=DIR]]], [short description here])])
AC_ARG_ENABLE([foobar],
[AC_HELP_STRING([--enable-foobar@<:@=DIR@:>@], [short description here])])
gives this:
Optional Features:
--disable-FEATURE do not include FEATURE (same as--enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-foobar=DIR short description here
--enable-foobar=DIR short description here
--enable-foobar[=DIR]
short description here
Any idea? (of course I need to use AC_HELP_STRING or something
similar, because I call AC_ARG_ENABLE in a function where the
name `foobar' is unknown, i.e., it is an argument).
--
Alexandre Duret-Lutz
- m4_unquote, Pavel Roskin, 2001/02/15
- AC_HELP_STRING and quotes,
Alexandre Duret-Lutz <=
- Re: m4_unquote, Akim Demaille, 2001/02/19