From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 0A97A1F4B4 for ; Sun, 17 Jan 2021 08:14:01 +0000 (UTC) Received: from localhost ([::1]:56642 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l13CC-0003N0-1S for normalperson@yhbt.net; Sun, 17 Jan 2021 03:14:00 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43492) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l13C8-0003Mq-9b for bug-gnulib@gnu.org; Sun, 17 Jan 2021 03:13:56 -0500 Received: from mo4-p00-ob.smtp.rzone.de ([85.215.255.20]:31895) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l13C6-0001V7-Ej for bug-gnulib@gnu.org; Sun, 17 Jan 2021 03:13:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1610871232; s=strato-dkim-0002; d=clisp.org; h=Message-ID:Date:Subject:To:From:From:Subject:Sender; bh=4/vyHTwwB8kO1kFNcxLwDHKx3sLkb0kaDDvP8zx9tYc=; b=BbB62jNOQUHQVumsALnroeHjMykr+XjVV85U6zo5MzBgfgRiijKbzNuylOuN6gTBmA 9XumLwUA7N8PICF+lismB1dEHPhTFYrqTD1NKxAT/IHKJ2Pxr25t2PEWZl9D229cWClX fAAIe7jmjhmUpFg7HJr/+agmHzpdbb5Hw9l9eccKnj5GiXjeqiDjy2UKusHYT4d9UuAG hnKJ5KPl//2ZZHb0nlRZ+7/hOBn1D54gYALqvi20Ag5E35964RPrfd6492sXIMok79py 6hw3kLJPofBIj4dQz9RG+A7dmpit3F6mS2vTykZ2znIgjIFjovlSLguXpxsVK361RYz3 fieA== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH+AHjwLuWOHqfyyvs=" X-RZG-CLASS-ID: mo00 Received: from bruno.haible.de by smtp.strato.de (RZmta 47.12.1 DYNA|AUTH) with ESMTPSA id u0aa20x0H8DpqOY (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Sun, 17 Jan 2021 09:13:51 +0100 (CET) From: Bruno Haible To: bug-gnulib@gnu.org Subject: immutable, get-rusage-data: Fix autoconf warning Date: Sun, 17 Jan 2021 09:13:50 +0100 Message-ID: <1773188.4m9co59cin@omega> User-Agent: KMail/5.1.3 (Linux/4.4.0-197-generic; KDE/5.18.0; x86_64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Received-SPF: none client-ip=85.215.255.20; envelope-from=bruno@clisp.org; helo=mo4-p00-ob.smtp.rzone.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" While creating a testdir for the modules 'immutable', 'get-rusage-data', I get this warning: configure.ac:672: warning: AC_REQUIRE: `gl_FUNC_MMAP_ANON' was expanded before it was required configure.ac:672: https://www.gnu.org/software/autoconf/manual/autoconf.html#Expanded-Before-Required glm4/mprotect.m4:14: gl_FUNC_MPROTECT_WORKS is expanded from... glm4/immutable.m4:7: gl_IMMUTABLE is expanded from... configure.ac:35: gl_INIT is expanded from... configure.ac:672: the top level The cause is that gl_FUNC_MMAP_ANON is invoked in some places and required in other places. This patch fixes it. 2021-01-17 Bruno Haible immutable, get-rusage-data: Fix autoconf warning. * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Define through AC_DEFUN_ONCE. diff --git a/m4/mmap-anon.m4 b/m4/mmap-anon.m4 index 5a9f968..e47aa2d 100644 --- a/m4/mmap-anon.m4 +++ b/m4/mmap-anon.m4 @@ -1,4 +1,4 @@ -# mmap-anon.m4 serial 11 +# mmap-anon.m4 serial 12 dnl Copyright (C) 2005, 2007, 2009-2021 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -13,7 +13,7 @@ dnl with or without modifications, as long as this notice is preserved. # - On IRIX, neither exists, and a file descriptor opened to /dev/zero must be # used. -AC_DEFUN([gl_FUNC_MMAP_ANON], +AC_DEFUN_ONCE([gl_FUNC_MMAP_ANON], [ dnl Persuade glibc to define MAP_ANONYMOUS. AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])