From: Ian Campbell <Ian.Campbell@citrix.com>
To: Olaf Hering <olaf@aepfle.de>
Cc: Wei Liu <wei.liu2@citrix.com>,
Ian Jackson <ian.jackson@eu.citrix.com>,
Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
xen-devel@lists.xen.org
Subject: Re: [PATCH for-xen-4.5] Add configure --with-extra-cflags-*
Date: Mon, 20 Oct 2014 13:39:37 +0100 [thread overview]
Message-ID: <1413808777.4087.14.camel@citrix.com> (raw)
In-Reply-To: <20141010065557.GA24574@aepfle.de>
On Fri, 2014-10-10 at 08:55 +0200, Olaf Hering wrote:
> On Thu, Oct 09, Olaf Hering wrote:
>
> > +AC_ARG_WITH([extra-cflags-tools],
> > + AS_HELP_STRING([--with-extra-cflags-tools="EXTRA_CFLAGS"],
> > + [Additional CFLAGS to be used to build tools.]),
> > + [EXTRA_CFLAGS_XEN_TOOLS=$withval],
> > + [EXTRA_CFLAGS_XEN_TOOLS=])
> > +AC_SUBST(EXTRA_CFLAGS_XEN_TOOLS)
>
> I wonder why all the other --with-foo are not done that way as well. It
> looks like they would take the variable from the environment and do
> AC_SUBST(). IMO private variables like seabios_path, ovmf_path,
> EXTRA_QEMUU_CONFIGURE_ARGS should not be passed via environment.
It looks to me like seabios_path isn't, so I'm confused about what you
are trying to suggest:
AC_ARG_WITH([system-seabios],
AS_HELP_STRING([--with-system-seabios@<:@=PATH@:>@],
[Use system supplied seabios PATH instead of building and installing
our own version]),[
case $withval in
no) seabios_path= ;;
*) seabios_path=$withval ;;
esac
],[])
AC_SUBST(seabios_path)
Doesn't take anything fro the env, does it?
> I also
> question if --with-foo=no is useful at all.
Isn't $withval=no the result of passing --without-foo?
> My suggestion is to convert
> these three to the style quoted above: a --with-foo=val assigns $val to
> the given private variable, otherwise the private variable is
> initialized empty.
>
> What do you think?
I have no real opinion one way or the other, since I'm not really sure
what the practical implication of what you are suggesting is.
But it certainly doesn't sound like 4.5 material at this point.
Ian.
next prev parent reply other threads:[~2014-10-20 12:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-09 9:43 [PATCH for-xen-4.5] Add configure --with-extra-cflags-* Olaf Hering
2014-10-10 6:55 ` Olaf Hering
2014-10-20 12:39 ` Ian Campbell [this message]
2014-10-21 9:03 ` Olaf Hering
2014-10-20 12:40 ` Ian Campbell
2014-10-21 9:07 ` Olaf Hering
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1413808777.4087.14.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=olaf@aepfle.de \
--cc=stefano.stabellini@eu.citrix.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.