From nobody Sat May 18 20:15:23 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1586258237; cv=none; d=zohomail.com; s=zohoarc; b=BejH7snsov2Z9XGyWgfeQMeMntHiI36sCz6HSU7UcESOvhQoDWdV2m172weHDtSTm1u7YN/jjnBvpQkQfaWBuAdoxwCXWPPatSEuPqhMnLuGR1QDKhUCvhRnLO6JIwZ/5oFv7lTr1xo31sW4tg8DJmmcF/E9emLY082K0aFQtl8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1586258237; h=Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:Sender:Subject:To; bh=qkUdsmpozJMyvz06/JqoT3QnD2rqPZepsrlyDvmx3fQ=; b=JAPqh/mGz7VIKbHmuwVH2Kzc+p9YAjb7V/tvzAhNgPeDQCyr/ZOU0XxE3Ne4cvyIkaulxVb0arv1iZba5Z/i7xZuG+kthrxmm+cUkl4JvTmUwnkGLWU8iCALF3JtRvroxRH/u+qgTsAhNZ2L/SZC6SApgVCZxnYJYNg+a0YF1J4= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1586258237328965.2127284891624; Tue, 7 Apr 2020 04:17:17 -0700 (PDT) Received: from localhost ([::1]:45404 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jLmEF-0001Yz-UP for importer@patchew.org; Tue, 07 Apr 2020 07:17:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50202) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jLmDX-0000io-Up for qemu-devel@nongnu.org; Tue, 07 Apr 2020 07:16:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jLmDQ-0001J5-61 for qemu-devel@nongnu.org; Tue, 07 Apr 2020 07:16:31 -0400 Received: from mx2.suse.de ([195.135.220.15]:43916) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jLmDQ-0001I3-0L for qemu-devel@nongnu.org; Tue, 07 Apr 2020 07:16:24 -0400 Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id B4B60AC62; Tue, 7 Apr 2020 11:16:20 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de From: Claudio Fontana To: Laurent Vivier Subject: [PATCH] configure: check for bison, flex before dtc submodule build Date: Tue, 7 Apr 2020 13:16:18 +0200 Message-Id: <20200407111618.17241-1-cfontana@suse.de> X-Mailer: git-send-email 2.16.4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 195.135.220.15 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Alex Bennee , Claudio Fontana , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" if fdt is required, and the system DTC (libfdt) is not usable, check for the dtc submodule requirements before trying to build it, and error out with a helpful message in case the dependencies are not met. Signed-off-by: Claudio Fontana --- configure | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configure b/configure index 22870f3867..68b95b8e94 100755 --- a/configure +++ b/configure @@ -4276,6 +4276,14 @@ EOF git_submodules=3D"${git_submodules} dtc" fi if test -d "${source_path}/dtc/libfdt" || test -e "${source_path}/.g= it" ; then + for binary in ${BISON:-bison} ${LEX:-flex} ; do + if ! has $binary ; then + error_exit "DTC (libfdt) version >=3D 1.4.2 not present = on the system,\n" \ + "and using the dtc submodule replacement requ= ires '${binary}'.\n" \ + "Please install the DTC (libfdt) devel packag= e,\n" \ + "or the required binary '${binary}' to use th= e dtc submodule instead.\n" + fi + done fdt=3Dgit mkdir -p dtc if [ "$pwd_is_source_path" !=3D "y" ] ; then --=20 2.16.4