From patchwork Tue Oct 4 15:21:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom de Vries X-Patchwork-Id: 1687 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp179456wrs; Tue, 4 Oct 2022 08:22:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6o/IoAakbLtaY5b0PqVPzMKQqUFwB9qMR+6bDj5m0hmGdNQgtZwBvOBIYo65B8UwPrzo+H X-Received: by 2002:a17:907:608f:b0:787:a1ae:1d3b with SMTP id ht15-20020a170907608f00b00787a1ae1d3bmr19428512ejc.431.1664896951671; Tue, 04 Oct 2022 08:22:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664896951; cv=none; d=google.com; s=arc-20160816; b=g85Ne8B1MTWsJ4RxoUdCuZNfp7HRirV238+1wXNcL/fNBlAUplPhsJgGeZCcRb44HD 5NW6FQoIPJuz/R7FKShm8A+Dd9EFtFCiKCN17TwlVEJoRNzLGEzlBK/KpTGg83dYWj8u P66CEuvU5s3VP5yHxthJgZZzv5lb9toHWcdNzR8erHctsuTXmWnkWsrTNH9h9NsH062C y5vmtc/u+rA4wOSy32ymDhxN4+lJOEUFF5bRPbsfjJKLDMFcfstIhhiunBf5Sf5y0JDH jUkpqzfZ3HU7zdfFjYM0nQ02WFhz7qtFvXzYSMNXLU9ALafTMib6oZg50g+IXagB94Di Bu3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:user-agent :content-disposition:mime-version:message-id:subject:to:date :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=RqG7drp7eUPHKCS6U/IvZ6sdVaBlEK1J1SfHcxLZHm8=; b=ljvyjeoz3bKczKq3B1AmGW+gRJ3xl1dPKGYFzogQ3f2hAnpURxrCF6EIGd9Yx/tkIn xZxI570wkCV67OnodV0igXn0OmyLMjLxDicHJs9XsNuCA0zxj/3NtlWtJNgHAlXsOXBD eQZw2IZIysw6NL3LaOBx82NjNDp+BtOEeqFtpp/vtP/gAPFZzPpqxYbl6vc1oVa+iJy+ uDMMxS6hO9RULD0R3jqFY69ZwicD767nGnAGyyMXAjY/PUkG+QauRC7ljmoBYMKRZpq+ HtLFoz7IfmfuO8DRLewEkHuz4NiJvzr5wYH+UhtJbqO+4JsjqB8igEIBJCAsJUZsN+fc kyTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=DiGeEtf7; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id y13-20020a056402270d00b00459788a358esi649505edd.546.2022.10.04.08.22.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 08:22:31 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=DiGeEtf7; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 526C438582BC for ; Tue, 4 Oct 2022 15:22:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 526C438582BC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664896945; bh=RqG7drp7eUPHKCS6U/IvZ6sdVaBlEK1J1SfHcxLZHm8=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=DiGeEtf7mZMqAaUTZ6V2xDqPXzuHk5BWyGOJ4bz7jXYX+Jf3WG/R5lt39iwncyGFQ eQSXy+x5b+EvYsnGoXbOfeC/dbpF2sB3HU2dEB6JPg3OOgFkhzSRNd8nWBsHM6HVtW 6JiiGSvw0d+Zj+7UkFPziDiy986F6gwBHQWD8QWY= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by sourceware.org (Postfix) with ESMTPS id 9D1143858CDA for ; Tue, 4 Oct 2022 15:21:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9D1143858CDA Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 54BCC1F945 for ; Tue, 4 Oct 2022 15:21:35 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 41EBD139EF for ; Tue, 4 Oct 2022 15:21:35 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 1+n5Dn9PPGODDwAAMHmgww (envelope-from ) for ; Tue, 04 Oct 2022 15:21:35 +0000 Date: Tue, 4 Oct 2022 17:21:33 +0200 To: gcc-patches@gcc.gnu.org Subject: [PATCH] Add --without-makeinfo Message-ID: <20221004152132.GA1906@delia.home> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Tom de Vries via Gcc-patches From: Tom de Vries Reply-To: Tom de Vries Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1745770985934404122?= X-GMAIL-MSGID: =?utf-8?q?1745770985934404122?= Hi, Currently, we cannot build gdb without makeinfo installed. It would be convenient to work around this by using the configure flag MAKEINFO=/usr/bin/true or some such, but that doesn't work because top-level configure requires a makeinfo of at least version 4.7, and that version check fails for /usr/bin/true, so we end up with MAKEINFO=missing instead. What does work is this: ... $ ./configure $ make MAKEINFO=/usr/bin/true ... but the drawback is that it'll have to be specified for each make invocation. Fix this by adding support for --without-makeinfo in top-level configure. Tested by building gdb on x86_64-linux, and verifying that no .info files were generated. OK for trunk? Thanks, - Tom Add --without-makeinfo ChangeLog: 2022-09-05 Tom de Vries * configure.ac: Add --without-makeinfo. * configure: Regenerate. --- configure | 4 ++++ configure.ac | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/configure b/configure index f14e0efd675..eb84add60cb 100755 --- a/configure +++ b/configure @@ -8399,6 +8399,9 @@ fi done test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" +if test $with_makeinfo = "no"; then +MAKEINFO=true +else case " $build_configdirs " in *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; *) @@ -8414,6 +8417,7 @@ case " $build_configdirs " in ;; esac +fi # FIXME: expect and dejagnu may become build tools? diff --git a/configure.ac b/configure.ac index 0152c69292e..e4a2c076674 100644 --- a/configure.ac +++ b/configure.ac @@ -3441,6 +3441,9 @@ case " $build_configdirs " in esac AC_CHECK_PROGS([MAKEINFO], makeinfo, [$MISSING makeinfo]) +if test $with_makeinfo = "no"; then +MAKEINFO=true +else case " $build_configdirs " in *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; *) @@ -3456,6 +3459,7 @@ changequote(,) ;; changequote([,]) esac +fi # FIXME: expect and dejagnu may become build tools?