From unknown Mon Jun 23 04:13:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10473: Run automake to create config.sub without any Makefile.am Resent-From: Nick Bowler Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-automake@gnu.org Resent-Date: Tue, 10 Jan 2012 21:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 10473 X-GNU-PR-Package: automake X-GNU-PR-Keywords: To: Mike Frysinger Cc: roger.pau@entel.upc.edu, 10473@debbugs.gnu.org, autoconf@gnu.org, eblake@redhat.com X-Debbugs-Original-Cc: Roger Pau =?UTF-8?Q?Monn=C3=A9?= , bug-automake@gnu.org, autoconf@gnu.org, Eric Blake Received: via spool by submit@debbugs.gnu.org id=B.132623163727985 (code B ref -1); Tue, 10 Jan 2012 21:41:02 +0000 Received: (at submit) by debbugs.gnu.org; 10 Jan 2012 21:40:37 +0000 Received: from localhost ([127.0.0.1]:52876 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RkjQb-0007H0-Jg for submit@debbugs.gnu.org; Tue, 10 Jan 2012 16:40:36 -0500 Received: from eggs.gnu.org ([140.186.70.92]:42714) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RkjQU-0007Gl-2V for submit@debbugs.gnu.org; Tue, 10 Jan 2012 16:40:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RkjQ7-0007HY-Eb for submit@debbugs.gnu.org; Tue, 10 Jan 2012 16:39:52 -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=unavailable version=3.3.2 Received: from lists.gnu.org ([140.186.70.17]:51858) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkjQ7-0007HU-D1 for submit@debbugs.gnu.org; Tue, 10 Jan 2012 16:39:51 -0500 Received: from eggs.gnu.org ([140.186.70.92]:57798) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkjQ6-0000EY-5h for bug-automake@gnu.org; Tue, 10 Jan 2012 16:39:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RkjQ0-0007Fl-71 for bug-automake@gnu.org; Tue, 10 Jan 2012 16:39:50 -0500 Received: from mx.scalarmail.ca ([98.158.95.75]:28356 helo=ironport-01.sms.scalar.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkjPx-0007BF-Na; Tue, 10 Jan 2012 16:39:41 -0500 Received: from unknown (HELO sms-zimbra-mta-02.sms.scalar.ca) ([192.168.32.56]) by ironport-01.sms.scalar.ca with ESMTP; 10 Jan 2012 16:10:34 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by sms-zimbra-mta-02.sms.scalar.ca (Postfix) with ESMTP id A6D7187C07; Tue, 10 Jan 2012 16:10:34 -0500 (EST) Received: from sms-zimbra-mta-02.sms.scalar.ca ([127.0.0.1]) by localhost (sms-zimbra-mta-02.sms.scalar.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id U4EIjeJXd3ez; Tue, 10 Jan 2012 16:10:31 -0500 (EST) Received: from mail.ellipticsemi.com (dsl-67-204-24-19.acanac.net [67.204.24.19]) by sms-zimbra-mta-02.sms.scalar.ca (Postfix) with ESMTPSA id A31E187C01; Tue, 10 Jan 2012 16:10:30 -0500 (EST) Received: by mail.ellipticsemi.com (nbSMTP-1.00) for uid 550 (using TLSv1/SSLv3 with cipher DHE-RSA-AES256-SHA (256/256 bits)) nbowler@mail.ellipticsemi.com; Tue, 10 Jan 2012 16:10:30 -0500 (EST) Date: Tue, 10 Jan 2012 16:10:29 -0500 From: Nick Bowler Message-ID: <20120110211029.GA12196@elliptictech.com> References: <4F0B7D08.5060008@redhat.com> <201201101541.53346.vapier@gentoo.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <201201101541.53346.vapier@gentoo.org> Organization: Elliptic Technologies Inc. User-Agent: Mutt/1.5.21 (2010-09-15) 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: 140.186.70.17 X-Spam-Score: -4.2 (----) 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.2 (----) On 2012-01-10 15:41 -0500, Mike Frysinger wrote: > On Monday 09 January 2012 18:49:28 Eric Blake wrote: > > On 01/09/2012 03:46 PM, Roger Pau Monné wrote: > > > It creates the needed files, but exits with status 1. Is there anyway > > > to generate config.sub without relying on Automake, > > > > Use 'cp'. That's all the more automake was doing when it outputs lines > > about installing helper files. > > i wish automake (and gettext) had modes where you could say "i just want you > to install XXX helpers for me)". copying things by hand is error prone due to > changing install paths across versions and distros. > > automake --foreign -c -f --tools="config.sub config.guess" CCing bug-automake. This feature would be generally useful: another example for automake-using packages is that at "foreign" strictness the INSTALL file is not copied, but maintainers may still want to include it. Perhaps a simpler and more flexible option is to add an option to automake which prints out the location where it finds these files, similar to aclocal --print-ac-dir. Something like (for example) % automake --print-snippet-dir /usr/share/automake-1.11 Cheers, -- Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/) From unknown Mon Jun 23 04:13:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10473: Run automake to create config.sub without any Makefile.am Resent-From: Mike Frysinger Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-automake@gnu.org Resent-Date: Tue, 10 Jan 2012 21:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10473 X-GNU-PR-Package: automake X-GNU-PR-Keywords: To: autoconf@gnu.org Cc: roger.pau@entel.upc.edu, eblake@redhat.com, nbowler@elliptictech.com, 10473@debbugs.gnu.org X-Debbugs-Original-Cc: Roger Pau =?UTF-8?Q?Monn=C3=A9?= , Eric Blake , Nick Bowler , bug-automake@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.132623269629562 (code B ref -1); Tue, 10 Jan 2012 21:59:02 +0000 Received: (at submit) by debbugs.gnu.org; 10 Jan 2012 21:58:16 +0000 Received: from localhost ([127.0.0.1]:52899 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rkjhv-0007gl-NF for submit@debbugs.gnu.org; Tue, 10 Jan 2012 16:58:15 -0500 Received: from eggs.gnu.org ([140.186.70.92]:51258) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rkjhq-0007gZ-Gf for submit@debbugs.gnu.org; Tue, 10 Jan 2012 16:58:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RkjhT-0001YJ-HQ for submit@debbugs.gnu.org; Tue, 10 Jan 2012 16:57:48 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([140.186.70.17]:38665) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkjhT-0001YE-Fs for submit@debbugs.gnu.org; Tue, 10 Jan 2012 16:57:47 -0500 Received: from eggs.gnu.org ([140.186.70.92]:58130) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkjhS-0004tf-BQ for bug-automake@gnu.org; Tue, 10 Jan 2012 16:57:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RkjhR-0001Xx-B0 for bug-automake@gnu.org; Tue, 10 Jan 2012 16:57:46 -0500 Received: from smtp.gentoo.org ([140.211.166.183]:41581) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkjhO-0001Wz-JA; Tue, 10 Jan 2012 16:57:42 -0500 Received: from vapier.localnet (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id A5BA21B4036; Tue, 10 Jan 2012 21:57:41 +0000 (UTC) From: Mike Frysinger Organization: wh0rd.org Date: Tue, 10 Jan 2012 16:57:41 -0500 User-Agent: KMail/1.13.7 (Linux/3.2.0; KDE/4.6.5; x86_64; ; ) References: <201201101541.53346.vapier@gentoo.org> <20120110211029.GA12196@elliptictech.com> In-Reply-To: <20120110211029.GA12196@elliptictech.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart30852637.FyMEUayDIF"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201201101657.43239.vapier@gentoo.org> 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: 140.186.70.17 X-Spam-Score: -3.4 (---) 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: -3.4 (---) --nextPart30852637.FyMEUayDIF Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable On Tuesday 10 January 2012 16:10:29 Nick Bowler wrote: > On 2012-01-10 15:41 -0500, Mike Frysinger wrote: > > On Monday 09 January 2012 18:49:28 Eric Blake wrote: > > > On 01/09/2012 03:46 PM, Roger Pau Monn=E9 wrote: > > > > It creates the needed files, but exits with status 1. Is there anyw= ay > > > > to generate config.sub without relying on Automake, > > >=20 > > > Use 'cp'. That's all the more automake was doing when it outputs lin= es > > > about installing helper files. > >=20 > > i wish automake (and gettext) had modes where you could say "i just want > > you to install XXX helpers for me)". copying things by hand is error > > prone due to changing install paths across versions and distros. > >=20 > > automake --foreign -c -f --tools=3D"config.sub config.guess" >=20 > CCing bug-automake. This feature would be generally useful: another > example for automake-using packages is that at "foreign" strictness the > INSTALL file is not copied, but maintainers may still want to include it. >=20 > Perhaps a simpler and more flexible option is to add an option to > automake which prints out the location where it finds these files, > similar to aclocal --print-ac-dir. Something like (for example) >=20 > % automake --print-snippet-dir > /usr/share/automake-1.11 i'd be OK with that too if the assumption is that all relevant files people= =20 want to manually copy would be in there (INSTALL, config.sub, etc...). another example of why hardcoding paths doesn't scale: the stuff installed = into=20 the root distro might not be what is found via $PATH. so if you have local= =20 builds of autotools in say $HOME/...., `automake` would come from there, bu= t=20 trying to copy files by hand would look in /usr/share/.... rather than the = stuff=20 in $HOME. =2Dmike --nextPart30852637.FyMEUayDIF Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iQIcBAABAgAGBQJPDLRWAAoJEEFjO5/oN/WBDNYP/2Fk2Nepz7VQ5ksWwStY74Pd 4zmZuz3VnsS1rJcnm484SSQJdiQezZ/q4U/fUwTeEOWiOjlohWTF6exRYGwR3Urm FDjaxfzkB/M4Qm1wzNSZeKoYaxY4ZFdHr7O8lcARaaT8PpYKeOHoaWOO7scKfh7x 3lqVedFsZ/1IgP3SrdoXLLYBaQEF3x/R5X38I2U2+xJ07vpSaL3I8Npx/DSd4o6X pPanf9vx32L36dCO+qS69O7/Xh1lzgh7mTHyIqCFu2/pYuZ3sguWmT/7/ZuBRX7h k3+9OCK0MvaCLGfN9KhVbwnGO2salytGqDes9y1yWcQhW1aIT8C5EDXOfMYnqNlS kdevxeauZPIyn+NopE3IpoJaqAvA8MvLv9fhB5HL2xZNTD0vIw0ENf3o8kZEDysh OxWxYDMlNsjSrPCIRj71ah1+lyKGYZoYCqZ/6Xme1FWclNHUi5rRgyYu6sx+qEUk 48XYXB9E+DgKsvjSCigyNy0AW3Of5qpYpGhCmnKb/ltgfLgRY9scAvozrTD07EDL U9UTM6hXoJVSsR29Bsy2q+A/MlMmXyr6E6+PYy5pkW3Oj/5W3n5AWGpxJUCnTMTV 3uy4sJM0O7LdwgiUDcmOw6zEMw1TQOMm/CMsbedLDxISByaLiIt8eisBXXPOaQMc k5TlLFtAD8pi5D2Jiw3s =1DUE -----END PGP SIGNATURE----- --nextPart30852637.FyMEUayDIF-- From unknown Mon Jun 23 04:13:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10473: [PATCH] automake: new option to print locations of scripts and data files (was: Re: bug#10473: Run automake to create config.sub without any Makefile.am) Resent-From: Stefano Lattarini Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-automake@gnu.org Resent-Date: Sun, 19 Feb 2012 17:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10473 X-GNU-PR-Package: automake X-GNU-PR-Keywords: To: Mike Frysinger Cc: roger.pau@entel.upc.edu, eblake@redhat.com, nbowler@elliptictech.com, 10473@debbugs.gnu.org, automake-patches@gnu.org Received: via spool by 10473-submit@debbugs.gnu.org id=B10473.132967366328413 (code B ref 10473); Sun, 19 Feb 2012 17:48:02 +0000 Received: (at 10473) by debbugs.gnu.org; 19 Feb 2012 17:47:43 +0000 Received: from localhost ([127.0.0.1]:46167 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RzArN-0007OD-W7 for submit@debbugs.gnu.org; Sun, 19 Feb 2012 12:47:42 -0500 Received: from mail-ey0-f172.google.com ([209.85.215.172]:58336) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RzArK-0007Ny-8X for 10473@debbugs.gnu.org; Sun, 19 Feb 2012 12:47:39 -0500 Received: by eaal12 with SMTP id l12so2808795eaa.3 for <10473@debbugs.gnu.org>; Sun, 19 Feb 2012 09:45:26 -0800 (PST) Received-SPF: pass (google.com: domain of stefano.lattarini@gmail.com designates 10.213.20.6 as permitted sender) client-ip=10.213.20.6; Authentication-Results: mr.google.com; spf=pass (google.com: domain of stefano.lattarini@gmail.com designates 10.213.20.6 as permitted sender) smtp.mail=stefano.lattarini@gmail.com; dkim=pass header.i=stefano.lattarini@gmail.com Received: from mr.google.com ([10.213.20.6]) by 10.213.20.6 with SMTP id d6mr1603572ebb.57.1329673526604 (num_hops = 1); Sun, 19 Feb 2012 09:45:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:mime-version:to:cc:subject:references :in-reply-to:content-type; bh=O/Matm498s6hBTo5ghssBKpUrrUUsjmYIlscc7K3GCU=; b=ABlGGFN/XMRmDCJTxbQaVApfHAjKk7vGoT21B/0THrXXF+EQMnJI77OT3Lcz5FzBIf R4QRk5gooutcdyv3VkqiHZsQ9m0H243GVzGuFgdUutzy7cktVpHCiqrkhgJZPw1wQFn/ 1mfPSJNNa5pteqwVc5Dm3PpojVf0FO8af2sxk= Received: by 10.213.20.6 with SMTP id d6mr1279296ebb.57.1329673526490; Sun, 19 Feb 2012 09:45:26 -0800 (PST) Received: from [79.20.98.232] (host232-98-dynamic.20-79-r.retail.telecomitalia.it. [79.20.98.232]) by mx.google.com with ESMTPS id v51sm67366675eef.2.2012.02.19.09.45.23 (version=SSLv3 cipher=OTHER); Sun, 19 Feb 2012 09:45:25 -0800 (PST) Message-ID: <4F41352B.4030609@gmail.com> Date: Sun, 19 Feb 2012 18:45:15 +0100 From: Stefano Lattarini MIME-Version: 1.0 References: <201201101541.53346.vapier@gentoo.org> <20120110211029.GA12196@elliptictech.com> <201201101657.43239.vapier@gentoo.org> In-Reply-To: <201201101657.43239.vapier@gentoo.org> Content-Type: multipart/mixed; boundary="------------030107070600050302060001" X-Spam-Score: -2.6 (--) 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 (--) This is a multi-part message in MIME format. --------------030107070600050302060001 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit retitle 10473 get directory holding automake-provided scripts and data files severity 10473 wishlist tags 10473 patch thanks [dropping autoconf@gnu.org] On 01/10/2012 10:57 PM, Mike Frysinger wrote: > On Tuesday 10 January 2012 16:10:29 Nick Bowler wrote: >> On 2012-01-10 15:41 -0500, Mike Frysinger wrote: >>> On Monday 09 January 2012 18:49:28 Eric Blake wrote: >>>> On 01/09/2012 03:46 PM, Roger Pau Monné wrote: >>>>> It creates the needed files, but exits with status 1. Is there anyway >>>>> to generate config.sub without relying on Automake, >>>> >>>> Use 'cp'. That's all the more automake was doing when it outputs lines >>>> about installing helper files. >>> >>> i wish automake (and gettext) had modes where you could say "i just want >>> you to install XXX helpers for me)". copying things by hand is error >>> prone due to changing install paths across versions and distros. >>> >>> automake --foreign -c -f --tools="config.sub config.guess" >> >> CCing bug-automake. This feature would be generally useful: another >> example for automake-using packages is that at "foreign" strictness the >> INSTALL file is not copied, but maintainers may still want to include it. >> >> Perhaps a simpler and more flexible option is to add an option to >> automake which prints out the location where it finds these files, >> similar to aclocal --print-ac-dir. Something like (for example) >> >> % automake --print-snippet-dir >> /usr/share/automake-1.11 > > i'd be OK with that too if the assumption is that all relevant files people > want to manually copy would be in there (INSTALL, config.sub, etc...). > Here is a patch adding a new "--print-libdir" option (naming selected for consistency with the "--libdir=DIR" option). I will push it by tomorrow if there is no objection. Regards, Stefano --------------030107070600050302060001 Content-Type: text/x-diff; name="0001-automake-new-option-to-print-locations-of-scripts-an.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0001-automake-new-option-to-print-locations-of-scripts-an.pa"; filename*1="tch" >From d2d0564ee78c58c2a22fdb1af56787fa9e5b05f9 Mon Sep 17 00:00:00 2001 Message-Id: From: Stefano Lattarini Date: Sun, 19 Feb 2012 18:43:28 +0100 Subject: [PATCH] automake: new option to print locations of scripts and data files With this change, we add a new automake option '--print-libdir' that prints (on stdout) the path of the directory containing the Automake-provided scripts (e.g., 'missing' and 'install-sh') and data files (e.g., INSTALL or texinfo.tex). Suggestion by Nick Bowler. See also automake bug#10473. * automake.in (parse_arguments): Handle the new option. (usage): Mention it. * doc/automake.texi (automake Invocation): Document it. * NEWS: Update. * tests/print-dir.test: New test. * tests/list-of-tests.mk: Add it. --- NEWS | 3 +++ automake.in | 4 +++- doc/automake.texi | 6 ++++++ tests/list-of-tests.mk | 1 + tests/print-libdir.test | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 59 insertions(+), 1 deletions(-) create mode 100755 tests/print-libdir.test diff --git a/NEWS b/NEWS index c1de9b2..14aae55 100644 --- a/NEWS +++ b/NEWS @@ -116,6 +116,9 @@ New in 1.11a: * Miscellaneous changes: + - Automake has a new option '--print-lidir' that prints the path of the + directory containing the Automake-provided scripts and data files. + - The `dist' and `dist-all' targets now can run compressors in parallel. - Automake can now generate silenced rules for texinfo outputs. diff --git a/automake.in b/automake.in index 5ee9f8a..13e65df 100644 --- a/automake.in +++ b/automake.in @@ -8268,7 +8268,8 @@ Flavors: Library files: -a, --add-missing add missing standard files to package - --libdir=DIR directory storing library files + --libdir=DIR set directory storing library files + --print-libdir print directory storing library files -c, --copy with -a, copy missing files (default is symlink) -f, --force-missing force update of standard files @@ -8327,6 +8328,7 @@ sub parse_arguments () 'version' => \&version, 'help' => \&usage, 'libdir=s' => \$libdir, + 'print-libdir' => sub { print "$libdir\n"; exit 0; }, 'gnu' => sub { $strict = 'gnu'; }, 'gnits' => sub { $strict = 'gnits'; }, 'foreign' => sub { $strict = 'foreign'; }, diff --git a/doc/automake.texi b/doc/automake.texi index ef094c0..f342686 100644 --- a/doc/automake.texi +++ b/doc/automake.texi @@ -2587,6 +2587,12 @@ for more information. Look for Automake data files in directory @var{dir} instead of in the installation directory. This is typically used for debugging. +@item --print-libdir +@opindex --print-libdir +Print the path of the installation directory containing Automake-provided +scripts and data files (like e.g., @file{texinfo.texi} and +@file{install-sh}). + @item -c @opindex -c @itemx --copy diff --git a/tests/list-of-tests.mk b/tests/list-of-tests.mk index a80879f..d10f585 100644 --- a/tests/list-of-tests.mk +++ b/tests/list-of-tests.mk @@ -813,6 +813,7 @@ primary-prefix-invalid-couples.tap \ primary-prefix-valid-couples.test \ primary-prefix-couples-force-valid.test \ primary-prefix-couples-documented-valid.test \ +print-libdir.test \ proginst.test \ programs-primary-rewritten.test \ py-compile-basic.test \ diff --git a/tests/print-libdir.test b/tests/print-libdir.test new file mode 100755 index 0000000..f5764b3 --- /dev/null +++ b/tests/print-libdir.test @@ -0,0 +1,46 @@ +#! /bin/sh +# Copyright (C) 2011-2012 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 . + +# Test on automake options '--print-data-dir' and '--print-script-dir'. + +am_create_testdir=empty +. ./defs || Exit 1 + +libdir=`$AUTOMAKE --print-libdir` || Exit 1 +case $libdir in /*);; *) Exit 1;; esac +test -d "$libdir" +test "$libdir" = "$am_pkgvdatadir" +test "$libdir" = "$am_scriptdir" + +: > Makefile.am + +cat > configure.ac <) id 1RzAw4-0007Ux-D6 for submit@debbugs.gnu.org; Sun, 19 Feb 2012 12:52:32 -0500 Received: from mail-ee0-f44.google.com ([74.125.83.44]:42423) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RzAw1-0007Uj-Nb for control@debbugs.gnu.org; Sun, 19 Feb 2012 12:52:30 -0500 Received: by eekc41 with SMTP id c41so2868451eek.3 for ; Sun, 19 Feb 2012 09:50:17 -0800 (PST) Received-SPF: pass (google.com: domain of stefano.lattarini@gmail.com designates 10.14.199.193 as permitted sender) client-ip=10.14.199.193; Authentication-Results: mr.google.com; spf=pass (google.com: domain of stefano.lattarini@gmail.com designates 10.14.199.193 as permitted sender) smtp.mail=stefano.lattarini@gmail.com; dkim=pass header.i=stefano.lattarini@gmail.com Received: from mr.google.com ([10.14.199.193]) by 10.14.199.193 with SMTP id x41mr8974355een.29.1329673817800 (num_hops = 1); Sun, 19 Feb 2012 09:50:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:mime-version:to:subject:content-type :content-transfer-encoding; bh=gcp6Iaid6iBVNUsFjYj82QG4gMLY/qndYKWSn6Vlhq0=; b=OhrwTdWSeI2Rvts53/hn7KihV4mevC+HTK2tuJ9WOi+fhhwxV39vV0kkwR28CyojZL KQ1LJ/V4nNoSyFTz7wI47BnlUR/MYIFj8tdjsS6JN19G/56Uv3gkHWWOsU4Qkbo5v8+W TN2gQa7vyExRsetPfBhzHzPiJu8rQxMSLpGbw= Received: by 10.14.199.193 with SMTP id x41mr7153038een.29.1329673817748; Sun, 19 Feb 2012 09:50:17 -0800 (PST) Received: from [79.20.98.232] (host232-98-dynamic.20-79-r.retail.telecomitalia.it. [79.20.98.232]) by mx.google.com with ESMTPS id u9sm50321141eem.11.2012.02.19.09.50.16 (version=SSLv3 cipher=OTHER); Sun, 19 Feb 2012 09:50:16 -0800 (PST) Message-ID: <4F413656.7060102@gmail.com> Date: Sun, 19 Feb 2012 18:50:14 +0100 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 (--) retitle 10473 get directory holding automake-provided scripts and data files severity 10473 wishlist tags 10473 patch severity 10816 wishlist thanks From unknown Mon Jun 23 04:13:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10473: close bug References: <20120110211029.GA12196@elliptictech.com> In-Reply-To: <20120110211029.GA12196@elliptictech.com> Resent-From: Stefano Lattarini Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-automake@gnu.org Resent-Date: Tue, 13 Mar 2012 12:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10473 X-GNU-PR-Package: automake X-GNU-PR-Keywords: patch To: 10473@debbugs.gnu.org Received: via spool by 10473-submit@debbugs.gnu.org id=B10473.13316423005924 (code B ref 10473); Tue, 13 Mar 2012 12:39:01 +0000 Received: (at 10473) by debbugs.gnu.org; 13 Mar 2012 12:38:20 +0000 Received: from localhost ([127.0.0.1]:48398 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S7Qza-0001XT-MK for submit@debbugs.gnu.org; Tue, 13 Mar 2012 08:38:19 -0400 Received: from mail-bk0-f44.google.com ([209.85.214.44]:36821) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S7QzX-0001XF-GD; Tue, 13 Mar 2012 08:38:16 -0400 Received: by bkuw5 with SMTP id w5so320744bku.3 for ; Tue, 13 Mar 2012 05:08:18 -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=5VM2Dalglyaeqg4W0nhDeaxusVaCpkAHcy7PJfnLON8=; b=eVVjxo9fnh7kuToODtofRsNpS311mtswXCim9VGX1+Jh/OAhnYCAG1PUesiDoGgjjj IRGB40kb+U6ahqw2FqbhJ59FfbxR7NZGrycgYRzv8gKnU5Eb4HUskqs6YmHMrhjaNcOM d9dehFDRsEp+IYfNLs9NWgl3OEfSPrqYLB6dqX80C/9ocJ+cEz1sgB03n0U8dBsOdyJM o/cQrWxuTqdgFuWdshYmPjGFOXh3pH63up2eSGLW7+WIGgYsa7UUnTRZz+SeGyuLZtEG KfVRGELDmSz0AtuirYLjfhTULooRMojlyRxDs8wssBfQ1TRzQWfRHxslA+aZ6HfBPSnf NhZw== Received: by 10.204.131.84 with SMTP id w20mr6235482bks.65.1331640498349; Tue, 13 Mar 2012 05:08:18 -0700 (PDT) Received: from [82.58.48.117] (host117-48-dynamic.58-82-r.retail.telecomitalia.it. [82.58.48.117]) by mx.google.com with ESMTPS id f6sm952455bkg.10.2012.03.13.05.08.16 (version=SSLv3 cipher=OTHER); Tue, 13 Mar 2012 05:08:16 -0700 (PDT) Message-ID: <4F5F38A8.2020705@gmail.com> Date: Tue, 13 Mar 2012 13:08:08 +0100 From: Stefano Lattarini MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Score: -2.6 (--) 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 (--) close 10473 thanks The patch has been applied three weeks ago, so I'm closing this bug report. Thanks, Stefano