From unknown Sat Jun 14 03:47:40 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#12513 <12513@debbugs.gnu.org> To: bug#12513 <12513@debbugs.gnu.org> Subject: Status: Should aclocal warn when picking up system-wide installed macros? Reply-To: bug#12513 <12513@debbugs.gnu.org> Date: Sat, 14 Jun 2025 10:47:40 +0000 retitle 12513 Should aclocal warn when picking up system-wide installed mac= ros? reassign 12513 automake submitter 12513 Peter Johansson severity 12513 wishlist tag 12513 moreinfo thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 25 03:23:23 2012 Received: (at submit) by debbugs.gnu.org; 25 Sep 2012 07:23:23 +0000 Received: from localhost ([127.0.0.1]:54290 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TGPUI-0003KD-Ge for submit@debbugs.gnu.org; Tue, 25 Sep 2012 03:23:23 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39325) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TGPUG-0003K7-D4 for submit@debbugs.gnu.org; Tue, 25 Sep 2012 03:23:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TGPSK-0002Tw-N0 for submit@debbugs.gnu.org; Tue, 25 Sep 2012 03:21:22 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, URIBL_BLACK autolearn=ham version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:41074) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGPSK-0002Tm-JS for submit@debbugs.gnu.org; Tue, 25 Sep 2012 03:21:20 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58777) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGPSB-0007tZ-2g for bug-automake@gnu.org; Tue, 25 Sep 2012 03:21:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TGPS6-0002SD-Uu for bug-automake@gnu.org; Tue, 25 Sep 2012 03:21:11 -0400 Received: from mail-bk0-f41.google.com ([209.85.214.41]:37983) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGPS6-0002S0-JB; Tue, 25 Sep 2012 03:21:06 -0400 Received: by bkcjm1 with SMTP id jm1so33668bkc.0 for ; Tue, 25 Sep 2012 00:21:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:mime-version:to:cc:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=bM1yUNU2AovIwA2dB1PhD3KL2TF/f0xvwlm/XjSyh5s=; b=oZt3doPUTUHDRgvutcHgfA1lZ5r2fCqTNQpyfLZ6RSUUwYjRIDJ1i+vBrpoKJqEmsc ZAcXi0kl+rG9nNyhweeH6LXldlGiYjHaxB6IkGHi3pIHqdK1Dd1ans3rQb5s3rL9O38W C1UPMRIq8VWQWy++a/IgeOIWCVWH0M+okQG8cSdqSt6Ur7LQLyBVZY9cK1WImEhKF7Zn OXEOakfmXSvFzrZrNA35CTT8ratDfOYfeJA0R1i84vb0U+QOSnlwp+XLviisiJCmSNC1 H2OBo5pz1/KAMZSKo8nW2UcyEbgX0FG4sDVaVoDRq5c28UzmlCLHJE4hkTl74bXhlmhJ bIMg== Received: by 10.204.130.152 with SMTP id t24mr50639bks.138.1348557665333; Tue, 25 Sep 2012 00:21:05 -0700 (PDT) Received: from [192.168.178.21] (host194-94-dynamic.2-87-r.retail.telecomitalia.it. [87.2.94.194]) by mx.google.com with ESMTPS id hy11sm2635571bkc.5.2012.09.25.00.21.03 (version=SSLv3 cipher=OTHER); Tue, 25 Sep 2012 00:21:04 -0700 (PDT) Message-ID: <50615B55.7060000@gmail.com> Date: Tue, 25 Sep 2012 09:20:53 +0200 From: Stefano Lattarini MIME-Version: 1.0 To: Peter Johansson Subject: Should aclocal warn when picking up system-wide installed macros? References: <5060F608.4000908@gmail.com> In-Reply-To: <5060F608.4000908@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -4.4 (----) X-Debbugs-Envelope-To: submit Cc: bug-automake@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.4 (----) Severity: wishlist On 09/25/2012 02:08 AM, Peter Johansson wrote: > Hi, > Hi Peter. I'm moving this discussion to bug-automake so that we won't forget about the issue. > I just helped a co-developer who experienced a mysterious > > autoreconf: Entering directory `.' > autoreconf: configure.ac: not using Gettext > autoreconf: running: aclocal --force > autoreconf: configure.ac: tracing > autoreconf: configure.ac: adding subdirectory c++ to autoreconf > autoreconf: Entering directory `c++' > autoreconf: configure.ac: not using Libtool > autoreconf: running: /opt/local/bin/autoconf --force > configure.ac:43: error: possibly undefined macro: AC_MSG_FAILURE > If this token and others are legitimate, please use m4_pattern_allow. > See the Autoconf documentation. > autoreconf: /opt/local/bin/autoconf failed with exit status: 1 > > > Line 43 in c++/configure.ac contained > > YAT_CHECK_YAT([0.9.1], [], [AC_MSG_FAILURE([no yat found])]) > > which is a macro defined in c++/m4/yat.m4. After some investigation I > realized the problem is that aclocal doesn't find 'yat.m4' and adding > > ACLOCAL_AMFLAGS = -I m4 > > in c++/Makefile.am solved the problem as expected. The annoying thing > is that I did not see this problem because my aclocal finds yat.m4 > under /usr/local. I'm not sure what I'm asking for here, but it would > be nice if I could have aclocal complain somehow in this scenario. Is > it possible to tell aclocal to only pick up local files that it can > m4_include into aclocal.m4? Only time I really wanna pick up installed > m4 files is when I issue 'aclocal --install -I m4', or am I misusing > aclocal? > I believe your request makes lot of sense. We could add a new warning '-Wglobal-macros' (say) that reports any picked-up m4 file that cannot be 'm4_include'd into aclocal.m4. And that warning could become active by default in Automake 1.14 (assuming there will be a simple way to disable it from 'autoreconf'). Of course, such a warning should be disabled whenever the '--install' is used. Also, having a way to turn that warning (and that warning only) into a fatal error would allow us to enhance the 'distcheck' target to verify that no non-distributed third-party m4 file is required to re-bootstrap the package. Not sure when I'll have time and will to pursue this though; in the meantime, as usual, feedback and patches welcome. And BTW, to save us from potentially wasted effort: can anyone think of real-word use cases that would be hampered or broken by the proposal above? Regards, Stefano From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 25 03:25:58 2012 Received: (at control) by debbugs.gnu.org; 25 Sep 2012 07:25:58 +0000 Received: from localhost ([127.0.0.1]:54295 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TGPWo-0003O5-G4 for submit@debbugs.gnu.org; Tue, 25 Sep 2012 03:25:58 -0400 Received: from mail-bk0-f44.google.com ([209.85.214.44]:33613) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TGPWm-0003Nx-6G for control@debbugs.gnu.org; Tue, 25 Sep 2012 03:25:56 -0400 Received: by bkty12 with SMTP id y12so3437282bkt.3 for ; Tue, 25 Sep 2012 00:23:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:mime-version:to:subject:content-type :content-transfer-encoding; bh=yM/UoLuNhM0SnXvDtU8sNkp35aytnP2nhCPPEdaPRhI=; b=m5lvX9bNfp65RkacVZvq+8A11yeNxl9VblYaONeZ2DT1JbfbUme646+F/TuSk04Mvl GCBos/8sPHN/2BdcUYv0Y7yggOnuR90d2zm5INnwNnGpl8XCV5+kUDGFvVx7EsqhCwGZ aTdK5MVRH6Q5rG1So9zr6GoyBH6c3DiEbn2R2SfQDiOEETXurfSEhi+wPm2Dc7VMknKt YbnXNn3Jg47w1e6wOg2sh0tjFZ6aPOdYYRxuWD2t5Vlogje7vlwDd9PExLo1S4Lspd1Q UpLWwLBjIgPsB2EQVPwHucAe45AC+CgD7cF3VlGJGJKNPf8y9BD+EASsLf8kV8ubGpIf NQ5Q== Received: by 10.204.154.85 with SMTP id n21mr5346426bkw.48.1348557836934; Tue, 25 Sep 2012 00:23:56 -0700 (PDT) Received: from [192.168.178.21] (host194-94-dynamic.2-87-r.retail.telecomitalia.it. [87.2.94.194]) by mx.google.com with ESMTPS id he16sm4516052bkc.7.2012.09.25.00.23.55 (version=SSLv3 cipher=OTHER); Tue, 25 Sep 2012 00:23:55 -0700 (PDT) Message-ID: <50615C08.3010709@gmail.com> Date: Tue, 25 Sep 2012 09:23:52 +0200 From: Stefano Lattarini MIME-Version: 1.0 To: control@debbugs.gnu.org Subject: x Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) tags 12513 + moreinfo submitter 12513 Peter Johansson thanks