From patchwork Wed May 28 10:39:17 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cornelia Huck X-Patchwork-Id: 353328 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 7A60E140082 for ; Wed, 28 May 2014 20:40:16 +1000 (EST) Received: from localhost ([::1]:40856 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WpbHK-0006IS-61 for incoming@patchwork.ozlabs.org; Wed, 28 May 2014 06:40:14 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46731) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WpbGi-0004mv-5h for qemu-devel@nongnu.org; Wed, 28 May 2014 06:39:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WpbGY-0002c2-Ad for qemu-devel@nongnu.org; Wed, 28 May 2014 06:39:36 -0400 Received: from e06smtp14.uk.ibm.com ([195.75.94.110]:60098) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WpbGY-0002bv-17 for qemu-devel@nongnu.org; Wed, 28 May 2014 06:39:26 -0400 Received: from /spool/local by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 28 May 2014 11:39:24 +0100 Received: from d06dlp03.portsmouth.uk.ibm.com (9.149.20.15) by e06smtp14.uk.ibm.com (192.168.101.144) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 28 May 2014 11:39:22 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id 4E21A1B0805F for ; Wed, 28 May 2014 11:39:42 +0100 (BST) Received: from d06av03.portsmouth.uk.ibm.com (d06av03.portsmouth.uk.ibm.com [9.149.37.213]) by b06cxnps4075.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s4SAdLBP1507716 for ; Wed, 28 May 2014 10:39:21 GMT Received: from d06av03.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av03.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s4SAdKvM014673 for ; Wed, 28 May 2014 04:39:21 -0600 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d06av03.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id s4SAdJRm014624; Wed, 28 May 2014 04:39:20 -0600 From: Cornelia Huck To: qemu-devel@nongnu.org Date: Wed, 28 May 2014 12:39:17 +0200 Message-Id: <1401273557-6578-2-git-send-email-cornelia.huck@de.ibm.com> X-Mailer: git-send-email 1.8.5.5 In-Reply-To: <1401273557-6578-1-git-send-email-cornelia.huck@de.ibm.com> References: <1401273557-6578-1-git-send-email-cornelia.huck@de.ibm.com> X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14052810-1948-0000-0000-000008F6C3F3 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 195.75.94.110 Cc: Cornelia Huck , Peter Maydell , Markus Armbruster Subject: [Qemu-devel] [PATCH v2 1/1] configure: unset interfering variables X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org The check for big or little endianness relies on grep reporting match/non-match on the generated binary. If the user specified --binary-files=without-match in their GREP_OPTIONS, this will fail. Let's follow what autoconf does and unset GREP_OPTIONS and CLICOLOR_FORCE at the beginning of the script. Reported-by: Eugene (jno) Dvurechenski Suggested-by: Markus Armbruster Signed-off-by: Cornelia Huck Reviewed-by: Eric Blake --- configure | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure b/configure index 0e516f9..525da56 100755 --- a/configure +++ b/configure @@ -3,6 +3,11 @@ # qemu configure script (c) 2003 Fabrice Bellard # +# Unset some variables known to interfere with behavior of common tools, +# just as autoconf does. +CLICOLOR_FORCE= GREP_OPTIONS= +unset CLICOLOR_FORCE GREP_OPTIONS + # Temporary directory used for files created while # configure runs. Since it is in the build directory # we can safely blow away any previous version of it