From: Paolo Bonzini <pbonzini@redhat.com>
To: Stefan Hajnoczi <stefanha@gmail.com>
Cc: "Andreas Färber" <andreas.faerber@web.de>,
"qemu-devel Developers" <qemu-devel@nongnu.org>,
"Stefan Hajnoczi" <stefanha@linux.vnet.ibm.com>
Subject: Re: [Qemu-devel] [PATCH] make trace options use autoconfy names
Date: Mon, 15 Nov 2010 16:48:47 +0100 [thread overview]
Message-ID: <4CE1565F.9070105@redhat.com> (raw)
In-Reply-To: <AANLkTi=t+LoLxuRrEUYQzPpdrXO9pDPKTOt+8B49q-g0@mail.gmail.com>
On 11/15/2010 03:17 PM, Stefan Hajnoczi wrote:
> On Sun, Nov 14, 2010 at 1:52 PM, Paolo Bonzini<pbonzini@redhat.com> wrote:
>> On 11/14/2010 02:38 PM, Andreas Färber wrote:
>>>>
>>>> - --trace-file=*) trace_file="$optarg"
>>>> + --enable-trace-file=*) trace_file="$optarg"
>>>> ;;
>>>
>>> but this should be --with-trace-file=... please. It is not being
>>> enabled, just set to a different value.
>>
>> --with-* should be reserved for library paths, but I can change it if people
>> prefer it that way.
>
> Actually I think we have something similar to overriding --prefix here
> :). It's a path that you can set at ./configure time.
Yeah, that's true. However...
> So is it not okay to use --trace-file=<filename>?
... Autoconf would not allow unknown options not starting with --enable-
or --with-.
The rationale to avoid incompatible options in QEMU is this: suppose you
have a project using Autoconf (e.g. GCC) and you want to drop QEMU as a
subdirectory in there, e.g. to run the GCC testsuite under QEMU usermode
emulation (GCC can already do this for other simulators). To pass
options to QEMU's configure, you can include them in GCC's commandline.
The script will simply pass the option down to QEMU and it will be
processed there. However, if you pass --trace-file to GCC's configure
script, it will complain and stop.
Probably I would use something like --enable-trace-backend=simple:trace-
if I was adding something similar to an autoconfiscated project. But
unless it provides some additional benefit (as is the case with
cross-compilation support) I want to keep the syntactic changes in my
patches to the minimum.
> But I know nothing of autoconf and --enable-* or --with-* sort of
> make sense too.
Whatever, I have to repost the other series anyway, so I'll change to
--with-.
Paolo
next prev parent reply other threads:[~2010-11-15 15:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-14 11:50 [Qemu-devel] [PATCH] make trace options use autoconfy names Paolo Bonzini
2010-11-14 13:38 ` Andreas Färber
2010-11-14 13:52 ` Paolo Bonzini
2010-11-15 14:17 ` Stefan Hajnoczi
2010-11-15 15:48 ` Paolo Bonzini [this message]
2010-11-15 19:50 ` Andreas Färber
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=4CE1565F.9070105@redhat.com \
--to=pbonzini@redhat.com \
--cc=andreas.faerber@web.de \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@gmail.com \
--cc=stefanha@linux.vnet.ibm.com \
/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.