Received: from eggs.gnu.org ([140.186.70.92]:49335) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RODIB-0001ll-0p for qemu-devel@nongnu.org; Wed, 09 Nov 2011 13:54:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RODIA-0007Q8-8C for qemu-devel@nongnu.org; Wed, 09 Nov 2011 13:54:34 -0500 Received: from mail-bw0-f45.google.com ([209.85.214.45]:59211) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RODI9-0007Pq-UE for qemu-devel@nongnu.org; Wed, 09 Nov 2011 13:54:34 -0500 Received: by bkbzu5 with SMTP id zu5so1884215bkb.4 for ; Wed, 09 Nov 2011 10:54:32 -0800 (PST) From: Pavel Borzenkov Date: Wed, 9 Nov 2011 22:54:14 +0400 Message-Id: <1320864854-19470-1-git-send-email-pavel.borzenkov@gmail.com> Subject: [Qemu-devel] [PATCH 1.0] configure: add '--disable-cocoa' switch List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: andreas.faerber@web.de 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 | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/configure b/configure index 9e5da44..ba3a830 100755 --- a/configure +++ b/configure @@ -669,6 +669,8 @@ for opt do ;; --enable-profiler) profiler="yes" ;; + --disable-cocoa) cocoa="no" + ;; --enable-cocoa) cocoa="yes" ; sdl="no" ; @@ -979,7 +981,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" +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]" @@ -1424,10 +1429,6 @@ EOF if compile_prog "$sdl_cflags" "$sdl_libs" ; then if test "$_sdlversion" -lt 121 ; then sdl_too_old=yes - else - if test "$cocoa" = "no" ; then - sdl=yes - fi fi # static link with sdl ? (note: sdl.pc's --static --libs is broken) -- 1.7.5.4