From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:53947) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rlrj9-00075a-Gb for qemu-devel@nongnu.org; Fri, 13 Jan 2012 19:44:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rlrj8-0003bF-G0 for qemu-devel@nongnu.org; Fri, 13 Jan 2012 19:44:11 -0500 Received: from mout.web.de ([212.227.15.3]:60053) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rlrj8-0003bA-4N for qemu-devel@nongnu.org; Fri, 13 Jan 2012 19:44:10 -0500 Message-ID: <4F10CF6B.20008@web.de> Date: Sat, 14 Jan 2012 01:42:19 +0100 From: =?ISO-8859-15?Q?Andreas_F=E4rber?= MIME-Version: 1.0 References: <1320950407-43512-1-git-send-email-pavel.borzenkov@gmail.com> <1320950407-43512-4-git-send-email-pavel.borzenkov@gmail.com> <4EE007C5.4060109@web.de> In-Reply-To: <4EE007C5.4060109@web.de> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH 3/3] configure: add '--disable-cocoa' switch List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andrzej Zaborowski , Anthony Liguori Cc: Rui Carmo , Ben Leslie , qemu-devel@nongnu.org, Pavel Borzenkov 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 >> --- >> 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 > >> @@ -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. Andreas