From patchwork Wed Jul 12 13:38:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Michael Tokarev X-Patchwork-Id: 107507 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp835241qge; Wed, 12 Jul 2017 06:48:02 -0700 (PDT) X-Received: by 10.55.180.197 with SMTP id d188mr6395368qkf.181.1499867282372; Wed, 12 Jul 2017 06:48:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499867282; cv=none; d=google.com; s=arc-20160816; b=c8bA2YqHA/6d1utGN/CA8z/kIGGB0L0vrOkkQTHk3t1ucWo/Bs2uX7/RCDDOBBHf4A Xk7IU/g3YJ3pCl5abDpuI2c9mP2MYvbxY8QGApGrF0/p18FFESqz8cnYVOCWx5j/ny4N 0q6BmyFS0WVabyw8U8fMGWLJm+G6m12ra8optMNWm4svg360P5FECzp5ushi63YgGQTW 4oQU3CxCQm6CT8Hr1Co+b9CGvtbh74mh7WifjFPwopVkd4cdk9HsRngykwqn04wtzmuI +HKlnKljYQmV7G+nt/Iz1FQg1ANbgObu7yY3o1F+LkEcc6VdDRs8Gn3LAjI1xW7alisi Q3Tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :references:in-reply-to:message-id:date:to:from :arc-authentication-results; bh=YVkIdLVpvz9mDfTIjV2R/tmL2y0mnJMWXBzt3kJZqS4=; b=lkXHE6sauDUuP6gybMhVymDrxdPvdOiF+qCVUdKk9liim2UsKnRkJQJva0MF0CldXI hxGRalkQWYHocmZ3ePeA53heACn84R6GD/jtgqN2IYNtS0D5QMCSemImd/zftfKsHURK XHf+dH3v46BOyMklaHZhTT/PdHxt4f1QJ5YPauyiCUpUMLqAB2XobHUd+XakiKhy6LsD MXfwFNgTvRD8SVixlRzN/6wGkQQIoBy4AFCSEDqhUNBExdMUlcmgANtwjtlaZmvlKKYV TudVrZqRjMo1YWWe3OC/3nZ4RL0hi9pFksbYjT4L5aCRDKs1Mc0NfhmanF6Cszg35/Xh TMyQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [208.118.235.17]) by mx.google.com with ESMTPS id h5si2321145qtf.378.2017.07.12.06.48.02 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 12 Jul 2017 06:48:02 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org Received: from localhost ([::1]:53204 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVHzk-0007ZI-0x for patch@linaro.org; Wed, 12 Jul 2017 09:48:00 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59293) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVHqN-0008UV-E9 for qemu-devel@nongnu.org; Wed, 12 Jul 2017 09:38:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVHqJ-0005KU-E9 for qemu-devel@nongnu.org; Wed, 12 Jul 2017 09:38:19 -0400 Received: from isrv.corpit.ru ([86.62.121.231]:38811) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVHqJ-0005Jo-6m; Wed, 12 Jul 2017 09:38:15 -0400 Received: from tsrv.tls.msk.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id 7E91F40F65; Wed, 12 Jul 2017 16:38:13 +0300 (MSK) Received: from tls.msk.ru (mjt.vpn.tls.msk.ru [192.168.177.99]) by tsrv.tls.msk.ru (Postfix) with SMTP id 06F09ACF; Wed, 12 Jul 2017 16:38:13 +0300 (MSK) Received: (nullmailer pid 29042 invoked by uid 1000); Wed, 12 Jul 2017 13:38:12 -0000 From: Michael Tokarev To: qemu-devel@nongnu.org Date: Wed, 12 Jul 2017 16:38:02 +0300 Message-Id: X-Mailer: git-send-email 2.11.0 In-Reply-To: References: In-Reply-To: References: MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 86.62.121.231 Subject: [Qemu-devel] [PULL 06/13] configure: Handle having no c++ compiler in FORTIFY_SOURCE check X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-trivial@nongnu.org, Peter Maydell , Michael Tokarev Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Peter Maydell Our FORTIFY_SOURCE check assumes that $cxx refers to a working C++ compiler, with the result that if you don't happen to have one then configure will spuriously print configure: line 4685: c++: command not found Fix this by adding a 'has $cxx' check. Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Michael Tokarev --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.11.0 diff --git a/configure b/configure index ce7e8aa842..08ef54103e 100755 --- a/configure +++ b/configure @@ -4771,7 +4771,7 @@ fi if test "$fortify_source" != "no"; then if echo | $cc -dM -E - | grep __clang__ > /dev/null 2>&1 ; then fortify_source="no"; - elif test -n "$cxx" && + elif test -n "$cxx" && has $cxx && echo | $cxx -dM -E - | grep __clang__ >/dev/null 2>&1 ; then fortify_source="no"; else