On Mon, Feb 28, 2000 at 09:44:56PM +0100, Lars J. Aas wrote:
: I agree with the example above, but I don't know how to get rid of my
: changequotes unless there are any alternate methods to make strings with
: m4-invocations inside a couple of []s? What I'm thinking of specifically
: in my case is that I configure the text inside "[default=...]" in some
: AC_HELP_STRINGs. I'd happily remove the changequote stuff if I knew how.
: Using "(default=...)" breaks with the rest of the options listed with
: "configure --help".
I found a solution to my own problem, which only requires an additional m4
macro:
define([m4_noquote],[changequote(,)$1changequote([,])])
Then I can do this:
AC_DEFUN([SIM_AC_CHECK_COIN], [
dnl | This is really set based on the args in SIM_AC_CHECK_COIN invocation
dnl | from configure.in, but just to illustrate...
define([my_m4_coinpathdef],[/usr/local])
AC_ARG_WITH([coin],
AC_HELP_STRING([--with-coin=DIR],
m4_noquote([set path to coin [default=my_m4_coinpathdef]])),
[],
[with_coin=my_m4_coinpathdef])
configure --help will then display:
--with-coin=DIR set path to coin [default=/usr/local]
Any chance my little "m4_noquote"-macro will make it into autoconf?
Lars J
- Re: passing command-line switches to compiler Harlan Stenn
- Re: passing command-line switches to compiler Ian Lance Taylor
- Re: passing command-line switches to compiler Harlan Stenn
- Re: passing command-line switches to compiler Akim Demaille
- Re: passing command-line switches to compiler Harlan Stenn
- Re: passing command-line switches to compiler Ian Lance Taylor
- Re: passing command-line switches to compiler Akim Demaille
- Re: passing command-line switches to compiler Tom Tromey
- Re: passing command-line switches to compiler Akim Demaille
- Re: passing command-line switches to compiler Lars J. Aas
- Re: passing command-line switches to compiler Lars J. Aas
- Re: passing command-line switches to compiler Akim Demaille
- Re: passing command-line switches to compiler Akim Demaille
- Re: passing command-line switches to compiler Lars J. Aas
- Re: passing command-line switches to compiler Akim Demaille
- Re: passing command-line switches to compiler Lars J. Aas
- Re: passing command-line switches to compiler Akim Demaille
- Re: passing command-line switches to compiler Lars J. Aas
- Re: passing command-line switches to compiler Alexandre Oliva
- Re: passing command-line switches to compiler Akim Demaille
- Re: passing command-line switches to compiler Lars J. Aas
