From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N5J9M-0001ER-Of for qemu-devel@nongnu.org; Tue, 03 Nov 2009 08:10:16 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N5J9L-0001E4-5x for qemu-devel@nongnu.org; Tue, 03 Nov 2009 08:10:15 -0500 Received: from [199.232.76.173] (port=34668 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N5J9L-0001E1-1m for qemu-devel@nongnu.org; Tue, 03 Nov 2009 08:10:15 -0500 Received: from narury.org ([84.20.150.76]:37311) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N5J9K-0003gV-5I for qemu-devel@nongnu.org; Tue, 03 Nov 2009 08:10:14 -0500 Date: Tue, 3 Nov 2009 15:10:00 +0200 From: Riku Voipio Subject: Re: [Qemu-devel] [PATCH] Cleanup configure checks for dup3 and fallocate Message-ID: <20091103131000.GA10602@kos.to> References: <4AEFFDE4.2090006@siemens.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4AEFFDE4.2090006@siemens.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: qemu-devel On Tue, Nov 03, 2009 at 10:54:44AM +0100, Jan Kiszka wrote: > We have a function for this which does not issue annoying warnings. Acked-by: Riku Voipio > Signed-off-by: Jan Kiszka > --- > > configure | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/configure b/configure > index aa2cc43..b38353a 100755 > --- a/configure > +++ b/configure > @@ -1580,7 +1580,7 @@ int main(void) > return 0; > } > EOF > -if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null ; then > +if compile_prog "" "" ; then > fallocate=yes > fi > > @@ -1595,7 +1595,7 @@ int main(void) > return 0; > } > EOF > -if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null ; then > +if compile_prog "" "" ; then > dup3=yes > fi > >