[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: test in a m4 macro and variable created from pushdef
From: |
Eric Blake |
Subject: |
Re: test in a m4 macro and variable created from pushdef |
Date: |
Thu, 09 Aug 2007 20:57:17 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Vincent Torri on 8/9/2007 12:11 PM:
>
> I have another problem, which is similar. The problem is the result of
> AM_CONDITIONAL. Here is my macro:
>
> AM_CONDITIONAL(BUILD_DRIVER_[]UP, test "x${use_]DOWN[}" = "xyes")
Follow the quoting rule of thumb - if you don't want things expanded
immediately, then use one level of [] per () to protect the argument
collection scan, thereafter, use nested quotes to control how the
expansion is parsed. You want to make sure that UP and DOWN are
independent tokens after the AM_CONDITIONAL is expanded, so this pattern
should do it:
AM_CONDITIONAL([BUILD_DRIVER_[]UP, test "x${use_[]DOWN}" = "xyes"])
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGu9QN84KuGfSFAYARAqlEAJ9Wc5R+ZSUxktsKvgZjNa9xTfn+/QCgq+Un
gzuaHXNuufVMAfVtl+JKu58=
=Z27p
-----END PGP SIGNATURE-----
- test in a m4 macro and variable created from pushdef, Vincent Torri, 2007/08/08
- Re: test in a m4 macro and variable created from pushdef, Andreas Schwab, 2007/08/08
- Re: test in a m4 macro and variable created from pushdef, Vincent Torri, 2007/08/09
- Re: test in a m4 macro and variable created from pushdef, Vincent Torri, 2007/08/09
- Re: test in a m4 macro and variable created from pushdef,
Eric Blake <=
- Re: test in a m4 macro and variable created from pushdef, Benoit SIGOURE, 2007/08/09
- Re: test in a m4 macro and variable created from pushdef, Eric Blake, 2007/08/09
- Re: test in a m4 macro and variable created from pushdef, Vincent Torri, 2007/08/10
- Re: test in a m4 macro and variable created from pushdef, Ralf Wildenhues, 2007/08/10
- Re: test in a m4 macro and variable created from pushdef, Vincent Torri, 2007/08/11
- Re: test in a m4 macro and variable created from pushdef, Vincent Torri, 2007/08/11
- Re: test in a m4 macro and variable created from pushdef, Keith Marshall, 2007/08/11
- Re: test in a m4 macro and variable created from pushdef, Vincent Torri, 2007/08/11
- Re: test in a m4 macro and variable created from pushdef, Ralf Wildenhues, 2007/08/15
- Re: test in a m4 macro and variable created from pushdef, Keith Marshall, 2007/08/15