From patchwork Thu Nov 12 16:29:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Snow X-Patchwork-Id: 543439 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 2381D141488 for ; Fri, 13 Nov 2015 03:30:37 +1100 (AEDT) Received: from localhost ([::1]:47770 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zwule-0007q3-8J for incoming@patchwork.ozlabs.org; Thu, 12 Nov 2015 11:30:34 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55977) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zwul2-0006j6-Q7 for qemu-devel@nongnu.org; Thu, 12 Nov 2015 11:29:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zwukx-0006QK-SP for qemu-devel@nongnu.org; Thu, 12 Nov 2015 11:29:56 -0500 Received: from mx1.redhat.com ([209.132.183.28]:46643) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zwukx-0006Q8-OG for qemu-devel@nongnu.org; Thu, 12 Nov 2015 11:29:51 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id 6BEE4A074E; Thu, 12 Nov 2015 16:29:51 +0000 (UTC) Received: from scv.usersys.redhat.com (vpn-56-36.rdu2.redhat.com [10.10.56.36]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id tACGTo6o026080; Thu, 12 Nov 2015 11:29:50 -0500 From: John Snow To: qemu-devel@nongnu.org Date: Thu, 12 Nov 2015 11:29:49 -0500 Message-Id: <1447345789-840-1-git-send-email-jsnow@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: lvivier@redhat.com, peter.maydell@linaro.org, John Snow Subject: [Qemu-devel] [PATCH] configure: check for $cxx before use 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 I broke this when adding checks for clang++. Reported-by: Laurent Vivier Signed-off-by: John Snow Reviewed-by: Peter Maydell --- configure | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 46fd8bd..f75df4b 100755 --- a/configure +++ b/configure @@ -4435,7 +4435,8 @@ fi if test "$fortify_source" != "no"; then if echo | $cc -dM -E - | grep __clang__ > /dev/null 2>&1 ; then fortify_source="no"; - elif echo | $cxx -dM -E - | grep __clang__ > /dev/null 2>&1 ; then + elif test -n "$cxx" && + echo | $cxx -dM -E - | grep __clang__ >/dev/null 2>&1 ; then fortify_source="no"; else fortify_source="yes"