From unknown Wed Jun 25 02:10:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19311: regression: 1.14 may use ac_aux_dir before defined (again) Resent-From: Jan Engelhardt Original-Sender: "Debbugs-submit" Resent-CC: bug-automake@gnu.org Resent-Date: Mon, 08 Dec 2014 17:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 19311 X-GNU-PR-Package: automake X-GNU-PR-Keywords: To: 19311@debbugs.gnu.org X-Debbugs-Original-To: bug-automake@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.141805986814794 (code B ref -1); Mon, 08 Dec 2014 17:32:02 +0000 Received: (at submit) by debbugs.gnu.org; 8 Dec 2014 17:31:08 +0000 Received: from localhost ([127.0.0.1]:57893 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xy29K-0003q3-Vv for submit@debbugs.gnu.org; Mon, 08 Dec 2014 12:31:07 -0500 Received: from eggs.gnu.org ([208.118.235.92]:59974) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xy29F-0003m6-6s for submit@debbugs.gnu.org; Mon, 08 Dec 2014 12:31:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xy28Z-0006sS-FT for submit@debbugs.gnu.org; Mon, 08 Dec 2014 12:31:00 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:58750) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xy28Z-0006SJ-D6 for submit@debbugs.gnu.org; Mon, 08 Dec 2014 12:30:19 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58440) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xy1uI-0001Kk-1B for bug-automake@gnu.org; Mon, 08 Dec 2014 12:15:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xy1uD-0001ok-P5 for bug-automake@gnu.org; Mon, 08 Dec 2014 12:15:33 -0500 Received: from ares08.inai.de ([46.4.84.70]:46360) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xy1uD-0001oc-Hw for bug-automake@gnu.org; Mon, 08 Dec 2014 12:15:29 -0500 Received: by ares08.inai.de (Postfix, from userid 25121) id CA80C100E538C; Mon, 8 Dec 2014 18:15:26 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by ares08.inai.de (Postfix) with ESMTP id B8DEC18056C45 for ; Mon, 8 Dec 2014 18:15:26 +0100 (CET) Date: Mon, 8 Dec 2014 18:15:26 +0100 (CET) From: Jan Engelhardt Message-ID: User-Agent: Alpine 2.11 (LSU 23 2013-08-11) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) When AC_SYSTEM_EXTENSIONS precedes AM_INIT_AUTOMAKE, it used to throw an error - which has been fixed in http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15981 . I have here another instance of what appears to be a similar issue. This one is also a regression (used to work in 1.13.4), and the regression is still present in {automake 1.14.1 + patch from #15981}. The problem originates in libmemcached/configure.ac, and I have produced the following reduced testcase that exhibits the issue: $ cat <configure.ac AC_INIT([foo], [0]) AC_PROG_CC([cc gcc clang]) AC_CONFIG_AUX_DIR([build-aux]) AC_CONFIG_MACRO_DIR([m4]) AM_INIT_AUTOMAKE([1.11 subdir-objects foreign]) AC_OUTPUT([Makefile]) EOF $ echo '' >Makefile.am $ md m4 $ autoreconf -fi configure.ac:2: installing 'build-aux/compile' configure.ac:5: installing 'build-aux/install-sh' configure.ac:5: installing 'build-aux/missing' $ ./configure checking for cc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.." With automake-1.13.4, configure would succeed through to the end ("config.status: creating Makefile"). From unknown Wed Jun 25 02:10:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19311: regression: 1.14 may use ac_aux_dir before defined (again) Resent-From: Stefano Lattarini Original-Sender: "Debbugs-submit" Resent-CC: bug-automake@gnu.org Resent-Date: Wed, 17 Dec 2014 14:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19311 X-GNU-PR-Package: automake X-GNU-PR-Keywords: To: Jan Engelhardt , 19311@debbugs.gnu.org, Eric Blake Received: via spool by 19311-submit@debbugs.gnu.org id=B19311.141882542715343 (code B ref 19311); Wed, 17 Dec 2014 14:11:01 +0000 Received: (at 19311) by debbugs.gnu.org; 17 Dec 2014 14:10:27 +0000 Received: from localhost ([127.0.0.1]:48568 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y1FJ3-0003zJ-G3 for submit@debbugs.gnu.org; Wed, 17 Dec 2014 09:10:26 -0500 Received: from mail-wi0-f181.google.com ([209.85.212.181]:48421) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y1FIz-0003z1-RJ; Wed, 17 Dec 2014 09:10:22 -0500 Received: by mail-wi0-f181.google.com with SMTP id r20so16232218wiv.2 for ; Wed, 17 Dec 2014 06:10:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=JvMwJ1CAxMq17FhqsXL6lt69t4EY38H3tsHzHxFwaX0=; b=VnFhIg5mQsMxOb8EuqPKv7Afi7TuG195xoOrKO+h1PbNoel8XPsrbWRB0UpPTVhINz JlvZS8dxSk0maqoJUVlkwRTxtQwN7t4tyEKjO2duHaEVNqKayWAUTmmOTPm35imak5yB 02C4RhuNsFkN3wfeoQOnEb8oWQbLEh3fEVrVaRPl1BMx9pM65JD0jkRCvFZMW54TJekI vWGlfk+q+vWh8jCKWXiJ5PNRogMjEmS4ZQr0+kVS9yX3TTLifz2KO2UC4t7+Sh1PifH9 X/RecP+0go7E86ZvRtOP63xiYHIkr6HhACzglXr6Kf/tQcGnyf13KqBSAcCwNSz9Ye7l T9LQ== X-Received: by 10.194.90.193 with SMTP id by1mr63489098wjb.12.1418825421146; Wed, 17 Dec 2014 06:10:21 -0800 (PST) Received: from [192.168.0.101] (host159-94-dynamic.7-79-r.retail.telecomitalia.it. [79.7.94.159]) by mx.google.com with ESMTPSA id x2sm5270695wjx.9.2014.12.17.06.10.20 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Dec 2014 06:10:20 -0800 (PST) Message-ID: <54918ECB.3010601@gmail.com> Date: Wed, 17 Dec 2014 15:10:19 +0100 From: Stefano Lattarini MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) retitle 19311 AC_PROG_CC can force wrong $ac_aux_dir definition in automake 1.14 severity 19311 minor thanks On 12/08/2014 06:15 PM, Jan Engelhardt wrote: > > When AC_SYSTEM_EXTENSIONS precedes AM_INIT_AUTOMAKE, it used to throw an > error - which has been fixed in > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15981 . > > I have here another instance of what appears to be a similar issue. This > one is also a regression (used to work in 1.13.4), and the regression is > still present in {automake 1.14.1 + patch from #15981}. The problem > originates in libmemcached/configure.ac, and I have produced the > following reduced testcase that exhibits the issue: > > $ cat <configure.ac > AC_INIT([foo], [0]) > AC_PROG_CC([cc gcc clang]) > AC_CONFIG_AUX_DIR([build-aux]) > AC_CONFIG_MACRO_DIR([m4]) > AM_INIT_AUTOMAKE([1.11 subdir-objects foreign]) > AC_OUTPUT([Makefile]) > EOF > $ echo '' >Makefile.am > $ md m4 > $ autoreconf -fi > configure.ac:2: installing 'build-aux/compile' > configure.ac:5: installing 'build-aux/install-sh' > configure.ac:5: installing 'build-aux/missing' > $ ./configure > checking for cc... cc > checking whether the C compiler works... yes > checking for C compiler default output file name... a.out > checking for suffix of executables... > checking whether we are cross compiling... no > checking for suffix of object files... o > checking whether we are using the GNU C compiler... yes > checking whether cc accepts -g... yes > checking for cc option to accept ISO C89... none needed > configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." > "./../.." > > With automake-1.13.4, configure would succeed through to the end > ("config.status: creating Makefile"). > > This is due to the fact that automake actually rewrite AC_PROG_CC in order to integrate it with the 'compile' script, and to do so, it needs the $am_aux_dir variable to be defined. That in turns requires AC_CONFIG_AUX_DIR to be called beforehand. If that macro isn't called explicitly before the AC_PROG_CC invocation, then the code in AM_AUX_DIR_EXPAND will force-expand it with its default behavior, which is to have configure look into '.', '..' and '../..' for the required auxiliary scripts, and bail out if they are not found. Which is what is causing your issue. The issue can be solved by moving the AC_CONFIG_AUX_DIR call before the AC_PROG_CC call. Arguably, a more user-friendly behavior would be to automake patch AC_CONFIG_AUX_DIR so that it fails hard and with a clear error message if it gets invoked after AM_AUX_DIR_EXPAND has been called (explicitly or implicitly). Patches welcome (either for code or docs). An even better solution *might* be to shuffle the expansion of AC_CONFIG_AUX_DIR so that it goes immediately after the AC_INIT explansion, but that requires more m4 magic than my rusty brain can grasp at the momwnt; and in addition, I'm not sure whether such a change could cause new backward incompatibilities (possibly subtle ones). Looping in Eric,Blake explicitly, who, being the m4 maintainer and one of the main Autoconf devs, is probably the best person to give feedback. Thanks, Stefano From unknown Wed Jun 25 02:10:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19311: [FYI] {minor} Expose automake bug#19311 References: In-Reply-To: Resent-From: Stefano Lattarini Original-Sender: "Debbugs-submit" Resent-CC: bug-automake@gnu.org Resent-Date: Wed, 17 Dec 2014 16:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19311 X-GNU-PR-Package: automake X-GNU-PR-Keywords: To: automake-patches@gnu.org Cc: jengelh@inai.de, 19311@debbugs.gnu.org Received: via spool by 19311-submit@debbugs.gnu.org id=B19311.14188328466350 (code B ref 19311); Wed, 17 Dec 2014 16:15:02 +0000 Received: (at 19311) by debbugs.gnu.org; 17 Dec 2014 16:14:06 +0000 Received: from localhost ([127.0.0.1]:49056 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y1HEj-0001eK-FN for submit@debbugs.gnu.org; Wed, 17 Dec 2014 11:14:05 -0500 Received: from mail-wg0-f43.google.com ([74.125.82.43]:60735) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y1HEg-0001dw-IX for 19311@debbugs.gnu.org; Wed, 17 Dec 2014 11:14:03 -0500 Received: by mail-wg0-f43.google.com with SMTP id l18so20625584wgh.30 for <19311@debbugs.gnu.org>; Wed, 17 Dec 2014 08:14:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=2+Kz8MCEeyYkRbQ/mgv1Xxn0tPuX2D1cV3gpgDYJCiM=; b=Mt/WHCgSOumGlfZJHipGNvQ8PxzN1+nmkmMMZuncnnxYy0IMlCWlgWORR2R991j2Yh Jyk42SKxBU9NOjHPOOO+qTGei2rwo0h3ml/iD6/ObGO++KlVzQb2hm/yBNNX1j1WORL0 87gxkbTGUbWTkR49UyJ4IDxImGJMfmDURxb52KXiR7nLuigcYqFypZKRgWxmVsmDqDsL /q4xnnl38whoA7tUyHSkyLkXO4EjgvpnKhH1Cta1k6Y0C8lcqaNxL9oC1EghUmFGP4N7 2rtXnaB/Hr8ee36LrXADhUN53V99xoTtQWdq2QQvNWNZzwl8TchOGaGNSBZ8eFMy6d1z QygA== X-Received: by 10.181.8.193 with SMTP id dm1mr15695022wid.55.1418832841624; Wed, 17 Dec 2014 08:14:01 -0800 (PST) Received: from localhost.localdomain (host159-94-dynamic.7-79-r.retail.telecomitalia.it. [79.7.94.159]) by mx.google.com with ESMTPSA id u13sm2803409wjr.26.2014.12.17.08.14.00 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 17 Dec 2014 08:14:01 -0800 (PST) From: Stefano Lattarini Date: Wed, 17 Dec 2014 17:13:52 +0100 Message-Id: <5b3b1c83b47c1e29629049046b982636938d2b5d.1418832688.git.stefano.lattarini@gmail.com> X-Mailer: git-send-email 2.1.3 X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) AC_PROG_CC called before AC_CONFIG_AUX_DIR can silently force wrong $ac_aux_dir definition. * t/auxdir-pr19311.sh: New. * t/list-of-tests.mk: Add it as an XFAIL test. Signed-off-by: Stefano Lattarini --- t/auxdir-pr19311.sh | 45 +++++++++++++++++++++++++++++++++++++++++++++ t/list-of-tests.mk | 2 ++ 2 files changed, 47 insertions(+) create mode 100644 t/auxdir-pr19311.sh diff --git a/t/auxdir-pr19311.sh b/t/auxdir-pr19311.sh new file mode 100644 index 0000000..56c71a1 --- /dev/null +++ b/t/auxdir-pr19311.sh @@ -0,0 +1,45 @@ +#! /bin/sh +# Copyright (C) 2014 Free Software Foundation, Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# Automake bug#19311: AC_PROG_CC called before AC_CONFIG_AUX_DIR can +# silently force wrong $ac_aux_dir definition. + +am_create_testdir=empty +required=cc +. test-init.sh + +cat > configure.ac < Makefile.am + +mkdir build-aux + +$ACLOCAL +$AUTOMAKE -a +$AUTOCONF + +test -f build-aux/compile +test -f build-aux/install-sh + +./configure + +: diff --git a/t/list-of-tests.mk b/t/list-of-tests.mk index e6ee856..8d458f5 100644 --- a/t/list-of-tests.mk +++ b/t/list-of-tests.mk @@ -30,6 +30,7 @@ t/pm/Version3.pl XFAIL_TESTS = \ t/all.sh \ +t/auxdir-pr19311.sh \ t/cond17.sh \ t/gcj6.sh \ t/override-conditional-2.sh \ @@ -185,6 +186,7 @@ t/auxdir-autodetect.sh \ t/auxdir-computed.tap \ t/auxdir-misplaced.sh \ t/auxdir-nonexistent.sh \ +t/auxdir-pr19311.sh \ t/auxdir-unportable.tap \ t/backcompat.sh \ t/backcompat2.sh \ -- 2.1.3 From unknown Wed Jun 25 02:10:34 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Jan Engelhardt Subject: bug#19311: closed (Re: bug#19311: [FYI] {minor} Expose automake bug#19311) Message-ID: References: X-Gnu-PR-Message: they-closed 19311 X-Gnu-PR-Package: automake Reply-To: 19311@debbugs.gnu.org Date: Sun, 20 Feb 2022 19:10:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1645384202-19734-1" This is a multi-part message in MIME format... ------------=_1645384202-19734-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #19311: AC_PROG_CC can force wrong $ac_aux_dir definition in automake 1.14 which was filed against the automake package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 19311@debbugs.gnu.org. --=20 19311: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D19311 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1645384202-19734-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 19311-done) by debbugs.gnu.org; 20 Feb 2022 19:09:32 +0000 Received: from localhost ([127.0.0.1]:33770 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nLraO-00057R-AU for submit@debbugs.gnu.org; Sun, 20 Feb 2022 14:09:32 -0500 Received: from woodpecker.gentoo.org ([140.211.166.183]:35316 helo=smtp.gentoo.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nLraM-00057E-67 for 19311-done@debbugs.gnu.org; Sun, 20 Feb 2022 14:09:30 -0500 Received: by smtp.gentoo.org (Postfix, from userid 559) id A716E343740; Sun, 20 Feb 2022 19:09:24 +0000 (UTC) Date: Sun, 20 Feb 2022 14:09:24 -0500 From: Mike Frysinger To: 19311-done@debbugs.gnu.org Subject: Re: bug#19311: [FYI] {minor} Expose automake bug#19311 Message-ID: Mail-Followup-To: 19311-done@debbugs.gnu.org References: <5b3b1c83b47c1e29629049046b982636938d2b5d.1418832688.git.stefano.lattarini@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <5b3b1c83b47c1e29629049046b982636938d2b5d.1418832688.git.stefano.lattarini@gmail.com> X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 19311-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) On 17 Dec 2014 17:13, Stefano Lattarini wrote: > AC_PROG_CC called before AC_CONFIG_AUX_DIR can silently force wrong > $ac_aux_dir definition. looks like this was merged to fix this bug but forgot to close the report -mike ------------=_1645384202-19734-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 8 Dec 2014 17:31:08 +0000 Received: from localhost ([127.0.0.1]:57893 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xy29K-0003q3-Vv for submit@debbugs.gnu.org; Mon, 08 Dec 2014 12:31:07 -0500 Received: from eggs.gnu.org ([208.118.235.92]:59974) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xy29F-0003m6-6s for submit@debbugs.gnu.org; Mon, 08 Dec 2014 12:31:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xy28Z-0006sS-FT for submit@debbugs.gnu.org; Mon, 08 Dec 2014 12:31:00 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:58750) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xy28Z-0006SJ-D6 for submit@debbugs.gnu.org; Mon, 08 Dec 2014 12:30:19 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58440) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xy1uI-0001Kk-1B for bug-automake@gnu.org; Mon, 08 Dec 2014 12:15:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xy1uD-0001ok-P5 for bug-automake@gnu.org; Mon, 08 Dec 2014 12:15:33 -0500 Received: from ares08.inai.de ([46.4.84.70]:46360) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xy1uD-0001oc-Hw for bug-automake@gnu.org; Mon, 08 Dec 2014 12:15:29 -0500 Received: by ares08.inai.de (Postfix, from userid 25121) id CA80C100E538C; Mon, 8 Dec 2014 18:15:26 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by ares08.inai.de (Postfix) with ESMTP id B8DEC18056C45 for ; Mon, 8 Dec 2014 18:15:26 +0100 (CET) Date: Mon, 8 Dec 2014 18:15:26 +0100 (CET) From: Jan Engelhardt To: bug-automake@gnu.org Subject: regression: 1.14 may use ac_aux_dir before defined (again) Message-ID: User-Agent: Alpine 2.11 (LSU 23 2013-08-11) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) When AC_SYSTEM_EXTENSIONS precedes AM_INIT_AUTOMAKE, it used to throw an error - which has been fixed in http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15981 . I have here another instance of what appears to be a similar issue. This one is also a regression (used to work in 1.13.4), and the regression is still present in {automake 1.14.1 + patch from #15981}. The problem originates in libmemcached/configure.ac, and I have produced the following reduced testcase that exhibits the issue: $ cat <configure.ac AC_INIT([foo], [0]) AC_PROG_CC([cc gcc clang]) AC_CONFIG_AUX_DIR([build-aux]) AC_CONFIG_MACRO_DIR([m4]) AM_INIT_AUTOMAKE([1.11 subdir-objects foreign]) AC_OUTPUT([Makefile]) EOF $ echo '' >Makefile.am $ md m4 $ autoreconf -fi configure.ac:2: installing 'build-aux/compile' configure.ac:5: installing 'build-aux/install-sh' configure.ac:5: installing 'build-aux/missing' $ ./configure checking for cc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.." With automake-1.13.4, configure would succeed through to the end ("config.status: creating Makefile"). ------------=_1645384202-19734-1--