From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ld8y2-0005tQ-EW for qemu-devel@nongnu.org; Fri, 27 Feb 2009 15:05:54 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ld8y1-0005sU-I7 for qemu-devel@nongnu.org; Fri, 27 Feb 2009 15:05:53 -0500 Received: from [199.232.76.173] (port=37686 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ld8y1-0005sJ-9D for qemu-devel@nongnu.org; Fri, 27 Feb 2009 15:05:53 -0500 Received: from e7.ny.us.ibm.com ([32.97.182.137]:41798) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ld8y0-00084d-PD for qemu-devel@nongnu.org; Fri, 27 Feb 2009 15:05:52 -0500 Received: from d01relay02.pok.ibm.com (d01relay02.pok.ibm.com [9.56.227.234]) by e7.ny.us.ibm.com (8.13.1/8.13.1) with ESMTP id n1RJvSSQ029848 for ; Fri, 27 Feb 2009 14:57:28 -0500 Received: from d01av02.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216]) by d01relay02.pok.ibm.com (8.13.8/8.13.8/NCO v9.2) with ESMTP id n1RK5pCo184092 for ; Fri, 27 Feb 2009 15:05:51 -0500 Received: from d01av02.pok.ibm.com (loopback [127.0.0.1]) by d01av02.pok.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n1RK4ajM027340 for ; Fri, 27 Feb 2009 15:04:36 -0500 Received: from squirrel.codemonkey.ws (sig-9-65-0-122.mts.ibm.com [9.65.0.122]) by d01av02.pok.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id n1RK4URE026748 for ; Fri, 27 Feb 2009 15:04:32 -0500 Message-ID: <49A84798.6020903@us.ibm.com> Date: Fri, 27 Feb 2009 14:05:44 -0600 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [Patch] add configure --disable-cocoa References: <20090204094249.GA16436@ulanbator.act-europe.fr> In-Reply-To: <20090204094249.GA16436@ulanbator.act-europe.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Tristan Gingold wrote: > Hi, > > currently qemu cannot be compiled on darwin without cocoa. > However it is useful to compile qemu without graphic support if your emulated > board doesn't have any graphic adapter. This is possible on Linux using > --disable-gfx-check but not on darwin. > Applied. Thanks. Regards, Anthony Liguori > Tristan. > > Signed-off-by: Tristan Gingold > > --- a/configure > +++ b/configure > @@ -256,9 +256,7 @@ else > fi > darwin_user="yes" > cocoa="yes" > -audio_drv_list="coreaudio" > audio_possible_drivers="coreaudio sdl fmod" > -OS_LDFLAGS="-framework CoreFoundation -framework IOKit" > ;; > SunOS) > solaris="yes" > @@ -401,10 +399,9 @@ for opt do > ;; > --enable-profiler) profiler="yes" > ;; > - --enable-cocoa) > - cocoa="yes" ; > - sdl="no" ; > - audio_drv_list="coreaudio `echo $audio_drv_list | sed s,coreaudio,,g`" > + --enable-cocoa) cocoa="yes" > + ;; > + --disable-cocoa) cocoa="no" > ;; > --disable-gfx-check) check_gfx="no" > ;; > @@ -537,6 +534,7 @@ echo " --disable-sparse disable sparse checker (default)" > echo " --disable-werror disable compilation abort on warning" > echo " --disable-sdl disable SDL" > echo " --enable-cocoa enable COCOA (Mac OS X only)" > +echo " --disable-cocoa disable COCOA (default)" > 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]" > @@ -806,6 +804,17 @@ else > fi # -z $sdl > > ########################################## > +# MacOSX > +if test "$cocoa" = "yes" ; then > + sdl="no" > + audio_drv_list="coreaudio `echo $audio_drv_list | sed s,coreaudio,,g`" > +fi > +if test "$cocoa" = "yes" || > + echo "$audio_drv_list" | grep -q coreaudio ; then > + OS_LDFLAGS="-framework CoreFoundation -framework IOKit" > +fi > + > +########################################## > # VNC TLS detection > if test "$vnc_tls" = "yes" ; then > cat > $TMPC < > > > >