From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44396) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuF3A-0007AJ-7Z for qemu-devel@nongnu.org; Tue, 10 Jun 2014 01:56:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WuF30-0004YL-AO for qemu-devel@nongnu.org; Tue, 10 Jun 2014 01:56:48 -0400 Received: from mail-wi0-x233.google.com ([2a00:1450:400c:c05::233]:57582) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuF30-0004YE-4E for qemu-devel@nongnu.org; Tue, 10 Jun 2014 01:56:38 -0400 Received: by mail-wi0-f179.google.com with SMTP id cc10so1042836wib.12 for ; Mon, 09 Jun 2014 22:56:37 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Tue, 10 Jun 2014 07:56:21 +0200 Message-Id: <1402379781-844-9-git-send-email-pbonzini@redhat.com> In-Reply-To: <1402379781-844-1-git-send-email-pbonzini@redhat.com> References: <1402379781-844-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PULL 8/8] configure: unset interfering variables List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Cornelia Huck From: Cornelia Huck 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 Signed-off-by: Paolo Bonzini --- configure | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure b/configure index 96f91ad..b93cce8 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 -- 1.8.3.1