From patchwork Fri Oct 6 18:27:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Jackson X-Patchwork-Id: 9990217 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 387A660247 for ; Fri, 6 Oct 2017 18:29:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2EFB028A3A for ; Fri, 6 Oct 2017 18:29:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2364328DAC; Fri, 6 Oct 2017 18:29:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D953628A3A for ; Fri, 6 Oct 2017 18:29:58 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e0XLm-0000zq-6I; Fri, 06 Oct 2017 18:27:54 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e0XLl-0000xu-6u for xen-devel@lists.xenproject.org; Fri, 06 Oct 2017 18:27:53 +0000 Received: from [85.158.137.68] by server-16.bemta-3.messagelabs.com id 57/FC-01776-82BC7D95; Fri, 06 Oct 2017 18:27:52 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprDIsWRWlGSWpSXmKPExsXitHRDpK7a6eu RBidfGVh83zKZyYHR4/CHKywBjFGsmXlJ+RUJrBntPXsZC56yV3z/fo2xgXExWxcjJ4eEgL/E pjVNzCA2m4CuRNOWv2BxEQFpif457exdjFwczALzmSQOz1vMCpIQFgiQmH1iJiOIzSKgInFj2 XqwBl4BT4lPk14wQgyVkzh//CfYUE4BL4kv99eyg9hCQDU71p4FinMA2WoSc9fHQ7QKSpyc+Y QFxGYWkJA4+OIF8wRG3llIUrOQpBYwMq1iVC9OLSpLLdK11EsqykzPKMlNzMzRNTQw1stNLS5 OTE/NSUwq1kvOz93ECAydegYGxh2Mr386HWKU5GBSEuVlOHE9UogvKT+lMiOxOCO+qDQntfgQ owwHh5IEb8tJoJxgUWp6akVaZg4wiGHSEhw8SiK8NSBp3uKCxNzizHSI1ClGS44bD6//YeI49 OI2kOy4efcPkxBLXn5eqpQ4rzNIgwBIQ0ZpHtw4WKRdYpSVEuZlZGBgEOIpSC3KzSxBlX/FKM 7BqCTM2w0yhSczrwRu6yugg5iADprTdAXkoJJEhJRUA2O+4SaTTQlb+Pe+ncOkv5jbQsA/tml 6gsFEjot2q8JVOierJV+sKM1a5syfve7+HuOHUyXnO1uyqMnEVnfe5i69WjwjW2bxMWenugVa YWvmic/yT2GdUdihZN7N9PbiNNMPC1zqPz59XLvkR6rE1JgLb3v/B2X+f/xdqz37tH/kkoe/2 8onySixFGckGmoxFxUnAgD4nyi7rwIAAA== X-Env-Sender: prvs=44560dde8=Ian.Jackson@citrix.com X-Msg-Ref: server-13.tower-31.messagelabs.com!1507314466!104562605!3 X-Originating-IP: [66.165.176.89] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni44OSA9PiAyMDMwMDc=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 36830 invoked from network); 6 Oct 2017 18:27:50 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-13.tower-31.messagelabs.com with RC4-SHA encrypted SMTP; 6 Oct 2017 18:27:50 -0000 X-IronPort-AV: E=Sophos;i="5.42,484,1500940800"; d="scan'208";a="442815510" From: Ian Jackson To: Date: Fri, 6 Oct 2017 19:27:24 +0100 Message-ID: <1507314444-30835-9-git-send-email-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1507314444-30835-1-git-send-email-ian.jackson@eu.citrix.com> References: <1507314444-30835-1-git-send-email-ian.jackson@eu.citrix.com> MIME-Version: 1.0 Cc: Juergen Gross , Stefano Stabellini , Ian Jackson , Ross Lagerwall , Anthony PERARD , xen-devel@lists.xenproject.org Subject: [Xen-devel] [PATCH 8/8] RFC configure: do_compiler: Dump some extra info under bash X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP This makes it much easier to find a particular thing in config.log. The information may be lacking in other shells, resulting in harmless empty output. (This is why we don't use the proper ${FUNCNAME[*]} array syntax - other shells will choke on that.) The extra output is only printed if configure is run with bash. The something), it is necessary to say bash ./configure to get the extra debug info in the log. Signed-off-by: Ian Jackson --- configure | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure b/configure index 6f691df..21a2b15 100755 --- a/configure +++ b/configure @@ -60,6 +60,10 @@ do_compiler() { # is compiler binary to execute. local compiler="$1" shift + echo >>config.log " +funcs: ${FUNCNAME} +lines: ${BASH_LINENO} +files: ${BASH_SOURCE}" echo $compiler "$@" >> config.log $compiler "$@" >> config.log 2>&1 || return $? # Test passed. If this is an --enable-werror build, rerun