qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Andreas Färber" <andreas.faerber@web.de>
To: Andrzej Zaborowski <andrew.zaborowski@intel.com>
Cc: Rui Carmo <rui.carmo@gmail.com>,
	Pavel Borzenkov <pavel.borzenkov@gmail.com>,
	Ben Leslie <benno@benno.id.au>,
	qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 3/3] configure: add '--disable-cocoa' switch
Date: Tue, 17 Jan 2012 12:06:14 +0100	[thread overview]
Message-ID: <4F155626.8050200@web.de> (raw)
In-Reply-To: <CAOq732Jk6_Juf2ceW4FhJPvVKsia8ZzcKU1+21qSuywdODsGrQ@mail.gmail.com>

Am 17.01.2012 00:46, schrieb Andrzej Zaborowski:
> On 14 January 2012 01:42, Andreas Färber <andreas.faerber@web.de> wrote:
>> Am 08.12.2011 01:41, schrieb Andreas Färber:
>>> Am 10.11.2011 19:40, schrieb Pavel Borzenkov:
>>>> When SDL support is disabled, there is no way to build QEMU without
>>>> Cocoa support on MacOS X. This patch adds '--disable-cocoa' switch and
>>>> allows to build QEMU without both SDL and Cocoa frontends.
>>>>
>>>> Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
>>>> ---
>>>>  configure |    7 ++++++-
>>>>  1 files changed, 6 insertions(+), 1 deletions(-)
>>>>
>>>> diff --git a/configure b/configure
>>>> index 401d9a6..4720bb2 100755
>>>> --- a/configure
>>>> +++ b/configure
>>>> @@ -670,6 +670,8 @@ for opt do
>>>>    ;;
>>>>    --enable-profiler) profiler="yes"
>>>>    ;;
>>>> +  --disable-cocoa) cocoa="no"
>>>> +  ;;
>>>>    --enable-cocoa)
>>>>        cocoa="yes" ;
>>>>        sdl="no" ;
>>>
>>> Tested-by: Andreas Färber <andreas.faerber@web.de>
>>>
>>>> @@ -980,7 +982,10 @@ echo "  --disable-sdl            disable SDL"
>>>>  echo "  --enable-sdl             enable SDL"
>>>>  echo "  --disable-vnc            disable VNC"
>>>>  echo "  --enable-vnc             enable VNC"
>>>> -echo "  --enable-cocoa           enable COCOA (Mac OS X only)"
>>>> +if test "$darwin" = "yes" ; then
>>>> +    echo "  --disable-cocoa          disable COCOA"
>>>> +    echo "  --enable-cocoa           enable COCOA (default)"
>>>> +fi
>>>>  echo "  --audio-drv-list=LIST    set audio drivers list:"
>>>>  echo "                           Available drivers: $audio_possible_drivers"
>>>>  echo "  --audio-card-list=LIST   set list of emulated audio cards [$audio_card_list]"
>>>
>>> I see no prior art of any conditional help output in configure. Anthony?
>>> Andrzej?
>>
>> Ping? Should we keep command line options a flat list with comments on
>> applicability or start introducing tests like above?
>>
>> Me, I'd prefer not doing this since the switch cases above don't check.
> 
> Perhaps --diable-cocoa should be allowed on any platform.  You're
> right we don't have such checks now, but then it's hard to see
> downsides of doing them, so I'm quite ambivalent.
> 
> I still don't see the purpose of the following test in configure though:
>       if test "$cocoa" = "no" ; then
>         sdl=yes
>       fi

The reason is that SDL and Cocoa must not both be detected due to the
way it is handled in vl.c. Given that Cocoa is enabled by default, SDL
must not be detected in that case. If Cocoa is disabled, then detecting
SDL is fine of course.

The alternative would be to check for SDL and, if present, disable
Cocoa. Still collides with Pavel's patch though - we need to sort out
how to merge them.

> With it in place and no --disable-cocoa there's no way to compile SDL.

>  --enable-cocoa is also broken as fas as I can tell.

I've been using it for historic reasons without noticeable problems.

Andreas

  reply	other threads:[~2012-01-17 11:08 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-10 18:40 [Qemu-devel] [PATCH 0/3] Make GUI frontends optional on Mac OS X Pavel Borzenkov
2011-11-10 18:40 ` [Qemu-devel] [PATCH 1/3] raw-posix: Remove dead code Pavel Borzenkov
2011-12-14 12:03   ` Andreas Färber
2011-11-10 18:40 ` [Qemu-devel] [PATCH 2/3] raw-posix: Do not use CONFIG_COCOA macro Pavel Borzenkov
2011-11-30  0:38   ` Andreas Färber
2011-12-08  0:12     ` Andreas Färber
2011-11-10 18:40 ` [Qemu-devel] [PATCH 3/3] configure: add '--disable-cocoa' switch Pavel Borzenkov
2011-12-08  0:41   ` Andreas Färber
2012-01-14  0:42     ` Andreas Färber
2012-01-16 23:46       ` Andrzej Zaborowski
2012-01-17 11:06         ` Andreas Färber [this message]
2012-01-17 14:23           ` Andrzej Zaborowski
2012-01-17 14:46         ` Peter Maydell

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=4F155626.8050200@web.de \
    --to=andreas.faerber@web.de \
    --cc=andrew.zaborowski@intel.com \
    --cc=benno@benno.id.au \
    --cc=pavel.borzenkov@gmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=rui.carmo@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).