From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MbGkV-0008Fm-4D for qemu-devel@nongnu.org; Wed, 12 Aug 2009 12:32:27 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MbGkN-00082F-RU for qemu-devel@nongnu.org; Wed, 12 Aug 2009 12:32:24 -0400 Received: from [199.232.76.173] (port=39168 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MbGkN-000820-Bf for qemu-devel@nongnu.org; Wed, 12 Aug 2009 12:32:19 -0400 Received: from mx2.redhat.com ([66.187.237.31]:55720) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MbGkM-0004Kt-LV for qemu-devel@nongnu.org; Wed, 12 Aug 2009 12:32:18 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n7CGWInM018346 for ; Wed, 12 Aug 2009 12:32:18 -0400 From: Juan Quintela Date: Wed, 12 Aug 2009 18:29:57 +0200 Message-Id: <140c8ca76d87ba7002bd2e5e7b83fd4aaa6ac522.1250093910.git.quintela@redhat.com> In-Reply-To: <71025e96da7eb85957e11d9cf4530c1ee81577d5.1250093910.git.quintela@redhat.com> References: <71025e96da7eb85957e11d9cf4530c1ee81577d5.1250093910.git.quintela@redhat.com> In-Reply-To: References: Subject: [Qemu-devel] [PATCH 20/20] Add sparse to new feature convention List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Once there, move to a proper test to see if we are going to use it or not Signed-off-by: Juan Quintela --- configure | 19 ++++++++++++++----- 1 files changed, 14 insertions(+), 5 deletions(-) diff --git a/configure b/configure index 009ecef..3dab9ac 100755 --- a/configure +++ b/configure @@ -189,6 +189,7 @@ kvm="" nptl="" pthread="" sdl="" +sparse="no" vde="" vnc_tls="" vnc_sasl="" @@ -197,7 +198,6 @@ xen="" gprof="no" debug_tcg="no" debug="no" -sparse="no" strip_opt="yes" bigendian="no" mingw32="no" @@ -711,10 +711,6 @@ echo "NOTE: The object files are built at the place where configure is launched" exit 1 fi -if test ! -x "$(which cgcc 2>/dev/null)"; then - sparse="no" -fi - # # Solaris specific configure tool chain decisions # @@ -922,6 +918,19 @@ EOF fi ########################################## +# Sparse probe +if test "$sparse" != "no" ; then + if test -x "$(which cgcc 2>/dev/null)"; then + sparse=yes + else + if test "$sparse" = "yes" ; then + feature_not_found "sparse" + fi + sparse=no + fi +fi + +########################################## # SDL probe sdl_too_old=no -- 1.6.2.5