Received: from eggs.gnu.org ([2001:4830:134:3::10]:60098) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSIIV-0002ag-Qi for qemu-devel@nongnu.org; Wed, 27 Jul 2016 02:26:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bSIIS-00067J-Bs for qemu-devel@nongnu.org; Wed, 27 Jul 2016 02:26:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36586) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSIIS-000678-6I for qemu-devel@nongnu.org; Wed, 27 Jul 2016 02:26:24 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D33D6C030715 for ; Wed, 27 Jul 2016 06:26:23 +0000 (UTC) From: Fam Zheng Date: Wed, 27 Jul 2016 14:26:16 +0800 Message-Id: <1469600777-30413-3-git-send-email-famz@redhat.com> In-Reply-To: <1469600777-30413-1-git-send-email-famz@redhat.com> References: <1469600777-30413-1-git-send-email-famz@redhat.com> Subject: [Qemu-devel] [PATCH for 2.8 2/3] configure: Add CONFIG_SDL2 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Colin Lord , Gerd Hoffmann , Paolo Bonzini C code can test ABI version with this macro. Signed-off-by: Fam Zheng --- configure | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure b/configure index 879324b..e04e59f 100755 --- a/configure +++ b/configure @@ -5069,6 +5069,10 @@ if test "$sdl" = "yes" ; then echo "CONFIG_SDLABI=$sdlabi" >> $config_host_mak echo "SDL_CFLAGS=$sdl_cflags" >> $config_host_mak fi +if test "$sdlabi" = "2.0"; then + echo "CONFIG_SDL2=y" >> $config_host_mak +fi + if test "$cocoa" = "yes" ; then echo "CONFIG_COCOA=y" >> $config_host_mak fi -- 2.7.4