From MAILER-DAEMON Thu Oct 04 01:27:56 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TJdyW-0004iR-3F
	for mharc-autoconf@gnu.org; Thu, 04 Oct 2012 01:27:56 -0400
Received: from eggs.gnu.org ([208.118.235.92]:50948)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <vhaisman@gmail.com>) id 1TJdyT-0004i0-LV
	for autoconf@gnu.org; Thu, 04 Oct 2012 01:27:54 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <vhaisman@gmail.com>) id 1TJdyS-00031X-L2
	for autoconf@gnu.org; Thu, 04 Oct 2012 01:27:53 -0400
Received: from mail-bk0-f41.google.com ([209.85.214.41]:61076)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <vhaisman@gmail.com>) id 1TJdyS-00031G-Cm
	for autoconf@gnu.org; Thu, 04 Oct 2012 01:27:52 -0400
Received: by mail-bk0-f41.google.com with SMTP id jm1so38140bkc.0
	for <autoconf@gnu.org>; Wed, 03 Oct 2012 22:27:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=message-id:date:from:user-agent:mime-version:to:subject
	:x-enigmail-version:content-type;
	bh=GO0zWapyn7P9HHOOKa51mMZmQxcV3e30PJKIF+k/0vg=;
	b=hPvZXj/KBv1Tm8ioQDSD7TwTviMN7x5mIZgA0ufLkrZljr449gQnPhF8qaKsKy+02N
	IAkiw6GUUwQKmO02OoVsUX9bzMV0FTgHd2gggcI8SNExLn2f533iF1rO/Ols/2FeRFqH
	q/KvSpwQ+XdS/qoZLKFIX+kPMbdFjp/5Hh68UU/dDSQgr926Hbi/eJPJQZ6HWvkA54SB
	V9qWc8WsVYf7Vq5aqD+2t+8jqNAZvrILdrZnVEy2iXTeHXFqh8DPd5r6yH1CQu5GGfCm
	60QQDcD342ZoljQVT6xvgf0kGrm5ecbrK0MNFgmshfbqYuK+2BlbplG7mUfFvER1YOG5
	eoYg==
Received: by 10.204.6.75 with SMTP id 11mr1182846bky.10.1349328470840;
	Wed, 03 Oct 2012 22:27:50 -0700 (PDT)
Received: from [10.0.0.1] (242.91.broadband5.iol.cz. [88.100.91.242])
	by mx.google.com with ESMTPS id e13sm4616697bkw.12.2012.10.03.22.27.48
	(version=SSLv3 cipher=OTHER); Wed, 03 Oct 2012 22:27:49 -0700 (PDT)
Message-ID: <506D1E52.1070706@gmail.com>
Date: Thu, 04 Oct 2012 07:27:46 +0200
From: =?UTF-8?B?VsOhY2xhdiBaZW1hbg==?= <vhaisman@gmail.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:15.0) Gecko/20120827 Thunderbird/15.0
MIME-Version: 1.0
To: autoconf@gnu.org
Subject: Add clang++ to AC_PROG_CXX
X-Enigmail-Version: 1.4.4
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature";
	boundary="------------enigF68AFF4C1105C4A9984BBE49"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.214.41
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 04 Oct 2012 05:27:54 -0000

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigF68AFF4C1105C4A9984BBE49
Content-Type: multipart/mixed;
 boundary="------------080904030803080506070908"

This is a multi-part message in MIME format.
--------------080904030803080506070908
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hi.

I wonder if the attached patch is not in order now that Clang is well
established compiler.

--=20
VZ


--------------080904030803080506070908
Content-Type: text/plain; charset=UTF-8;
 name="autoconf-AC_PROG_CXX-clang++.patch.txt"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="autoconf-AC_PROG_CXX-clang++.patch.txt"

ZGlmZiAtLWdpdCBhL2xpYi9hdXRvY29uZi9jLm00IGIvbGliL2F1dG9jb25mL2MubTQKaW5k
ZXggYWQ0MDUyNy4uYzdhMTBjMSAxMDA2NDQKLS0tIGEvbGliL2F1dG9jb25mL2MubTQKKysr
IGIvbGliL2F1dG9jb25mL2MubTQKQEAgLTcwNCw3ICs3MDQsNyBAQCBpZiB0ZXN0IC16ICIk
Q1hYIjsgdGhlbgogICBlbHNlCiAgICAgQUNfQ0hFQ0tfVE9PTFMoQ1hYLAogCQkgICBbbTRf
ZGVmYXVsdChbJDFdLAotCQkJICAgICAgIFtnKysgYysrIGdwcCBhQ0MgQ0MgY3h4IGNjKysg
Y2wuZXhlIEZDQyBLQ0MgUkNDIHhsQ19yIHhsQ10pXSwKKwkJCSAgICAgICBbZysrIGMrKyBn
cHAgY2xhbmcrKyBhQ0MgQ0MgY3h4IGNjKysgY2wuZXhlIEZDQyBLQ0MgUkNDIHhsQ19yIHhs
Q10pXSwKIAkJICAgZysrKQogICBmaQogZmkK
--------------080904030803080506070908--

--------------enigF68AFF4C1105C4A9984BBE49
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iF4EAREIAAYFAlBtHlMACgkQ6OWUyaYNY6NBTQEAp5wE1GFacZ3GAy6vvoZ139EP
CV7M3taMA5CNsi4SrxQBAKVc5MhKXMKQYUB1nUt0v4o8EeWJRb+SFqURgddY+kqx
=ax1B
-----END PGP SIGNATURE-----

--------------enigF68AFF4C1105C4A9984BBE49--


From MAILER-DAEMON Thu Oct 04 01:39:52 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TJeA4-0007gS-EU
	for mharc-autoconf@gnu.org; Thu, 04 Oct 2012 01:39:52 -0400
Received: from eggs.gnu.org ([208.118.235.92]:40713)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1TJeA2-0007dt-2m
	for autoconf@gnu.org; Thu, 04 Oct 2012 01:39:51 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1TJeA0-0006at-CV
	for autoconf@gnu.org; Thu, 04 Oct 2012 01:39:50 -0400
Received: from smtp.cs.ucla.edu ([131.179.128.62]:40700)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1TJeA0-0006ad-6U
	for autoconf@gnu.org; Thu, 04 Oct 2012 01:39:48 -0400
Received: from localhost (localhost.localdomain [127.0.0.1])
	by smtp.cs.ucla.edu (Postfix) with ESMTP id A533139E800A;
	Wed,  3 Oct 2012 22:39:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu
Received: from smtp.cs.ucla.edu ([127.0.0.1])
	by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id KVcXnRROmnzU; Wed,  3 Oct 2012 22:39:47 -0700 (PDT)
Received: from [192.168.1.3] (pool-108-23-119-2.lsanca.fios.verizon.net
	[108.23.119.2])
	by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 3A4DFA60003;
	Wed,  3 Oct 2012 22:39:47 -0700 (PDT)
Message-ID: <506D2124.8040009@cs.ucla.edu>
Date: Wed, 03 Oct 2012 22:39:48 -0700
From: Paul Eggert <eggert@cs.ucla.edu>
Organization: UCLA Computer Science Department
User-Agent: Mozilla/5.0 (X11; Linux i686;
	rv:15.0) Gecko/20120912 Thunderbird/15.0.1
MIME-Version: 1.0
To: =?UTF-8?B?VsOhY2xhdiBaZW1hbg==?= <vhaisman@gmail.com>
Subject: Re: Add clang++ to AC_PROG_CXX
References: <506D1E52.1070706@gmail.com>
In-Reply-To: <506D1E52.1070706@gmail.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 131.179.128.62
Cc: autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 04 Oct 2012 05:39:51 -0000

On 10/03/2012 10:27 PM, V=C3=A1clav Zeman wrote:
> I wonder if the attached patch is not in order

Why just C++?  Shouldn't this also affect C,
and other languages?


From MAILER-DAEMON Thu Oct 04 03:41:58 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TJg4E-0006yX-4T
	for mharc-autoconf@gnu.org; Thu, 04 Oct 2012 03:41:58 -0400
Received: from eggs.gnu.org ([208.118.235.92]:53616)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <vhaisman@gmail.com>) id 1TJg4B-0006xZ-QQ
	for autoconf@gnu.org; Thu, 04 Oct 2012 03:41:56 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <vhaisman@gmail.com>) id 1TJg4A-0005jY-Pc
	for autoconf@gnu.org; Thu, 04 Oct 2012 03:41:55 -0400
Received: from mail-pb0-f41.google.com ([209.85.160.41]:63404)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <vhaisman@gmail.com>) id 1TJg4A-0005hN-Jv
	for autoconf@gnu.org; Thu, 04 Oct 2012 03:41:54 -0400
Received: by mail-pb0-f41.google.com with SMTP id rq2so373949pbb.0
	for <autoconf@gnu.org>; Thu, 04 Oct 2012 00:41:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=d8Jj0AdaOzBZgKNI+l92jTqR8JB35RRsYUWClFw/UUg=;
	b=FJMRX8/Dmh6YSslM6blC8MVc3WkbLZ9wZDbpk/3+Gg+oLzGRLXHAu46sajnPJ+fd2X
	ISduJe4RHrh3nhQEiKD+Sh4tXFsJq+hPZwoIoTUdj6WwPUJgsGSjtJHXz7CgTchvD3zx
	mmC0qx5eJ+WkE+3u/xO+qRg0QXHkYp6dNuhQIo/dMV3FnctoRF1eWn8WGyT5GF+ZLG0b
	OdV5T5fu9COtEs6WFLhbn/fJsH71u1c3coNZopCe6x1ib03/75IKwvqxh2ffTDT63TgC
	LuJ59SiGG+wKT38ymQg7RloE0MzFshovJo4HLiGbSvLbYfCFJ5fil5xGAeTF9vIHlfdi
	UhUw==
MIME-Version: 1.0
Received: by 10.66.72.197 with SMTP id f5mr11323805pav.20.1349336513314; Thu,
	04 Oct 2012 00:41:53 -0700 (PDT)
Received: by 10.68.36.72 with HTTP; Thu, 4 Oct 2012 00:41:53 -0700 (PDT)
In-Reply-To: <506D2124.8040009@cs.ucla.edu>
References: <506D1E52.1070706@gmail.com>
	<506D2124.8040009@cs.ucla.edu>
Date: Thu, 4 Oct 2012 09:41:53 +0200
Message-ID: <CAKw7uVg4JSN9j7Op8h4XJEDqmexdJMiaxVeV_POH-LySem188g@mail.gmail.com>
Subject: Re: Add clang++ to AC_PROG_CXX
From: =?UTF-8?Q?V=C3=A1clav_Zeman?= <vhaisman@gmail.com>
To: Paul Eggert <eggert@cs.ucla.edu>
Content-Type: multipart/mixed; boundary=f46d042fddb08f001304cb36e322
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.160.41
Cc: autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 04 Oct 2012 07:41:56 -0000

--f46d042fddb08f001304cb36e322
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 4 October 2012 07:39, Paul Eggert wrote:
> On 10/03/2012 10:27 PM, V=C3=A1clav Zeman wrote:
>> I wonder if the attached patch is not in order
>
> Why just C++?  Shouldn't this also affect C,
> and other languages?
Because C++ is what I am interested in. :) And because I actually
could not find a similar list of compilers to be checked for
AC_PROG_CC. Does attached patch work for you?

--=20
VZ

--f46d042fddb08f001304cb36e322
Content-Type: text/plain; charset=US-ASCII; name="autoconf-AC_PROG_CC-clang.patch.txt"
Content-Disposition: attachment; 
	filename="autoconf-AC_PROG_CC-clang.patch.txt"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_h7vk46rk0

ZGlmZiAtLWdpdCBhL2xpYi9hdXRvY29uZi9jLm00IGIvbGliL2F1dG9jb25mL2MubTQKaW5kZXgg
YWQ0MDUyNy4uZDg2NjhjNyAxMDA2NDQKLS0tIGEvbGliL2F1dG9jb25mL2MubTQKKysrIGIvbGli
L2F1dG9jb25mL2MubTQKQEAgLTQ0Myw2ICs0NDMsOSBAQCBtNF9pZnZhbChbJDFdLAogICAgICAg
W0FDX0NIRUNLX1RPT0xTKENDLCBbJDFdKV0sCiBbQUNfQ0hFQ0tfVE9PTChDQywgZ2NjKQogaWYg
dGVzdCAteiAiJENDIjsgdGhlbgorICBBQ19DSEVDS19UT09MKENDLCBjbGFuZykKK2ZpCitpZiB0
ZXN0IC16ICIkQ0MiOyB0aGVuCiAgIGRubCBIZXJlIHdlIHdhbnQ6CiAgIGRubAlBQ19DSEVDS19U
T09MKENDLCBjYykKICAgZG5sIGJ1dCB3aXRob3V0IHRoZSBjaGVjayBmb3IgYSB0b29sIHdpdGhv
dXQgdGhlIHByZWZpeC4K
--f46d042fddb08f001304cb36e322--


From MAILER-DAEMON Mon Oct 08 04:35:01 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TL8nl-0000oE-2a
	for mharc-autoconf@gnu.org; Mon, 08 Oct 2012 04:35:01 -0400
Received: from eggs.gnu.org ([208.118.235.92]:44778)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <prvs=62139f95b=sujit.devkar@tcsin.com>)
	id 1TL4X5-0007OQ-Kt
	for autoconf@gnu.org; Mon, 08 Oct 2012 00:01:32 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <prvs=62139f95b=sujit.devkar@tcsin.com>)
	id 1TL4X4-00016X-JT
	for autoconf@gnu.org; Mon, 08 Oct 2012 00:01:31 -0400
Received: from inmumg02.tcs.com ([219.64.33.222]:64133)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <prvs=62139f95b=sujit.devkar@tcsin.com>)
	id 1TL4X4-00016J-9A
	for autoconf@gnu.org; Mon, 08 Oct 2012 00:01:30 -0400
From: Sujit Devkar <sujit.devkar@tcs.com>
X-IronPort-AV: E=Sophos;i="4.80,549,1344191400"; d="scan'208";a="93053487"
Received: from cdctdlpprotect4 (unknown [127.0.0.1])
	by cdctdlpprotect4.localdomain (Service) with ESMTP id 5DA891F40F
	for <autoconf@gnu.org>; Mon,  8 Oct 2012 09:24:17 +0530 (IST)
Received: from InMumH01.tcs.com (unknown [172.17.9.35])
	by cdctdlpprotect4.localdomain (Service) with ESMTP id 52E711F402
	for <autoconf@gnu.org>; Mon,  8 Oct 2012 09:24:17 +0530 (IST)
Received: from inmumzh01.tcsin.com ([172.17.242.37])
	by InMumH01.tcs.com (Lotus Domino Release 8.5.2FP4HF186)
	with ESMTP id 2012100809312889-235025 ;
	Mon, 8 Oct 2012 09:31:28 +0530 
Received: from localhost (localhost.localdomain [127.0.0.1])
	by inmumzh01.tcsin.com (Postfix) with ESMTP id D61F5D8002
	for <autoconf@gnu.org>; Mon,  8 Oct 2012 09:31:28 +0530 (IST)
X-Virus-Scanned: amavisd-new at tcsin.com
Received: from inmumzh01.tcsin.com ([127.0.0.1])
	by localhost (inmumzh01.tcsin.com [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 33053qUeMajQ for <autoconf@gnu.org>;
	Mon,  8 Oct 2012 09:31:28 +0530 (IST)
Received: from [127.0.0.1] (unknown [172.17.64.92])
	by inmumzh01.tcsin.com (Postfix) with ESMTPSA id BDD6CD8001
	for <autoconf@gnu.org>; Mon,  8 Oct 2012 09:31:28 +0530 (IST)
Message-ID: <50725017.5030606@tcsin.com>
Date: Mon, 08 Oct 2012 09:31:27 +0530
User-Agent: Mozilla/5.0 (Windows NT 5.1;
	rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
To: autoconf@gnu.org
Subject: Fwd: [Automake] Including Dynamic libraries and java functionality
	in makefile.
References: <50724FC5.7050000@tcsin.com>
In-Reply-To: <50724FC5.7050000@tcsin.com>
X-Forwarded-Message-Id: <50724FC5.7050000@tcsin.com>
X-MIMETrack: Itemize by SMTP Server on InMumH01/TCS(Release 8.5.2FP4HF186 |
	September 5, 2012) at 10/08/2012 09:31:28,
	Serialize by Router on InMumH01/TCS(Release 8.5.2FP4HF186 | September 5,
	2012) at 10/08/2012 09:31:28,
	Serialize complete at 10/08/2012 09:31:28
X-TNEFEvaluated: 1
Content-Type: text/plain; charset="iso-8859-1"; format="flowed"
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 219.64.33.222
X-Mailman-Approved-At: Mon, 08 Oct 2012 04:34:59 -0400
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Oct 2012 04:01:32 -0000

Dear Sir/Madam,
I am working on autotools.
I was using shell script to compile my c++ project.
My shell script is
g++ -I/usr/abc/inc -L/usr/abc/lib abc.cpp -lsrl -o abc  works
perfectly well. I need to use this in autoconf.

Also I use .java files in the project and I use
gcj --main=3Dexample Example.java --classpath=3Dlibrary --classpath=3Dlibra=
ry
Example --indirect-dispatch

Could you please tell me how can I write this in configure.ac?
Which files should I include in AC_CONFIG_SRCDIR and proj_SOURCES=3D..?

Regards,
Sujit


=3D=3D=3D=3D=3D-----=3D=3D=3D=3D=3D-----=3D=3D=3D=3D=3D
Notice: The information contained in this e-mail
message and/or attachments to it may contain =

confidential or privileged information. If you are =

not the intended recipient, any dissemination, use, =

review, distribution, printing or copying of the =

information contained in this e-mail message =

and/or attachments to it are strictly prohibited. If =

you have received this communication in error, =

please notify us by reply e-mail or telephone and =

immediately and permanently delete the message =

and any attachments. Thank you





From MAILER-DAEMON Mon Oct 08 04:35:02 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TL8nm-0000rF-7r
	for mharc-autoconf@gnu.org; Mon, 08 Oct 2012 04:35:02 -0400
Received: from eggs.gnu.org ([208.118.235.92]:45086)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <prvs=62139f95b=sujit.devkar@tcsin.com>)
	id 1TL4Yf-0007Vh-Ju
	for autoconf@gnu.org; Mon, 08 Oct 2012 00:03:10 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <prvs=62139f95b=sujit.devkar@tcsin.com>)
	id 1TL4Ye-0001aO-DO
	for autoconf@gnu.org; Mon, 08 Oct 2012 00:03:09 -0400
Received: from inmumg02.tcs.com ([219.64.33.222]:47265)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <prvs=62139f95b=sujit.devkar@tcsin.com>)
	id 1TL4Ye-0001Zx-3J
	for autoconf@gnu.org; Mon, 08 Oct 2012 00:03:08 -0400
From: Sujit Devkar <sujit.devkar@tcs.com>
X-IronPort-AV: E=Sophos;i="4.80,549,1344191400"; d="scan'208";a="93053677"
Received: from cdctdlpprotect4 (unknown [127.0.0.1])
	by cdctdlpprotect4.localdomain (Service) with ESMTP id 249A11F40F
	for <autoconf@gnu.org>; Mon,  8 Oct 2012 09:25:55 +0530 (IST)
Received: from InMumH01.tcs.com (unknown [172.17.10.179])
	by cdctdlpprotect4.localdomain (Service) with ESMTP id 1967A1F402
	for <autoconf@gnu.org>; Mon,  8 Oct 2012 09:25:55 +0530 (IST)
Received: from inmumzh01.tcsin.com ([172.17.242.37])
	by InMumH01.tcs.com (Lotus Domino Release 8.5.2FP4HF186)
	with ESMTP id 2012100809330663-235281 ;
	Mon, 8 Oct 2012 09:33:06 +0530 
Received: from localhost (localhost.localdomain [127.0.0.1])
	by inmumzh01.tcsin.com (Postfix) with ESMTP id 97ADCD8003
	for <autoconf@gnu.org>; Mon,  8 Oct 2012 09:33:06 +0530 (IST)
X-Virus-Scanned: amavisd-new at tcsin.com
Received: from inmumzh01.tcsin.com ([127.0.0.1])
	by localhost (inmumzh01.tcsin.com [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id opXGw7Jc821t for <autoconf@gnu.org>;
	Mon,  8 Oct 2012 09:33:06 +0530 (IST)
Received: from [127.0.0.1] (unknown [172.17.64.92])
	by inmumzh01.tcsin.com (Postfix) with ESMTPSA id 81E7ED8002
	for <autoconf@gnu.org>; Mon,  8 Oct 2012 09:33:06 +0530 (IST)
Message-ID: <50725079.3030304@tcsin.com>
Date: Mon, 08 Oct 2012 09:33:05 +0530
User-Agent: Mozilla/5.0 (Windows NT 5.1;
	rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
To: autoconf@gnu.org
Subject: [Autoconf] Including Files in configure.ac and makefile.am
References: <50725017.5030606@tcsin.com>
In-Reply-To: <50725017.5030606@tcsin.com>
X-Forwarded-Message-Id: <50725017.5030606@tcsin.com>
X-MIMETrack: Itemize by SMTP Server on InMumH01/TCS(Release 8.5.2FP4HF186 |
	September 5, 2012) at 10/08/2012 09:33:06,
	Serialize by Router on InMumH01/TCS(Release 8.5.2FP4HF186 | September 5,
	2012) at 10/08/2012 09:33:06,
	Serialize complete at 10/08/2012 09:33:06
X-TNEFEvaluated: 1
Content-Type: text/plain; charset="iso-8859-1"; format="flowed"
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 219.64.33.222
X-Mailman-Approved-At: Mon, 08 Oct 2012 04:35:00 -0400
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Oct 2012 04:03:11 -0000

Dear Sir/Madam,
I am working on autotools.
I was using shell script to compile my c++ project.
My shell script is
g++ -I/usr/abc/inc -L/usr/abc/lib abc.cpp -lsrl -o abc  works
perfectly well. I need to use this in autoconf.

Also I use .java files in the project and I use
gcj --main=3Dexample Example.java --classpath=3Dlibrary --classpath=3Dlibra=
ry
Example --indirect-dispatch

Could you please tell me how can I write this in configure.ac?
Which files should I include in AC_CONFIG_SRCDIR and proj_SOURCES=3D..?

Regards,
Sujit



=3D=3D=3D=3D=3D-----=3D=3D=3D=3D=3D-----=3D=3D=3D=3D=3D
Notice: The information contained in this e-mail
message and/or attachments to it may contain =

confidential or privileged information. If you are =

not the intended recipient, any dissemination, use, =

review, distribution, printing or copying of the =

information contained in this e-mail message =

and/or attachments to it are strictly prohibited. If =

you have received this communication in error, =

please notify us by reply e-mail or telephone and =

immediately and permanently delete the message =

and any attachments. Thank you





From MAILER-DAEMON Mon Oct 08 11:27:16 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TLFEi-00042j-Bo
	for mharc-autoconf@gnu.org; Mon, 08 Oct 2012 11:27:16 -0400
Received: from eggs.gnu.org ([208.118.235.92]:51419)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <pabs3@bonedaddy.net>) id 1TLBhQ-0001BT-MJ
	for autoconf@gnu.org; Mon, 08 Oct 2012 07:40:45 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <pabs3@bonedaddy.net>) id 1TLBhL-0007sc-Vz
	for autoconf@gnu.org; Mon, 08 Oct 2012 07:40:40 -0400
Received: from ns1.bonedaddy.net ([70.91.141.202]:44917)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <pabs3@bonedaddy.net>) id 1TLBhL-0007rm-Pr
	for autoconf@gnu.org; Mon, 08 Oct 2012 07:40:35 -0400
Received: from [IPv6:::1] (localhost [127.0.0.1])
	by ns1.bonedaddy.net (8.14.5/8.14.4) with ESMTP id q98BeV2m007856
	for <autoconf@gnu.org>; Mon, 8 Oct 2012 07:40:33 -0400
Message-ID: <1349696427.11713.95.camel@chianamo>
Subject: [RFC] getting rid of the config.guess/sub problem when
	bootstrapping new ports/systems
From: Paul Wise <pabs3@bonedaddy.net>
To: autoconf@gnu.org
Date: Mon, 08 Oct 2012 19:40:27 +0800
Content-Type: multipart/signed; micalg="pgp-sha512";
	protocol="application/pgp-signature"; boundary="=-szHyr1VxZGYToNvTmotr"
X-Mailer: Evolution 3.4.3-1 
Mime-Version: 1.0
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 70.91.141.202
X-Mailman-Approved-At: Mon, 08 Oct 2012 11:27:15 -0400
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Oct 2012 11:40:45 -0000


--=-szHyr1VxZGYToNvTmotr
Content-Type: multipart/mixed; boundary="=-AlJtTEnYTSjHpgdyjc16"


--=-AlJtTEnYTSjHpgdyjc16
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi all,

So, Debian is in the process of bringing up our upcoming arm64 port.
Unfortunately we are also coming across lots of packages with rather
outdated config.guess and config.sub files (see links below). We could
patch every single package that contains config.guess and config.sub but
that would be a lot of effort that doesn't scale. We could also patch
our build tools but the problem would still exist for other distros.

I would like to get rid of this issue once and for all by making the
update process for config.guess and config.sub once per machine or once
per package instead of once per package.

My initial approach in 2009 was to patch config.guess and config.sub to
look for newer versions of themselves but the maintainer of these files
wasn't happy with that approach.

I recently re-contacted him about this issue and was suggested to patch
autoconf. The approach I have taken is to make autoconf-produced
configure scripts use the package-local config.guess/config.sub by
default and if that fails then find the newest config.guess/config.sub
in a number of paths on the system and use it. I am not very familiar
with autoconf internals, m4 or the intricacies of ancient shells, so I
would very much appreciate a review of both the approach and my initial
attempt at implementing this, please see the attached patch.

If anyone knows where config.guess and config.sub are installed on
common platforms like the various Linux or BSD distributions, please let
me know those locations. I have only the paths for Debian and Gentoo.

http://wookware.org/files/aarch64faillog
http://bugs.debian.org/689607
http://bugs.debian.org/689610
http://bugs.debian.org/689611
http://bugs.debian.org/689612
http://bugs.debian.org/689613
http://bugs.debian.org/689614
http://bugs.debian.org/689615
http://bugs.debian.org/689617
http://bugs.debian.org/689618
http://bugs.debian.org/689619
http://bugs.debian.org/689620
http://bugs.debian.org/689621

--=20
bye,
pabs

http://bonedaddy.net/pabs3/

--=-AlJtTEnYTSjHpgdyjc16
Content-Disposition: attachment;
	filename*0=0001-Check-a-number-of-paths-for-newer-config.guess-confi.pat;
	filename*1=ch
Content-Type: text/x-patch;
	name="0001-Check-a-number-of-paths-for-newer-config.guess-confi.patch";
	charset="UTF-8"
Content-Transfer-Encoding: base64

RnJvbSBhOGUxZTQzOGQ0ZTUyOWJhMGE5ZDFmMjhiNzNlYWNiMmQ4ODEwNzFkIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQ0KRnJvbTogUGF1bCBXaXNlIDxwYWJzM0Bib25lZGFkZHkubmV0Pg0KRGF0
ZTogTW9uLCA4IE9jdCAyMDEyIDE5OjM0OjUwICswODAwDQpTdWJqZWN0OiBbUEFUQ0hdIENoZWNr
IGEgbnVtYmVyIG9mIHBhdGhzIGZvciBuZXdlciBjb25maWcuZ3Vlc3MvY29uZmlnLnN1Yg0KIGFu
ZCBydW4gdGhlIGxhdGVzdC4NCg0KVGhpcyBoZWxwcyBwZW9wbGUgd2hvIGFyZSBib290c3RyYXBw
aW5nIG5ldyBzeXN0ZW1zIGZyb20gZXhpc3Rpbmcgc29mdHdhcmUNCnRoYXQgdXNlcyBHTlUgYXV0
b3Rvb2xzLCBjb25maWcuZ3Vlc3MgYW5kIGNvbmZpZy5zdWIuDQoNClRoaXMgaXMgdmVyeSB1c2Vm
dWwgZm9yIGRpc3RyaWJ1dGlvbnMgbGlrZSBEZWJpYW4gdGhhdCBhZGQgbmV3IGFyY2hpdGVjdHVy
ZXMNCmFuZCB0aGVuIGhhdmUgdG8gdXBkYXRlIGNvbmZpZy5zdWIgYW5kIGNvbmZpZy5ndWVzcyBp
biBldmVyeSBzaW5nbGUgcGFja2FnZQ0KdGhhdCB1c2VzIGF1dG9tYWtlIG9yIGhhdmUgdG8gd29y
a2Fyb3VuZCB0aGUgcHJvYmxlbSBieSBhZGRpbmcgY29kZSB0byBlYWNoDQpwYWNrYWdlIHRvIGNv
cHkgaW4gdGhlIGxhdGVzdCB2ZXJzaW9ucyBvZiB0aGVzZSBzY3JpcHRzIGZyb20gYW5vdGhlciBw
YWNrYWdlDQpjb250YWluaW5nIHRoZSBsYXRlc3QgdmVyc2lvbiBvZiB0aGUgc2NyaXB0cyAoYXV0
b3Rvb2xzLWRldiBpbiBEZWJpYW4pLg0KLS0tDQogbGliL2F1dG9jb25mL2dlbmVyYWwubTQgfCAg
IDM0ICsrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysNCiAxIGZpbGUgY2hhbmdlZCwg
MzQgaW5zZXJ0aW9ucygrKQ0KDQpkaWZmIC0tZ2l0IGEvbGliL2F1dG9jb25mL2dlbmVyYWwubTQg
Yi9saWIvYXV0b2NvbmYvZ2VuZXJhbC5tNA0KaW5kZXggNTFjZWUzMC4uZDYzNjZjOSAxMDA2NDQN
Ci0tLSBhL2xpYi9hdXRvY29uZi9nZW5lcmFsLm00DQorKysgYi9saWIvYXV0b2NvbmYvZ2VuZXJh
bC5tNA0KQEAgLTE3MTksNiArMTcxOSwzNSBAQCBhY19jb25maWd1cmU9IiRTSEVMTCAkYWNfYXV4
X2Rpci9jb25maWd1cmUiICAjIFBsZWFzZSBkb24ndCB1c2UgdGhpcyB2YXIuDQogQUNfUFJPVklE
RShbQUNfQ09ORklHX0FVWF9ESVJfREVGQVVMVF0pZG5sDQogXSkjIEFDX0NPTkZJR19BVVhfRElS
Uw0KIA0KKyMgU2VhcmNoIGZvciB0aGUgbmV3ZXN0IGNvbmZpZy5zdWIvY29uZmlnLmd1ZXNzDQor
QUNfREVGVU4oW0FDX0NPTkZJR19BVVhfRVhUX0RJUlNdLA0KK1sNCitjdXJfdj1gJFNIRUxMICIk
YWNfYXV4X2Rpci8kMSIgLS10aW1lLXN0YW1wIHwgc2VkIHMvLS8vZ2ANCitmb3IgcGF0aCBpbiBc
DQorICAiJEhPTUUvLmNvbmZpZy9hdXRvdG9vbHMiIFwNCisgIC91c3IvbG9jYWwvc2hhcmUvYXV0
b21ha2UtKiBcDQorICAvdXNyL2xvY2FsL3NoYXJlL2F1dG9tYWtlIFwNCisgIC91c3Ivc2hhcmUv
bWlzYyBcDQorICAvdXNyL3NoYXJlL2dudWNvbmZpZyBcDQorICAvdXNyL3NoYXJlL2F1dG9tYWtl
LSogXA0KKyAgL3Vzci9zaGFyZS9hdXRvbWFrZSBcDQorICA7IGRvDQorICAgIGlmIHRlc3QgLXgg
IiRwYXRoLyQxIiA7IHRoZW4NCisgICAgICB2PWAkU0hFTEwgIiRwYXRoLyQxIiAtLXRpbWUtc3Rh
bXAgfCBzZWQgcy8tLy9nYA0KKyAgICAgIGlmIHRlc3QgIiR2IiAtZ3QgIiRjdXJfdiIgOyB0aGVu
DQorICAgICAgICBjdXJfdj0iJHYiDQorICAgICAgICBsYXRlc3Q9IiRwYXRoIg0KKyAgICAgIGZp
DQorICAgIGZpDQorZG9uZQ0KK2lmIHRlc3QgIngkbGF0ZXN0IiAhPSB4IDsgdGhlbg0KKyAgaWYg
dGVzdCAieCQyIiAhPSB4IDsgdGhlbg0KKyAgICAkU0hFTEwgIiRsYXRlc3QvJDEiICIkMiINCisg
IGVsc2UNCisgICAgJFNIRUxMICIkbGF0ZXN0LyQxIg0KKyAgaWYNCitmaQ0KK10pDQogDQogDQog
DQpAQCAtMTgwNCw4ICsxODMzLDExIEBAIEFDX0NBQ0hFX0NIRUNLKFtidWlsZCBzeXN0ZW0gdHlw
ZV0sIFthY19jdl9idWlsZF0sDQogdGVzdCAieCRhY19idWlsZF9hbGlhcyIgPSB4ICYmDQogICBh
Y19idWlsZF9hbGlhcz1gJFNIRUxMICIkYWNfYXV4X2Rpci9jb25maWcuZ3Vlc3MiYA0KIHRlc3Qg
IngkYWNfYnVpbGRfYWxpYXMiID0geCAmJg0KKyAgYWNfYnVpbGRfYWxpYXM9YEFDX0NPTkZJR19B
VVhfRVhUX0RJUlMoW2NvbmZpZy5ndWVzc10pImANCit0ZXN0ICJ4JGFjX2J1aWxkX2FsaWFzIiA9
IHggJiYNCiAgIEFDX01TR19FUlJPUihbY2Fubm90IGd1ZXNzIGJ1aWxkIHR5cGU7IHlvdSBtdXN0
IHNwZWNpZnkgb25lXSkNCiBhY19jdl9idWlsZD1gJFNIRUxMICIkYWNfYXV4X2Rpci9jb25maWcu
c3ViIiAkYWNfYnVpbGRfYWxpYXNgIHx8DQorICBhY19jdl9idWlsZD1gQUNfQ09ORklHX0FVWF9F
WFRfRElSUyhbY29uZmlnLnN1Yl0sWyRhY19idWlsZF9hbGlhc10pYCB8fA0KICAgQUNfTVNHX0VS
Uk9SKFskU0hFTEwgJGFjX2F1eF9kaXIvY29uZmlnLnN1YiAkYWNfYnVpbGRfYWxpYXMgZmFpbGVk
XSkNCiBdKQ0KIF9BQ19DQU5PTklDQUxfU1BMSVQoYnVpbGQpDQpAQCAtMTgyMyw2ICsxODU1LDcg
QEAgQUNfQ0FDSEVfQ0hFQ0soW2hvc3Qgc3lzdGVtIHR5cGVdLCBbYWNfY3ZfaG9zdF0sDQogICBh
Y19jdl9ob3N0PSRhY19jdl9idWlsZA0KIGVsc2UNCiAgIGFjX2N2X2hvc3Q9YCRTSEVMTCAiJGFj
X2F1eF9kaXIvY29uZmlnLnN1YiIgJGhvc3RfYWxpYXNgIHx8DQorICAgIGFjX2N2X2hvc3Q9YEFD
X0NPTkZJR19BVVhfRVhUX0RJUlMoW2NvbmZpZy5zdWJdLFskYWNfaG9zdF9hbGlhc10pYCB8fA0K
ICAgICBBQ19NU0dfRVJST1IoWyRTSEVMTCAkYWNfYXV4X2Rpci9jb25maWcuc3ViICRob3N0X2Fs
aWFzIGZhaWxlZF0pDQogZmkNCiBdKQ0KQEAgLTE4NDIsNiArMTg3NSw3IEBAIEFDX0NBQ0hFX0NI
RUNLKFt0YXJnZXQgc3lzdGVtIHR5cGVdLCBbYWNfY3ZfdGFyZ2V0XSwNCiAgIGFjX2N2X3Rhcmdl
dD0kYWNfY3ZfaG9zdA0KIGVsc2UNCiAgIGFjX2N2X3RhcmdldD1gJFNIRUxMICIkYWNfYXV4X2Rp
ci9jb25maWcuc3ViIiAkdGFyZ2V0X2FsaWFzYCB8fA0KKyAgICBhY19jdl90YXJnZXQ9YEFDX0NP
TkZJR19BVVhfRVhUX0RJUlMoW2NvbmZpZy5zdWJdLFskYWNfdGFyZ2V0X2FsaWFzXSlgIHx8DQog
ICAgIEFDX01TR19FUlJPUihbJFNIRUxMICRhY19hdXhfZGlyL2NvbmZpZy5zdWIgJHRhcmdldF9h
bGlhcyBmYWlsZWRdKQ0KIGZpDQogXSkNCi0tIA0KMS43LjEwLjQNCg0K


--=-AlJtTEnYTSjHpgdyjc16--

--=-szHyr1VxZGYToNvTmotr
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAABCgAGBQJQcrurAAoJEDEWul6f+mmjOwkP/j5fyacXKLOB9RuowQsOV1cZ
lrAq5F1HYTkWya+9CxsNY/AYL0+PsLaLj+2/Vli3RjvMAQp6X3GIdodlYsnarbl6
iMI6KVNip2lwO1x38so9EpUDm1g5vh5CmQOEzEquTV1dFMtMNO9ossolsM3A63SY
IFJVhZaJzLosedY3y40x1rurVvczOeKloKkxlfcbup4N8kTrUt1SjKtPvv9wW5Yj
PsblbYDrqNdR9hk7M/MtpOobAILJwu0TYgyYDIOr4mOSzcUDnhBEi9DrKIiqXKHg
KL3CaHOWqI+sOsxdSA4G6eXD74ygqBz+3vbDRyYIqoF4di47UVYZa0fvBxozHVEQ
vC5GIBFIsZZdpcBOKScUe5kN9l1D8k8+ETjrD/CgYLV4Xfsccif1igtzC4iAXygj
GNBv8l5+xnjJ4RNYyiOEpRaVP9VJvwLFNiMdWQbhU+NkCBwo/86vdNoD50CjIPOZ
7rOnmILAnQKdCFatkjTjzJgX4ibEeBkI1TY3cjn5h5qp5YIHqMAmRh2B19Q+9LP5
hJCNHxsVMsnx1pal+zFH+k1XbpetO7V5xYP/HSOvVOPNB4kEqVF1UE6Mjt588rsK
cdkcQZy60U0VGuVTaOVgkAAdLqzQEguNSl6NtT5TSSsG11rgybqwRF90Rq45Uioy
P2uqz8aXnlEs4k1VXfxg
=7iMF
-----END PGP SIGNATURE-----

--=-szHyr1VxZGYToNvTmotr--



From MAILER-DAEMON Mon Oct 08 11:27:16 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TLFEi-00042u-GG
	for mharc-autoconf@gnu.org; Mon, 08 Oct 2012 11:27:16 -0400
Received: from eggs.gnu.org ([208.118.235.92]:39560)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <pabs3@bonedaddy.net>) id 1TLCjj-0005oL-SZ
	for autoconf@gnu.org; Mon, 08 Oct 2012 08:47:12 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <pabs3@bonedaddy.net>) id 1TLCjd-0005IR-KS
	for autoconf@gnu.org; Mon, 08 Oct 2012 08:47:07 -0400
Received: from ns1.bonedaddy.net ([70.91.141.202]:45069)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <pabs3@bonedaddy.net>) id 1TLCjd-0005IL-Eo
	for autoconf@gnu.org; Mon, 08 Oct 2012 08:47:01 -0400
Received: from [IPv6:::1] (localhost [127.0.0.1])
	by ns1.bonedaddy.net (8.14.5/8.14.4) with ESMTP id q98Ckvv0011516
	for <autoconf@gnu.org>; Mon, 8 Oct 2012 08:46:59 -0400
Resent-Date: Mon, 8 Oct 2012 08:46:57 -0400
Resent-Message-Id: <201210081246.q98Ckvv0011516@ns1.bonedaddy.net>
Message-ID: <1349696427.11713.95.camel@chianamo>
From: Paul Wise <pabs3@bonedaddy.net>
To: autoconf@gnu.org
Content-Type: multipart/signed; micalg="pgp-sha512";
	protocol="application/pgp-signature";
	boundary="=-szHyr1VxZGYToNvTmotr"
Mime-Version: 1.0
Subject: [RFC] getting rid of the config.guess/sub problem when
	bootstrapping new ports/systems
Resent-From: Paul Wise <pabs3@bonedaddy.net>
Resent-To: autoconf@gnu.org
Date: Mon, 08 Oct 2012 20:46:57 +0800
Content-Transfer-Encoding: 
X-Mailer: Evolution 3.4.3-1 
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 70.91.141.202
X-Mailman-Approved-At: Mon, 08 Oct 2012 11:27:15 -0400
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Oct 2012 12:47:12 -0000


--=-szHyr1VxZGYToNvTmotr
Content-Type: multipart/mixed; boundary="=-AlJtTEnYTSjHpgdyjc16"


--=-AlJtTEnYTSjHpgdyjc16
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi all,

So, Debian is in the process of bringing up our upcoming arm64 port.
Unfortunately we are also coming across lots of packages with rather
outdated config.guess and config.sub files (see links below). We could
patch every single package that contains config.guess and config.sub but
that would be a lot of effort that doesn't scale. We could also patch
our build tools but the problem would still exist for other distros.

I would like to get rid of this issue once and for all by making the
update process for config.guess and config.sub once per machine or once
per package instead of once per package.

My initial approach in 2009 was to patch config.guess and config.sub to
look for newer versions of themselves but the maintainer of these files
wasn't happy with that approach.

I recently re-contacted him about this issue and was suggested to patch
autoconf. The approach I have taken is to make autoconf-produced
configure scripts use the package-local config.guess/config.sub by
default and if that fails then find the newest config.guess/config.sub
in a number of paths on the system and use it. I am not very familiar
with autoconf internals, m4 or the intricacies of ancient shells, so I
would very much appreciate a review of both the approach and my initial
attempt at implementing this, please see the attached patch.

If anyone knows where config.guess and config.sub are installed on
common platforms like the various Linux or BSD distributions, please let
me know those locations. I have only the paths for Debian and Gentoo.

http://wookware.org/files/aarch64faillog
http://bugs.debian.org/689607
http://bugs.debian.org/689610
http://bugs.debian.org/689611
http://bugs.debian.org/689612
http://bugs.debian.org/689613
http://bugs.debian.org/689614
http://bugs.debian.org/689615
http://bugs.debian.org/689617
http://bugs.debian.org/689618
http://bugs.debian.org/689619
http://bugs.debian.org/689620
http://bugs.debian.org/689621

--=20
bye,
pabs

http://bonedaddy.net/pabs3/

--=-AlJtTEnYTSjHpgdyjc16
Content-Disposition: attachment;
	filename*0=0001-Check-a-number-of-paths-for-newer-config.guess-confi.pat;
	filename*1=ch
Content-Type: text/x-patch;
	name="0001-Check-a-number-of-paths-for-newer-config.guess-confi.patch";
	charset="UTF-8"
Content-Transfer-Encoding: base64

RnJvbSBhOGUxZTQzOGQ0ZTUyOWJhMGE5ZDFmMjhiNzNlYWNiMmQ4ODEwNzFkIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQ0KRnJvbTogUGF1bCBXaXNlIDxwYWJzM0Bib25lZGFkZHkubmV0Pg0KRGF0
ZTogTW9uLCA4IE9jdCAyMDEyIDE5OjM0OjUwICswODAwDQpTdWJqZWN0OiBbUEFUQ0hdIENoZWNr
IGEgbnVtYmVyIG9mIHBhdGhzIGZvciBuZXdlciBjb25maWcuZ3Vlc3MvY29uZmlnLnN1Yg0KIGFu
ZCBydW4gdGhlIGxhdGVzdC4NCg0KVGhpcyBoZWxwcyBwZW9wbGUgd2hvIGFyZSBib290c3RyYXBw
aW5nIG5ldyBzeXN0ZW1zIGZyb20gZXhpc3Rpbmcgc29mdHdhcmUNCnRoYXQgdXNlcyBHTlUgYXV0
b3Rvb2xzLCBjb25maWcuZ3Vlc3MgYW5kIGNvbmZpZy5zdWIuDQoNClRoaXMgaXMgdmVyeSB1c2Vm
dWwgZm9yIGRpc3RyaWJ1dGlvbnMgbGlrZSBEZWJpYW4gdGhhdCBhZGQgbmV3IGFyY2hpdGVjdHVy
ZXMNCmFuZCB0aGVuIGhhdmUgdG8gdXBkYXRlIGNvbmZpZy5zdWIgYW5kIGNvbmZpZy5ndWVzcyBp
biBldmVyeSBzaW5nbGUgcGFja2FnZQ0KdGhhdCB1c2VzIGF1dG9tYWtlIG9yIGhhdmUgdG8gd29y
a2Fyb3VuZCB0aGUgcHJvYmxlbSBieSBhZGRpbmcgY29kZSB0byBlYWNoDQpwYWNrYWdlIHRvIGNv
cHkgaW4gdGhlIGxhdGVzdCB2ZXJzaW9ucyBvZiB0aGVzZSBzY3JpcHRzIGZyb20gYW5vdGhlciBw
YWNrYWdlDQpjb250YWluaW5nIHRoZSBsYXRlc3QgdmVyc2lvbiBvZiB0aGUgc2NyaXB0cyAoYXV0
b3Rvb2xzLWRldiBpbiBEZWJpYW4pLg0KLS0tDQogbGliL2F1dG9jb25mL2dlbmVyYWwubTQgfCAg
IDM0ICsrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysNCiAxIGZpbGUgY2hhbmdlZCwg
MzQgaW5zZXJ0aW9ucygrKQ0KDQpkaWZmIC0tZ2l0IGEvbGliL2F1dG9jb25mL2dlbmVyYWwubTQg
Yi9saWIvYXV0b2NvbmYvZ2VuZXJhbC5tNA0KaW5kZXggNTFjZWUzMC4uZDYzNjZjOSAxMDA2NDQN
Ci0tLSBhL2xpYi9hdXRvY29uZi9nZW5lcmFsLm00DQorKysgYi9saWIvYXV0b2NvbmYvZ2VuZXJh
bC5tNA0KQEAgLTE3MTksNiArMTcxOSwzNSBAQCBhY19jb25maWd1cmU9IiRTSEVMTCAkYWNfYXV4
X2Rpci9jb25maWd1cmUiICAjIFBsZWFzZSBkb24ndCB1c2UgdGhpcyB2YXIuDQogQUNfUFJPVklE
RShbQUNfQ09ORklHX0FVWF9ESVJfREVGQVVMVF0pZG5sDQogXSkjIEFDX0NPTkZJR19BVVhfRElS
Uw0KIA0KKyMgU2VhcmNoIGZvciB0aGUgbmV3ZXN0IGNvbmZpZy5zdWIvY29uZmlnLmd1ZXNzDQor
QUNfREVGVU4oW0FDX0NPTkZJR19BVVhfRVhUX0RJUlNdLA0KK1sNCitjdXJfdj1gJFNIRUxMICIk
YWNfYXV4X2Rpci8kMSIgLS10aW1lLXN0YW1wIHwgc2VkIHMvLS8vZ2ANCitmb3IgcGF0aCBpbiBc
DQorICAiJEhPTUUvLmNvbmZpZy9hdXRvdG9vbHMiIFwNCisgIC91c3IvbG9jYWwvc2hhcmUvYXV0
b21ha2UtKiBcDQorICAvdXNyL2xvY2FsL3NoYXJlL2F1dG9tYWtlIFwNCisgIC91c3Ivc2hhcmUv
bWlzYyBcDQorICAvdXNyL3NoYXJlL2dudWNvbmZpZyBcDQorICAvdXNyL3NoYXJlL2F1dG9tYWtl
LSogXA0KKyAgL3Vzci9zaGFyZS9hdXRvbWFrZSBcDQorICA7IGRvDQorICAgIGlmIHRlc3QgLXgg
IiRwYXRoLyQxIiA7IHRoZW4NCisgICAgICB2PWAkU0hFTEwgIiRwYXRoLyQxIiAtLXRpbWUtc3Rh
bXAgfCBzZWQgcy8tLy9nYA0KKyAgICAgIGlmIHRlc3QgIiR2IiAtZ3QgIiRjdXJfdiIgOyB0aGVu
DQorICAgICAgICBjdXJfdj0iJHYiDQorICAgICAgICBsYXRlc3Q9IiRwYXRoIg0KKyAgICAgIGZp
DQorICAgIGZpDQorZG9uZQ0KK2lmIHRlc3QgIngkbGF0ZXN0IiAhPSB4IDsgdGhlbg0KKyAgaWYg
dGVzdCAieCQyIiAhPSB4IDsgdGhlbg0KKyAgICAkU0hFTEwgIiRsYXRlc3QvJDEiICIkMiINCisg
IGVsc2UNCisgICAgJFNIRUxMICIkbGF0ZXN0LyQxIg0KKyAgaWYNCitmaQ0KK10pDQogDQogDQog
DQpAQCAtMTgwNCw4ICsxODMzLDExIEBAIEFDX0NBQ0hFX0NIRUNLKFtidWlsZCBzeXN0ZW0gdHlw
ZV0sIFthY19jdl9idWlsZF0sDQogdGVzdCAieCRhY19idWlsZF9hbGlhcyIgPSB4ICYmDQogICBh
Y19idWlsZF9hbGlhcz1gJFNIRUxMICIkYWNfYXV4X2Rpci9jb25maWcuZ3Vlc3MiYA0KIHRlc3Qg
IngkYWNfYnVpbGRfYWxpYXMiID0geCAmJg0KKyAgYWNfYnVpbGRfYWxpYXM9YEFDX0NPTkZJR19B
VVhfRVhUX0RJUlMoW2NvbmZpZy5ndWVzc10pImANCit0ZXN0ICJ4JGFjX2J1aWxkX2FsaWFzIiA9
IHggJiYNCiAgIEFDX01TR19FUlJPUihbY2Fubm90IGd1ZXNzIGJ1aWxkIHR5cGU7IHlvdSBtdXN0
IHNwZWNpZnkgb25lXSkNCiBhY19jdl9idWlsZD1gJFNIRUxMICIkYWNfYXV4X2Rpci9jb25maWcu
c3ViIiAkYWNfYnVpbGRfYWxpYXNgIHx8DQorICBhY19jdl9idWlsZD1gQUNfQ09ORklHX0FVWF9F
WFRfRElSUyhbY29uZmlnLnN1Yl0sWyRhY19idWlsZF9hbGlhc10pYCB8fA0KICAgQUNfTVNHX0VS
Uk9SKFskU0hFTEwgJGFjX2F1eF9kaXIvY29uZmlnLnN1YiAkYWNfYnVpbGRfYWxpYXMgZmFpbGVk
XSkNCiBdKQ0KIF9BQ19DQU5PTklDQUxfU1BMSVQoYnVpbGQpDQpAQCAtMTgyMyw2ICsxODU1LDcg
QEAgQUNfQ0FDSEVfQ0hFQ0soW2hvc3Qgc3lzdGVtIHR5cGVdLCBbYWNfY3ZfaG9zdF0sDQogICBh
Y19jdl9ob3N0PSRhY19jdl9idWlsZA0KIGVsc2UNCiAgIGFjX2N2X2hvc3Q9YCRTSEVMTCAiJGFj
X2F1eF9kaXIvY29uZmlnLnN1YiIgJGhvc3RfYWxpYXNgIHx8DQorICAgIGFjX2N2X2hvc3Q9YEFD
X0NPTkZJR19BVVhfRVhUX0RJUlMoW2NvbmZpZy5zdWJdLFskYWNfaG9zdF9hbGlhc10pYCB8fA0K
ICAgICBBQ19NU0dfRVJST1IoWyRTSEVMTCAkYWNfYXV4X2Rpci9jb25maWcuc3ViICRob3N0X2Fs
aWFzIGZhaWxlZF0pDQogZmkNCiBdKQ0KQEAgLTE4NDIsNiArMTg3NSw3IEBAIEFDX0NBQ0hFX0NI
RUNLKFt0YXJnZXQgc3lzdGVtIHR5cGVdLCBbYWNfY3ZfdGFyZ2V0XSwNCiAgIGFjX2N2X3Rhcmdl
dD0kYWNfY3ZfaG9zdA0KIGVsc2UNCiAgIGFjX2N2X3RhcmdldD1gJFNIRUxMICIkYWNfYXV4X2Rp
ci9jb25maWcuc3ViIiAkdGFyZ2V0X2FsaWFzYCB8fA0KKyAgICBhY19jdl90YXJnZXQ9YEFDX0NP
TkZJR19BVVhfRVhUX0RJUlMoW2NvbmZpZy5zdWJdLFskYWNfdGFyZ2V0X2FsaWFzXSlgIHx8DQog
ICAgIEFDX01TR19FUlJPUihbJFNIRUxMICRhY19hdXhfZGlyL2NvbmZpZy5zdWIgJHRhcmdldF9h
bGlhcyBmYWlsZWRdKQ0KIGZpDQogXSkNCi0tIA0KMS43LjEwLjQNCg0K


--=-AlJtTEnYTSjHpgdyjc16--

--=-szHyr1VxZGYToNvTmotr
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAABCgAGBQJQcrurAAoJEDEWul6f+mmjOwkP/j5fyacXKLOB9RuowQsOV1cZ
lrAq5F1HYTkWya+9CxsNY/AYL0+PsLaLj+2/Vli3RjvMAQp6X3GIdodlYsnarbl6
iMI6KVNip2lwO1x38so9EpUDm1g5vh5CmQOEzEquTV1dFMtMNO9ossolsM3A63SY
IFJVhZaJzLosedY3y40x1rurVvczOeKloKkxlfcbup4N8kTrUt1SjKtPvv9wW5Yj
PsblbYDrqNdR9hk7M/MtpOobAILJwu0TYgyYDIOr4mOSzcUDnhBEi9DrKIiqXKHg
KL3CaHOWqI+sOsxdSA4G6eXD74ygqBz+3vbDRyYIqoF4di47UVYZa0fvBxozHVEQ
vC5GIBFIsZZdpcBOKScUe5kN9l1D8k8+ETjrD/CgYLV4Xfsccif1igtzC4iAXygj
GNBv8l5+xnjJ4RNYyiOEpRaVP9VJvwLFNiMdWQbhU+NkCBwo/86vdNoD50CjIPOZ
7rOnmILAnQKdCFatkjTjzJgX4ibEeBkI1TY3cjn5h5qp5YIHqMAmRh2B19Q+9LP5
hJCNHxsVMsnx1pal+zFH+k1XbpetO7V5xYP/HSOvVOPNB4kEqVF1UE6Mjt588rsK
cdkcQZy60U0VGuVTaOVgkAAdLqzQEguNSl6NtT5TSSsG11rgybqwRF90Rq45Uioy
P2uqz8aXnlEs4k1VXfxg
=7iMF
-----END PGP SIGNATURE-----

--=-szHyr1VxZGYToNvTmotr--



From MAILER-DAEMON Mon Oct 08 12:07:57 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TLFs5-0001Wq-Po
	for mharc-autoconf@gnu.org; Mon, 08 Oct 2012 12:07:57 -0400
Received: from eggs.gnu.org ([208.118.235.92]:47124)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bfriesen@simple.dallas.tx.us>) id 1TLFs2-0001V7-Ew
	for autoconf@gnu.org; Mon, 08 Oct 2012 12:07:55 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bfriesen@simple.dallas.tx.us>) id 1TLFs0-0005mU-Ot
	for autoconf@gnu.org; Mon, 08 Oct 2012 12:07:54 -0400
Received: from blade.simplesystems.org ([65.66.246.74]:65138)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bfriesen@simple.dallas.tx.us>) id 1TLFs0-0005le-G9
	for autoconf@gnu.org; Mon, 08 Oct 2012 12:07:52 -0400
Received: from freddy.simplesystems.org (freddy.simplesystems.org
	[65.66.246.65])
	by blade.simplesystems.org (8.14.4+Sun/8.14.4) with ESMTP id
	q98G7gXM027967; Mon, 8 Oct 2012 11:07:43 -0500 (CDT)
Date: Mon, 8 Oct 2012 11:07:42 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@freddy.simplesystems.org
To: Paul Wise <pabs3@bonedaddy.net>
Subject: Re: [RFC] getting rid of the config.guess/sub problem when
	bootstrapping new ports/systems
In-Reply-To: <1349696427.11713.95.camel@chianamo>
Message-ID: <alpine.GSO.2.01.1210081101340.16922@freddy.simplesystems.org>
References: <1349696427.11713.95.camel@chianamo>
User-Agent: Alpine 2.01 (GSO 1266 2009-07-14)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2
	(blade.simplesystems.org [65.66.246.90]);
	Mon, 08 Oct 2012 11:07:43 -0500 (CDT)
X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta)
X-Received-From: 65.66.246.74
Cc: autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Oct 2012 16:07:55 -0000

Does simple replacement of config.guess and config.sub constitute a 
useful "port" to this previously unencountered target?  Is there 
really any viable substitute for re-autotooling the packages, while 
modifying configure.ac, Makefiles, and source code as found to be 
required?

Bob
-- 
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/


From MAILER-DAEMON Mon Oct 08 12:22:17 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TLG5x-0006Ie-8v
	for mharc-autoconf@gnu.org; Mon, 08 Oct 2012 12:22:17 -0400
Received: from eggs.gnu.org ([208.118.235.92]:53647)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1TLG5u-0006IS-IY
	for autoconf@gnu.org; Mon, 08 Oct 2012 12:22:16 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1TLG5p-0002TN-0C
	for autoconf@gnu.org; Mon, 08 Oct 2012 12:22:14 -0400
Received: from mx1.redhat.com ([209.132.183.28]:4828)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1TLG5o-0002T2-Nb
	for autoconf@gnu.org; Mon, 08 Oct 2012 12:22:08 -0400
Received: from int-mx11.intmail.prod.int.phx2.redhat.com
	(int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24])
	by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q98GM3t1025008
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Mon, 8 Oct 2012 12:22:03 -0400
Received: from [10.3.113.147] (ovpn-113-147.phx2.redhat.com [10.3.113.147])
	by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP
	id q98GM2sT007605; Mon, 8 Oct 2012 12:22:02 -0400
Message-ID: <5072FDA9.90208@redhat.com>
Date: Mon, 08 Oct 2012 10:22:01 -0600
From: Eric Blake <eblake@redhat.com>
Organization: Red Hat
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:15.0) Gecko/20120911 Thunderbird/15.0.1
MIME-Version: 1.0
To: Paul Wise <pabs3@bonedaddy.net>
Subject: Re: [RFC] getting rid of the config.guess/sub problem when
	bootstrapping new ports/systems
References: <1349696427.11713.95.camel@chianamo>
In-Reply-To: <1349696427.11713.95.camel@chianamo>
X-Enigmail-Version: 1.4.4
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature";
	boundary="------------enigB04CD3FD0CC19A22B9B0DBB9"
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.132.183.28
Cc: autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Oct 2012 16:22:16 -0000

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigB04CD3FD0CC19A22B9B0DBB9
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 10/08/2012 06:46 AM, Paul Wise wrote:
> Hi all,
>=20
> So, Debian is in the process of bringing up our upcoming arm64 port.
> Unfortunately we are also coming across lots of packages with rather
> outdated config.guess and config.sub files (see links below). We could
> patch every single package that contains config.guess and config.sub bu=
t
> that would be a lot of effort that doesn't scale. We could also patch
> our build tools but the problem would still exist for other distros.
>=20
> I would like to get rid of this issue once and for all by making the
> update process for config.guess and config.sub once per machine or once=

> per package instead of once per package.

Not to discourage you, but I still see a fundamental problem, where
things will just not scale for several more years (if ever).  Your
proposed patch will have no effect on packages that were shipped with a
configure script generated by autoconf 2.69 or earlier (that is, they
would only affect new packages built with the as-yet-unreleased autoconf
2.70).  Therefore, you STILL have to touch every single package that was
built with older toolchains to get them to take advantage of any new
self-upgrading code path built into a newer autoconf.

>=20
> My initial approach in 2009 was to patch config.guess and config.sub to=

> look for newer versions of themselves but the maintainer of these files=

> wasn't happy with that approach.
>=20
> I recently re-contacted him about this issue and was suggested to patch=

> autoconf. The approach I have taken is to make autoconf-produced
> configure scripts use the package-local config.guess/config.sub by
> default and if that fails then find the newest config.guess/config.sub
> in a number of paths on the system and use it.

Is it safe enough to look at common system locations alone, or should we
also be attempting a network lookup for the latest canonical upstream
sources (of course, realizing that networking might not be available, so
we must not trigger fatal failure just because a machine is off the grid
at the time configure is run).

> I am not very familiar
> with autoconf internals, m4 or the intricacies of ancient shells, so I
> would very much appreciate a review of both the approach and my initial=

> attempt at implementing this, please see the attached patch.

I haven't yet looked at the patch; it's non-trivial enough that it will
need copyright assignment to the FSF before it can even be considered.
But I'm first worried about the bigger implications of what you intend
to do about the fact that packages that were not built with autoconf
2.70 or later (assuming this patch makes it in) will still not benefit
from this patch.

--=20
Eric Blake   eblake@redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


--------------enigB04CD3FD0CC19A22B9B0DBB9
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iQEcBAEBCAAGBQJQcv2pAAoJEKeha0olJ0Nq/3EIAK11j/jLfmTvxP+8vb/ty3u4
PtO+9x6C00XBTKf6MjHnZt9t/VVFG+gY6HPFSC8s81doqFDC7vdxNGRJ2cADOl1W
osWQLICQ5Y6VwpzVxZ47/4HW5CGh4U28ds9dsLgcBKD8oJMM4+mDTXnfysR4VD0P
D8v4i1kuhZUMKzL837DGeUJ/jdBXzRl0OFwW2y8oGGDKevs+PuqlJYRd5d/LKzGJ
0S18x+OX9L7XRZh0+cGXAcZgKBAon65ylZo794NqVnMfo09RmjukRqGayoOOLoV+
3zytGQmQE1EVlR8XGf+pqI4TAlc7GrqwoIXy5E9n6KdgA5nu4Jc1jLblH6mAuYc=
=ocEX
-----END PGP SIGNATURE-----

--------------enigB04CD3FD0CC19A22B9B0DBB9--


From MAILER-DAEMON Mon Oct 08 14:04:46 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TLHh8-0002pN-Bn
	for mharc-autoconf@gnu.org; Mon, 08 Oct 2012 14:04:46 -0400
Received: from eggs.gnu.org ([208.118.235.92]:41115)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <pabs3@bonedaddy.net>) id 1TLHh5-0002oy-Sd
	for autoconf@gnu.org; Mon, 08 Oct 2012 14:04:45 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <pabs3@bonedaddy.net>) id 1TLHh4-0000Jc-GB
	for autoconf@gnu.org; Mon, 08 Oct 2012 14:04:43 -0400
Received: from ns1.bonedaddy.net ([70.91.141.202]:46008)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <pabs3@bonedaddy.net>) id 1TLHh4-0000I6-AU
	for autoconf@gnu.org; Mon, 08 Oct 2012 14:04:42 -0400
Received: from [IPv6:::1] (localhost [127.0.0.1])
	by ns1.bonedaddy.net (8.14.5/8.14.4) with ESMTP id q98I4d5u012373
	for <autoconf@gnu.org>; Mon, 8 Oct 2012 14:04:40 -0400
Message-ID: <1349719476.11713.106.camel@chianamo>
Subject: Re: [RFC] getting rid of the config.guess/sub problem when
	bootstrapping new ports/systems
From: Paul Wise <pabs3@bonedaddy.net>
To: autoconf <autoconf@gnu.org>
Date: Tue, 09 Oct 2012 02:04:36 +0800
In-Reply-To: <5072FDA9.90208@redhat.com>
References: <1349696427.11713.95.camel@chianamo> <5072FDA9.90208@redhat.com>
Content-Type: multipart/signed; micalg="pgp-sha512";
	protocol="application/pgp-signature"; boundary="=-8DMLnIHQ2SbsMPgS6dTD"
X-Mailer: Evolution 3.4.3-1 
Mime-Version: 1.0
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 70.91.141.202
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Oct 2012 18:04:45 -0000


--=-8DMLnIHQ2SbsMPgS6dTD
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Mon, 2012-10-08 at 10:22 -0600, Eric Blake wrote:

> Not to discourage you, but I still see a fundamental problem, where
> things will just not scale for several more years (if ever).  Your
> proposed patch will have no effect on packages that were shipped with a
> configure script generated by autoconf 2.69 or earlier (that is, they
> would only affect new packages built with the as-yet-unreleased autoconf
> 2.70).  Therefore, you STILL have to touch every single package that was
> built with older toolchains to get them to take advantage of any new
> self-upgrading code path built into a newer autoconf.

I acknowledge this problem and there is no way to get around it.
The patch is not meant to be useful for arm64, I'm taking a much longer
term view here, the benefit is perhaps 5-10 years away. Once the patch
is in a released version of autoconf it will percolate through the
distributions archives as projects autoreconf with the latest autoconf
and make new releases. Eventually we will have good coverage in most
distributions. In the meantime, within Debian we will be pursuing both
per-package updating of config.guess/sub and I'm also thinking about
getting our binary package build toolchain to take that role, but I'm
not sure how well that would be received within Debian or how well it
would work.

> Is it safe enough to look at common system locations alone, or should we
> also be attempting a network lookup for the latest canonical upstream
> sources (of course, realizing that networking might not be available, so
> we must not trigger fatal failure just because a machine is off the grid
> at the time configure is run).

For Debian, network access is usually disabled on our build daemons.
I would discourage this without some checking of GPG signatures,
otherwise it would be easy for network attackers to get arbitrary code
execution on people's laptops and distribution build servers.

> I haven't yet looked at the patch; it's non-trivial enough that it will
> need copyright assignment to the FSF before it can even be considered.

Personally I don't consider the patch to contain any creativity or to be
copyrightable. I therefore consider that it is in the public domain and
to the extent possible under law, I have waived[CC0] all copyright and
related or neighboring rights to this work. If that isn't good enough
for the FSF, then I'm willing to assign copyright as needed.

CC0: http://creativecommons.org/publicdomain/zero/1.0/

> But I'm first worried about the bigger implications of what you intend
> to do about the fact that packages that were not built with autoconf
> 2.70 or later (assuming this patch makes it in) will still not benefit
> from this patch.

I hope I've addressed them to your satisfaction above.

--=20
bye,
pabs

http://bonedaddy.net/pabs3/

--=-8DMLnIHQ2SbsMPgS6dTD
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAABCgAGBQJQcxW0AAoJEDEWul6f+mmjwGoQAIIQX3ER9rLcMgFs4NU01WBn
yKKPxzMsyd9TQPMGRGQD35+7y7yr4PRdVDcK0MRc4TU04c5Ddhc1w4bz1FNM8bGC
62zJm8Af3aT7HNd8W3HNy6jDYgpWiDEfRSsaTyOu8x5fVLiqFgZVlB33Icbrd3LP
7L+fjcy0qD7m2fYzxwSDAOVww8IikZabPvPQc6NRL/wE/Gc4mRsuM5bk634H4H/o
DR/914SUyfyB3PI5I+cnhCcXAV2PG6Gz6iIQKTJfj9mbhWeRnwPJp6/oXtjYAWu0
OhK6C9ctPqyG29WGU5rJhptPC2uiHoi1chN6zAR9dR+HFrq87+xMd+gw8WKR0XmZ
dzyCHnNxdbbwesPzQxGk+X/5JYyZs6ub4h8FW7I8AP7J3hEteM0KaymvRLNd2zIF
xmWn1pCM0RIopI32eF5du5kxV+z0KA0LHrCvZLDDlfpNI0bMi0Fj390Dcn/Z1mU1
QMurxSDvg03xrk8zHSGTMLhOCv+tfNgZQbHNxNPWsjowI8c3wUpeyml5wsX0XiAM
hZNOQkUowN/tGW5gBu2vBmnPsLzPRUMErFEs6BT6sttG7EieF0nmkk+l0GNoIQhG
wav3P7wOtpHZViZwNhPmHYAopT7uZA79ibDVP1p4yO81s2UAOdDbjkhXrQz8mwcF
iztXFqnIL6QN2efyzeyB
=02ll
-----END PGP SIGNATURE-----

--=-8DMLnIHQ2SbsMPgS6dTD--



From MAILER-DAEMON Mon Oct 08 14:09:30 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TLHli-0004An-Gk
	for mharc-autoconf@gnu.org; Mon, 08 Oct 2012 14:09:30 -0400
Received: from eggs.gnu.org ([208.118.235.92]:47837)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <pabs3@bonedaddy.net>) id 1TLHlf-0004Ad-Vd
	for autoconf@gnu.org; Mon, 08 Oct 2012 14:09:28 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <pabs3@bonedaddy.net>) id 1TLHle-000245-PW
	for autoconf@gnu.org; Mon, 08 Oct 2012 14:09:27 -0400
Received: from ns1.bonedaddy.net ([70.91.141.202]:46010)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <pabs3@bonedaddy.net>) id 1TLHle-00023q-E6
	for autoconf@gnu.org; Mon, 08 Oct 2012 14:09:26 -0400
Received: from [IPv6:::1] (localhost [127.0.0.1])
	by ns1.bonedaddy.net (8.14.5/8.14.4) with ESMTP id q98I9NMN012463
	for <autoconf@gnu.org>; Mon, 8 Oct 2012 14:09:24 -0400
Message-ID: <1349719763.11713.112.camel@chianamo>
Subject: Re: [RFC] getting rid of the config.guess/sub problem when
	bootstrapping new ports/systems
From: Paul Wise <pabs3@bonedaddy.net>
To: autoconf <autoconf@gnu.org>
Date: Tue, 09 Oct 2012 02:09:23 +0800
In-Reply-To: <alpine.GSO.2.01.1210081101340.16922@freddy.simplesystems.org>
References: <1349696427.11713.95.camel@chianamo>
	<alpine.GSO.2.01.1210081101340.16922@freddy.simplesystems.org>
Content-Type: multipart/signed; micalg="pgp-sha512";
	protocol="application/pgp-signature"; boundary="=-YF6G+ZP1l1c3hNTN/u6D"
X-Mailer: Evolution 3.4.3-1 
Mime-Version: 1.0
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 70.91.141.202
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Oct 2012 18:09:29 -0000


--=-YF6G+ZP1l1c3hNTN/u6D
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Mon, 2012-10-08 at 11:07 -0500, Bob Friesenhahn wrote:

> Does simple replacement of config.guess and config.sub constitute a=20
> useful "port" to this previously unencountered target?

Yes. The problem is that we have to repeat this process for every
package every time we want to bootstrap a new port or system. Or we can
change every package to replace config.guess/sub. Or we can change the
packaging building process for every distribution to replace
config.guess/sub. Or we can just change autoconf so that it creates
configure scripts that look for the latest config.guess/sub. I am
pursuing all of these approaches, starting at autoconf.

> Is there really any viable substitute for re-autotooling the packages,
> while modifying configure.ac, Makefiles, and source code as found to
> be required?

Not as yet, I'm hoping my patch will become that in the very long term.

--=20
bye,
pabs

http://bonedaddy.net/pabs3/

--=-YF6G+ZP1l1c3hNTN/u6D
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAABCgAGBQJQcxbTAAoJEDEWul6f+mmjZrsP/20FYtSiBcsbcgre4svLFLNW
fYoRIlhHNrVfBG13vafnDLQWgWo9fK7p0s9JV78tDebVbJs+ZQjY7Kr5G548k93p
dQ8NjkxY0vP8cyBihcq7KFAowpb40k5zJ49KggyJVWdn/M64QD5izt9NP2bZ6E1z
I5BzFlMiwgYqthc6lwDTOSA2yYcFCe/vrBozjGjyiHEtiZaT+R12yS2Gu7nLWW7L
chd12VlEpyinr5T4RXzcrs3A8IyPCBFA64Ydgs+YoB1rZNghGvS3ixJZc24G0b1u
KhmJZjd6HzTx4XPM6WkSgC570kSPKBor05616x9qgSE0qJbBlZavbgkLPf3D1KXr
uIUC8kk+Tz0Gc3BouzyoZN8Qq8qxtWVXi7MAvUOE0GVY8ZWsfRPsEpgWHN3J26N3
T8UJ1ntSkQvZ2RjxdNV+DZHTZPiRsbf6wQzjr9Juzki/GTQ8yFjrXtCocU4GdUBi
nKV+KTNT5sSDqc2p9xJNbQa48vXGvQLVrK/NKbZUAGHYmc4dXy4zPugtH3do5zqG
rwJkWvu8JUd1ke5vVcLFLsUiJnL5zox31ir4CDL4TSMfO2bQ9cXd7AZJNYf5sZSk
LIjbzQsOKnhtDMCEG1mOXdaRwo4Vb0uLKVIU60hHbsmGX//9v17N0sgKMN5K5lH8
EiAfcOv5+gxmK2Pg/gX6
=bxG9
-----END PGP SIGNATURE-----

--=-YF6G+ZP1l1c3hNTN/u6D--



From MAILER-DAEMON Mon Oct 08 14:52:36 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TLIRQ-0007uE-2c
	for mharc-autoconf@gnu.org; Mon, 08 Oct 2012 14:52:36 -0400
Received: from eggs.gnu.org ([208.118.235.92]:36714)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bfriesen@simple.dallas.tx.us>) id 1TLIRN-0007m6-5z
	for autoconf@gnu.org; Mon, 08 Oct 2012 14:52:34 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bfriesen@simple.dallas.tx.us>) id 1TLIRL-000107-TQ
	for autoconf@gnu.org; Mon, 08 Oct 2012 14:52:33 -0400
Received: from blade.simplesystems.org ([65.66.246.74]:65436)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bfriesen@simple.dallas.tx.us>) id 1TLIRL-0000zu-LE
	for autoconf@gnu.org; Mon, 08 Oct 2012 14:52:31 -0400
Received: from freddy.simplesystems.org (freddy.simplesystems.org
	[65.66.246.65])
	by blade.simplesystems.org (8.14.4+Sun/8.14.4) with ESMTP id
	q98IqS23028576; Mon, 8 Oct 2012 13:52:28 -0500 (CDT)
Date: Mon, 8 Oct 2012 13:52:28 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@freddy.simplesystems.org
To: Paul Wise <pabs3@bonedaddy.net>
Subject: Re: [RFC] getting rid of the config.guess/sub problem when
	bootstrapping new ports/systems
In-Reply-To: <1349719763.11713.112.camel@chianamo>
Message-ID: <alpine.GSO.2.01.1210081339380.16922@freddy.simplesystems.org>
References: <1349696427.11713.95.camel@chianamo>
	<alpine.GSO.2.01.1210081101340.16922@freddy.simplesystems.org>
	<1349719763.11713.112.camel@chianamo>
User-Agent: Alpine 2.01 (GSO 1266 2009-07-14)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2
	(blade.simplesystems.org [65.66.246.90]);
	Mon, 08 Oct 2012 13:52:28 -0500 (CDT)
X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta)
X-Received-From: 65.66.246.74
Cc: autoconf <autoconf@gnu.org>
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Oct 2012 18:52:34 -0000

On Tue, 9 Oct 2012, Paul Wise wrote:

> On Mon, 2012-10-08 at 11:07 -0500, Bob Friesenhahn wrote:
>
>> Does simple replacement of config.guess and config.sub constitute a
>> useful "port" to this previously unencountered target?
>
> Yes. The problem is that we have to repeat this process for every
> package every time we want to bootstrap a new port or system. Or we can
> change every package to replace config.guess/sub. Or we can change the
> packaging building process for every distribution to replace
> config.guess/sub. Or we can just change autoconf so that it creates
> configure scripts that look for the latest config.guess/sub. I am
> pursuing all of these approaches, starting at autoconf.

While replacing config.guess/sub gets over the first hurdle, there are 
surely additional hurdles to be encountered which might render getting 
past the first hurdle to be moot.  For example, libtool (also embedded 
in packages) includes platform-specific code keyed off of results from 
config.guess.  Many configure scripts include peculiar code keyed off 
of results from config.guess.

There is really no solid solution other than performing proper 
maintenance of the packages and sending patches to the upstream 
maintainer.

For an exceedingly-rare platform like arm64, it is likely that the 
early ports will be of rather low quality and that quality will not 
improve until package maintainers take an interest, get access to 
target hardware, and make sure that their package works well on that 
target.

Bob
-- 
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/


From MAILER-DAEMON Mon Oct 08 15:26:14 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TLIxy-00027D-E2
	for mharc-autoconf@gnu.org; Mon, 08 Oct 2012 15:26:14 -0400
Received: from eggs.gnu.org ([208.118.235.92]:60765)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rra@stanford.edu>) id 1TLIxv-000274-T4
	for autoconf@gnu.org; Mon, 08 Oct 2012 15:26:12 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rra@stanford.edu>) id 1TLIxu-0004cZ-LU
	for autoconf@gnu.org; Mon, 08 Oct 2012 15:26:11 -0400
Received: from smtp1.stanford.edu ([171.67.219.81]:41984
	helo=smtp.stanford.edu) by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rra@stanford.edu>) id 1TLIxu-0004cK-Fs
	for autoconf@gnu.org; Mon, 08 Oct 2012 15:26:10 -0400
Received: from smtp.stanford.edu (localhost.localdomain [127.0.0.1])
	by localhost (Postfix) with SMTP id A3A2F140787;
	Mon,  8 Oct 2012 12:26:08 -0700 (PDT)
Received: from windlord.stanford.edu (windlord.Stanford.EDU [171.67.225.134])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.stanford.edu (Postfix) with ESMTPS id 4E120140A00;
	Mon,  8 Oct 2012 12:26:08 -0700 (PDT)
Received: by windlord.stanford.edu (Postfix, from userid 1000)
	id 190C52F493; Mon,  8 Oct 2012 12:26:08 -0700 (PDT)
From: Russ Allbery <rra@stanford.edu>
To: Paul Wise <pabs3@bonedaddy.net>
Subject: Re: [RFC] getting rid of the config.guess/sub problem when
	bootstrapping new ports/systems
In-Reply-To: <1349719476.11713.106.camel@chianamo> (Paul Wise's message of
	"Tue, 09 Oct 2012 02:04:36 +0800")
Organization: The Eyrie
References: <1349696427.11713.95.camel@chianamo> <5072FDA9.90208@redhat.com>
	<1349719476.11713.106.camel@chianamo>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)
Date: Mon, 08 Oct 2012 12:26:08 -0700
Message-ID: <87k3v0lq9b.fsf@windlord.stanford.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 171.67.219.81
Cc: autoconf <autoconf@gnu.org>
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Oct 2012 19:26:13 -0000

Paul Wise <pabs3@bonedaddy.net> writes:

> In the meantime, within Debian we will be pursuing both per-package
> updating of config.guess/sub and I'm also thinking about getting our
> binary package build toolchain to take that role, but I'm not sure how
> well that would be received within Debian or how well it would work.

Personally, I've already started converting every package I maintain that
uses Autoconf to using dh_autoreconf during the build.  I wonder if that
isn't a better long-term solution for Debian.  config.guess/config.sub
have caused the most frequent problems, but we've had problems in the past
from old versions of Libtool as well, and dh_autoreconf resolves the
entire problem (at least for packages for which it works).

Paul, separately, if you haven't already, could you request that the
Lintian checks for outdated config.guess/config.sub be updated for
whatever version you need for arm64?  We could also recommend
dh_autoreconf at the same time, which might resolve a lot of these
problems going forward.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>


From MAILER-DAEMON Mon Oct 08 15:32:45 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TLJ4H-0003qZ-D1
	for mharc-autoconf@gnu.org; Mon, 08 Oct 2012 15:32:45 -0400
Received: from eggs.gnu.org ([208.118.235.92]:52573)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rra@stanford.edu>) id 1TLJ4F-0003qS-4i
	for autoconf@gnu.org; Mon, 08 Oct 2012 15:32:44 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rra@stanford.edu>) id 1TLJ4D-0006e1-Sn
	for autoconf@gnu.org; Mon, 08 Oct 2012 15:32:43 -0400
Received: from smtp2.stanford.edu ([171.67.219.82]:35989
	helo=smtp.stanford.edu) by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rra@stanford.edu>) id 1TLJ4D-0006dv-NI
	for autoconf@gnu.org; Mon, 08 Oct 2012 15:32:41 -0400
Received: from smtp.stanford.edu (localhost.localdomain [127.0.0.1])
	by localhost (Postfix) with SMTP id AF623644C6F
	for <autoconf@gnu.org>; Mon,  8 Oct 2012 12:32:40 -0700 (PDT)
Received: from windlord.stanford.edu (windlord.Stanford.EDU [171.67.225.134])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.stanford.edu (Postfix) with ESMTPS id 9B750644C0A
	for <autoconf@gnu.org>; Mon,  8 Oct 2012 12:32:40 -0700 (PDT)
Received: by windlord.stanford.edu (Postfix, from userid 1000)
	id 72C5325A44; Mon,  8 Oct 2012 12:32:40 -0700 (PDT)
From: Russ Allbery <rra@stanford.edu>
To: autoconf@gnu.org
Subject: Re: [RFC] getting rid of the config.guess/sub problem when
	bootstrapping new ports/systems
In-Reply-To: <alpine.GSO.2.01.1210081101340.16922@freddy.simplesystems.org>
	(Bob Friesenhahn's message of "Mon, 8 Oct 2012 11:07:42 -0500 (CDT)")
Organization: The Eyrie
References: <1349696427.11713.95.camel@chianamo>
	<alpine.GSO.2.01.1210081101340.16922@freddy.simplesystems.org>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)
Date: Mon, 08 Oct 2012 12:32:40 -0700
Message-ID: <87txu4kbdz.fsf@windlord.stanford.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 171.67.219.82
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Oct 2012 19:32:44 -0000

Bob Friesenhahn <bfriesen@simple.dallas.tx.us> writes:

> Does simple replacement of config.guess and config.sub constitute a
> useful "port" to this previously unencountered target?

Believe it or not, yes, frequently it does.

Note that this is specifically in the context of Debian, which means that
all of these platforms are Linux and they're all using glibc.  The
variation between systems is therefore much less than one might expect,
and less than a lot of packages using config.guess/config.sub are
adjusting for.  There are a lot of packages that have one case that works
on all Linux systems, and those will generally work fine on a new Debian
architecture as long as config.guess/config.sub doesn't explode when
attempting to determine the triplet.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>


From MAILER-DAEMON Mon Oct 08 16:12:46 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TLJh0-0004q3-0p
	for mharc-autoconf@gnu.org; Mon, 08 Oct 2012 16:12:46 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57168)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bfriesen@simple.dallas.tx.us>) id 1TLJgx-0004pZ-GF
	for autoconf@gnu.org; Mon, 08 Oct 2012 16:12:44 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bfriesen@simple.dallas.tx.us>) id 1TLJgw-0004IH-1e
	for autoconf@gnu.org; Mon, 08 Oct 2012 16:12:43 -0400
Received: from blade.simplesystems.org ([65.66.246.74]:32783)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bfriesen@simple.dallas.tx.us>) id 1TLJgv-0004I3-Px
	for autoconf@gnu.org; Mon, 08 Oct 2012 16:12:41 -0400
Received: from freddy.simplesystems.org (freddy.simplesystems.org
	[65.66.246.65])
	by blade.simplesystems.org (8.14.4+Sun/8.14.4) with ESMTP id
	q98KCckx028821; Mon, 8 Oct 2012 15:12:38 -0500 (CDT)
Date: Mon, 8 Oct 2012 15:12:38 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@freddy.simplesystems.org
To: Paul Wise <pabs3@bonedaddy.net>
Subject: Re: [RFC] getting rid of the config.guess/sub problem when
	bootstrapping new ports/systems
In-Reply-To: <1349719763.11713.112.camel@chianamo>
Message-ID: <alpine.GSO.2.01.1210081507070.16922@freddy.simplesystems.org>
References: <1349696427.11713.95.camel@chianamo>
	<alpine.GSO.2.01.1210081101340.16922@freddy.simplesystems.org>
	<1349719763.11713.112.camel@chianamo>
User-Agent: Alpine 2.01 (GSO 1266 2009-07-14)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2
	(blade.simplesystems.org [65.66.246.90]);
	Mon, 08 Oct 2012 15:12:39 -0500 (CDT)
X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta)
X-Received-From: 65.66.246.74
Cc: autoconf <autoconf@gnu.org>
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Oct 2012 20:12:44 -0000

On Tue, 9 Oct 2012, Paul Wise wrote:

> On Mon, 2012-10-08 at 11:07 -0500, Bob Friesenhahn wrote:
>
>> Does simple replacement of config.guess and config.sub constitute a
>> useful "port" to this previously unencountered target?
>
> Yes. The problem is that we have to repeat this process for every
> package every time we want to bootstrap a new port or system. Or we can
> change every package to replace config.guess/sub. Or we can change the

Would it help if Autoconf supported environment variables to support 
specifying the config.guess and config.sub scripts to use (similar to 
CONFIG_SITE and CONFIG_SHELL)?  For example, there could be 
CONFIG_SITE and CONFIG_SUB environment variables.  This approach would 
allow the package build wrapper to cause updated scripts to be used 
without needing to replace stale files which might happen to be in the 
package.  It seems easier for the package build system to specify what 
it wants to be used rather than hope that rules built into the package 
will select the desired version.

Bob
-- 
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/


From MAILER-DAEMON Mon Oct 08 16:13:58 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TLJi9-0006WX-Va
	for mharc-autoconf@gnu.org; Mon, 08 Oct 2012 16:13:57 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57529)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bfriesen@simple.dallas.tx.us>) id 1TLJi7-0006QF-Mu
	for autoconf@gnu.org; Mon, 08 Oct 2012 16:13:56 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bfriesen@simple.dallas.tx.us>) id 1TLJi5-0004Uv-N7
	for autoconf@gnu.org; Mon, 08 Oct 2012 16:13:55 -0400
Received: from blade.simplesystems.org ([65.66.246.74]:32788)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bfriesen@simple.dallas.tx.us>) id 1TLJi5-0004UM-G4
	for autoconf@gnu.org; Mon, 08 Oct 2012 16:13:53 -0400
Received: from freddy.simplesystems.org (freddy.simplesystems.org
	[65.66.246.65])
	by blade.simplesystems.org (8.14.4+Sun/8.14.4) with ESMTP id
	q98KDpUw028832; Mon, 8 Oct 2012 15:13:51 -0500 (CDT)
Date: Mon, 8 Oct 2012 15:13:51 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@freddy.simplesystems.org
To: Paul Wise <pabs3@bonedaddy.net>
Subject: Re: [RFC] getting rid of the config.guess/sub problem when
	bootstrapping new ports/systems
In-Reply-To: <alpine.GSO.2.01.1210081507070.16922@freddy.simplesystems.org>
Message-ID: <alpine.GSO.2.01.1210081513160.16922@freddy.simplesystems.org>
References: <1349696427.11713.95.camel@chianamo>
	<alpine.GSO.2.01.1210081101340.16922@freddy.simplesystems.org>
	<1349719763.11713.112.camel@chianamo>
	<alpine.GSO.2.01.1210081507070.16922@freddy.simplesystems.org>
User-Agent: Alpine 2.01 (GSO 1266 2009-07-14)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2
	(blade.simplesystems.org [65.66.246.90]);
	Mon, 08 Oct 2012 15:13:51 -0500 (CDT)
X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta)
X-Received-From: 65.66.246.74
Cc: autoconf <autoconf@gnu.org>
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Oct 2012 20:13:56 -0000

On Mon, 8 Oct 2012, Bob Friesenhahn wrote:
> CONFIG_SITE and CONFIG_SHELL)?  For example, there could be CONFIG_SITE and 
> CONFIG_SUB environment variables.  This approach would allow the package

I meant CONFIG_GUESS and CONFIG_SUB of course. :-)

Bob
-- 
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/


From MAILER-DAEMON Mon Oct 08 17:47:37 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TLLAn-00029J-Ko
	for mharc-autoconf@gnu.org; Mon, 08 Oct 2012 17:47:37 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57359)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmh@debian.org>) id 1TLLAk-00026o-Lw
	for autoconf@gnu.org; Mon, 08 Oct 2012 17:47:35 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hmh@debian.org>) id 1TLLAj-0004Bd-H6
	for autoconf@gnu.org; Mon, 08 Oct 2012 17:47:34 -0400
Received: from out1-smtp.messagingengine.com ([66.111.4.25]:53668)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmh@debian.org>) id 1TLLAj-00049j-9f
	for autoconf@gnu.org; Mon, 08 Oct 2012 17:47:33 -0400
Received: from compute3.internal (compute3.nyi.mail.srv.osa [10.202.2.43])
	by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id A47F720A36;
	Mon,  8 Oct 2012 17:40:09 -0400 (EDT)
Received: from frontend2.nyi.mail.srv.osa ([10.202.2.161])
	by compute3.internal (MEProxy); Mon, 08 Oct 2012 17:40:09 -0400
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=
	messagingengine.com; h=date:from:to:cc:subject:message-id
	:references:mime-version:content-type:in-reply-to; s=smtpout;
	bh=P1ZnVlL6kW+kJEYBZFonKsWJYUQ=; b=uih6TKYXdQcWHyrzRK2U9p/Cz9HM
	t7GIWT67VLgxtC2Y56aHwjXze9A6hQyeeftSxBxkI4KCV1g4U7sY7g1PiVzvuTRh
	gSrmduoKhYEJYe6QZi+a1bFGXLQOPCtq42SPTcurzxSprI9GtkhLcqHzv8IticjD
	bEoWD7vlLQuX78g=
X-Sasl-enc: +7T2JLEJrKUEZKx6RDk9i4o6pTteyC34FSPYqF8IuneZ 1349732409
Received: from khazad-dum.debian.net (unknown [201.82.153.18])
	by mail.messagingengine.com (Postfix) with ESMTPA id 479094827E9;
	Mon,  8 Oct 2012 17:40:09 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])
	by localhost.khazad-dum.debian.net (Postfix) with ESMTP id B9B72E1379; 
	Mon,  8 Oct 2012 18:40:07 -0300 (BRT)
X-Virus-Scanned: Debian amavisd-new at khazad-dum.debian.net
Received: from khazad-dum.debian.net ([127.0.0.1])
	by localhost (khazad-dum2.khazad-dum.debian.net [127.0.0.1])
	(amavisd-new, port 10024)
	with LMTP id OUo4s1Zmq4Mf; Mon,  8 Oct 2012 18:40:07 -0300 (BRT)
Received: by khazad-dum.debian.net (Postfix, from userid 1000)
	id E53CEE13C2; Mon,  8 Oct 2012 18:40:06 -0300 (BRT)
Date: Mon, 8 Oct 2012 18:40:06 -0300
From: Henrique de Moraes Holschuh <hmh@debian.org>
To: Russ Allbery <rra@stanford.edu>
Subject: Re: [RFC] getting rid of the config.guess/sub problem when
	bootstrapping new ports/systems
Message-ID: <20121008214006.GB25229@khazad-dum.debian.net>
References: <1349696427.11713.95.camel@chianamo> <5072FDA9.90208@redhat.com>
	<1349719476.11713.106.camel@chianamo>
	<87k3v0lq9b.fsf@windlord.stanford.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <87k3v0lq9b.fsf@windlord.stanford.edu>
X-GPG-Fingerprint: 1024D/1CDB0FE3 5422 5C61 F6B7 06FB 7E04  3738 EE25 DE3F
	1CDB 0FE3
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 66.111.4.25
Cc: Paul Wise <pabs3@bonedaddy.net>, autoconf <autoconf@gnu.org>
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Oct 2012 21:47:35 -0000

On Mon, 08 Oct 2012, Russ Allbery wrote:
> Personally, I've already started converting every package I maintain that
> uses Autoconf to using dh_autoreconf during the build.  I wonder if that
> isn't a better long-term solution for Debian.  config.guess/config.sub
> have caused the most frequent problems, but we've had problems in the past
> from old versions of Libtool as well, and dh_autoreconf resolves the
> entire problem (at least for packages for which it works).
> 
> Paul, separately, if you haven't already, could you request that the
> Lintian checks for outdated config.guess/config.sub be updated for
> whatever version you need for arm64?  We could also recommend
> dh_autoreconf at the same time, which might resolve a lot of these
> problems going forward.

Well, as far as I am concerned, we should axe from the [next] Debian stable
distro anything that doesn't retool completely before the build, IMO just
updating config.sub/guess is not nearly enough.

That said, Debian rules for packages *really* won't help a large class of
people: those who are not doing Debian package work...

And BTW, I am perfectly fine with issuing debian-stable updates to
autotools-dev (the Debian package that contains the /usr/share/misc/
config.{sub,guess}), but someone has to convince the release managers that
this is acceptable.  We _really_ should do this, since people do develop
software using Debian...

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh


From MAILER-DAEMON Mon Oct 08 21:27:53 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TLObx-0007Cn-LM
	for mharc-autoconf@gnu.org; Mon, 08 Oct 2012 21:27:53 -0400
Received: from eggs.gnu.org ([208.118.235.92]:38488)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <pabs3@bonedaddy.net>) id 1TLObu-0007Ap-Pg
	for autoconf@gnu.org; Mon, 08 Oct 2012 21:27:51 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <pabs3@bonedaddy.net>) id 1TLObt-0003i3-KN
	for autoconf@gnu.org; Mon, 08 Oct 2012 21:27:50 -0400
Received: from ns1.bonedaddy.net ([70.91.141.202]:46911)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <pabs3@bonedaddy.net>) id 1TLObt-0003hr-F6
	for autoconf@gnu.org; Mon, 08 Oct 2012 21:27:49 -0400
Received: from [IPv6:::1] (localhost [127.0.0.1])
	by ns1.bonedaddy.net (8.14.5/8.14.4) with ESMTP id q991RkRm003136
	for <autoconf@gnu.org>; Mon, 8 Oct 2012 21:27:47 -0400
Message-ID: <1349746066.11713.124.camel@chianamo>
Subject: Re: [RFC] getting rid of the config.guess/sub problem when
	bootstrapping new ports/systems
From: Paul Wise <pabs3@bonedaddy.net>
To: autoconf <autoconf@gnu.org>
Date: Tue, 09 Oct 2012 09:27:46 +0800
In-Reply-To: <87k3v0lq9b.fsf@windlord.stanford.edu>
References: <1349696427.11713.95.camel@chianamo> <5072FDA9.90208@redhat.com>
	<1349719476.11713.106.camel@chianamo>
	<87k3v0lq9b.fsf@windlord.stanford.edu>
Content-Type: multipart/signed; micalg="pgp-sha512";
	protocol="application/pgp-signature"; boundary="=-NYJLwIj6ZjjfnC6ZBR8K"
X-Mailer: Evolution 3.4.3-1 
Mime-Version: 1.0
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 70.91.141.202
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Oct 2012 01:27:51 -0000


--=-NYJLwIj6ZjjfnC6ZBR8K
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Mon, 2012-10-08 at 12:26 -0700, Russ Allbery wrote:

> Personally, I've already started converting every package I maintain that
> uses Autoconf to using dh_autoreconf during the build.

Likewise.

> I wonder if that isn't a better long-term solution for Debian.

It is, but for DFSG item 2 reasons rather than this. As a solution for
this in Debian and outside Debian I don't think it scales as well.
Within Debian we would need to make everything use debhelper and make
debhelper do it by default, neither of which are likely. There are quite
a few distros, including proprietary ones, so I don't think this
approach scales outside of Debian either.

> config.guess/config.sub have caused the most frequent problems, but
> we've had problems in the past from old versions of Libtool as well,
> and dh_autoreconf resolves the entire problem (at least for packages
> for which it works).

Thanks, I guess I should prepare a patch for the libtool artefacts too.

> Paul, separately, if you haven't already, could you request that the
> Lintian checks for outdated config.guess/config.sub be updated for
> whatever version you need for arm64?  We could also recommend
> dh_autoreconf at the same time, which might resolve a lot of these
> problems going forward.

Thanks for the suggestion, filed:

http://bugs.debian.org/690014

--=20
bye,
pabs

http://bonedaddy.net/pabs3/

--=-NYJLwIj6ZjjfnC6ZBR8K
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAABCgAGBQJQc32SAAoJEDEWul6f+mmjuvkP/R1D4iXiQ68j79WXv0lRzqev
8rDB8tOCixhx2zDVA9D4aS6JCQNnmUMj8qhpPOflhHNSy0bQV6GwR6iahv/iK3lt
LUMtY14Y4Lko7B9+0b1nCXJ1TND+zfZ8Yx59TIsLuy+H2KZ0FTGXm8uNpr2qloQv
G2wHwevGpi2t+u1u8gcEm6UmjgYHpKDLsF5RuRwHsc1JoSA7CXu0hGvMKZSFbWjO
tq/FmOcdc4X4EpUPIfJjXZVZsv3RmgzhL/0phdlZomXyZNaTyqOB+It5BtFOWGYh
qQq/Q77ZxKf+QbURE/3t5k0lhnyApILzsaF6O6T1Lwzm9LCwaxm6496pz/mJ1+Zn
szDMGmYky3YJTIVi7xiZljS9LFEzRfX9MxlGYB12UXh9oDXLZfwF4djeRp0QmNc7
0XhPJA7VKzhGapJox9/b5wlh+yvBmM95MLSzIAJRLttkxOiVlercSMrJ76Rceo5i
SsXq42KKmV7p6pPqo0dsJzKklEdl3yEh+11jaxUNSJ2Rfmm4sc5jjd9lyfHUHwW/
qLMiNn2iZnJFoWC7HIME1jXxMm9FdNU7k4PIDTRMyq/aYrHFmMnzSjty0ef37aXZ
QyyTSFMXdulEyxewJDDNtqIJyf2f5QICug1h1zOVNgszBLEItCsiu8BHCamy7FlC
34+NXZgrctv5/N6s/Gi6
=Hj7U
-----END PGP SIGNATURE-----

--=-NYJLwIj6ZjjfnC6ZBR8K--



From MAILER-DAEMON Mon Oct 08 21:32:21 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TLOgH-0008Qu-C9
	for mharc-autoconf@gnu.org; Mon, 08 Oct 2012 21:32:21 -0400
Received: from eggs.gnu.org ([208.118.235.92]:40925)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <pabs3@bonedaddy.net>) id 1TLOgB-0008Pw-VK
	for autoconf@gnu.org; Mon, 08 Oct 2012 21:32:20 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <pabs3@bonedaddy.net>) id 1TLOgA-0005UE-CF
	for autoconf@gnu.org; Mon, 08 Oct 2012 21:32:15 -0400
Received: from ns1.bonedaddy.net ([70.91.141.202]:46931)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <pabs3@bonedaddy.net>) id 1TLOgA-0005U9-5z
	for autoconf@gnu.org; Mon, 08 Oct 2012 21:32:14 -0400
Received: from [IPv6:::1] (localhost [127.0.0.1])
	by ns1.bonedaddy.net (8.14.5/8.14.4) with ESMTP id q991WBDI003287
	for <autoconf@gnu.org>; Mon, 8 Oct 2012 21:32:12 -0400
Message-ID: <1349746331.11713.128.camel@chianamo>
Subject: Re: [RFC] getting rid of the config.guess/sub problem when
	bootstrapping new ports/systems
From: Paul Wise <pabs3@bonedaddy.net>
To: autoconf <autoconf@gnu.org>
Date: Tue, 09 Oct 2012 09:32:11 +0800
In-Reply-To: <20121008214006.GB25229@khazad-dum.debian.net>
References: <1349696427.11713.95.camel@chianamo> <5072FDA9.90208@redhat.com>
	<1349719476.11713.106.camel@chianamo>
	<87k3v0lq9b.fsf@windlord.stanford.edu>
	<20121008214006.GB25229@khazad-dum.debian.net>
Content-Type: multipart/signed; micalg="pgp-sha512";
	protocol="application/pgp-signature"; boundary="=-/74GxeWpf3XY2AgwMvoH"
X-Mailer: Evolution 3.4.3-1 
Mime-Version: 1.0
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 70.91.141.202
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Oct 2012 01:32:20 -0000


--=-/74GxeWpf3XY2AgwMvoH
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Mon, 2012-10-08 at 18:40 -0300, Henrique de Moraes Holschuh wrote:

> Well, as far as I am concerned, we should axe from the [next] Debian stab=
le
> distro anything that doesn't retool completely before the build, IMO just
> updating config.sub/guess is not nearly enough.

I think thats going a bit far, especially since there is widely varying
opinion within Debian about if retooling is a good idea or not. I think
retooling is important for various reasons but not important enough to
lose the software from maintainers who disagree.

> That said, Debian rules for packages *really* won't help a large class of
> people: those who are not doing Debian package work...

Good point!

> And BTW, I am perfectly fine with issuing debian-stable updates to
> autotools-dev (the Debian package that contains the /usr/share/misc/
> config.{sub,guess}), but someone has to convince the release managers tha=
t
> this is acceptable.  We _really_ should do this, since people do develop
> software using Debian...=20

I think they would be open to this. Please file a bug so we can get this
into the next point release:

http://www.debian.org/doc/manuals/developers-reference/pkgs.html#upload-sta=
ble

--=20
bye,
pabs

http://bonedaddy.net/pabs3/

--=-/74GxeWpf3XY2AgwMvoH
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAABCgAGBQJQc36bAAoJEDEWul6f+mmjocMP/0GdTAKR5voWOaZr6xL2pqqR
eX9XT6VTohYYdZdvHb1kWbJRdTic6ifixlgIp5dGz/cZErjO4VovjIRTZRYTAf+1
CnaipcVHYlJfd1/6d6t9zqCbBcFrhwq+hjV/DCtFqk4LwVNJJjszXHRGlDKjfTso
A3x1PW9ANKhsJHOwI5k2OFA2HQyyMCkvDIynxXGVH1TXAy1L2oiZsfalTMIrLBow
Xdzeo7e3xlrIYwTNoV3wDIDWgs8DmRXSJrdeXvcpiMm/x6CSaml0UgmXiHbsCi8l
evHobiuDBI31dGhh74hICHijVn8c7hHJiGfXIGeKA2RSvZrRROKS+PVb/oNuezNx
KySXqo7xxMd8KqwgafChytJ6KCLoMnpQseAmQlxmMNrJAyCfA8RqZEN2IdOzhaji
O1phgtHhYiaVakRJp2gYb5bAep4co/NMQNULClPt4S6zZDz/3LPL1sDQBJM3zLyt
i/Uj70+JsvnJKBwOfV2p44/p9UlmdEX4W1cjC4qHn8vZQMpOvVX0kMPVk+ZRphHG
HYxgksEV2C/PIeQRi6dOU1xLw6TE75RlsbF4vz02jSFZ1dGaTXHkvZOcXauvf/f1
Jpdhy0gtM3AOebkt0SPy1iQ5Qj76jXLqecM4KoL2Xnktq6+meoX/ExaB2aUVmnuS
+PG8PsQjpjnb2LNE8TFr
=WYx/
-----END PGP SIGNATURE-----

--=-/74GxeWpf3XY2AgwMvoH--



From MAILER-DAEMON Mon Oct 08 22:14:33 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TLPL7-0006Do-Gz
	for mharc-autoconf@gnu.org; Mon, 08 Oct 2012 22:14:33 -0400
Received: from eggs.gnu.org ([208.118.235.92]:44414)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <pabs3@bonedaddy.net>) id 1TLPL5-0006CX-4P
	for autoconf@gnu.org; Mon, 08 Oct 2012 22:14:32 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <pabs3@bonedaddy.net>) id 1TLPL3-00024k-Ns
	for autoconf@gnu.org; Mon, 08 Oct 2012 22:14:31 -0400
Received: from ns1.bonedaddy.net ([70.91.141.202]:47014)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <pabs3@bonedaddy.net>) id 1TLPL3-00024e-IQ
	for autoconf@gnu.org; Mon, 08 Oct 2012 22:14:29 -0400
Received: from [IPv6:::1] (localhost [127.0.0.1])
	by ns1.bonedaddy.net (8.14.5/8.14.4) with ESMTP id q992EQ6w005870
	for <autoconf@gnu.org>; Mon, 8 Oct 2012 22:14:28 -0400
Message-ID: <1349748863.11713.141.camel@chianamo>
Subject: Re: [RFC] getting rid of the config.guess/sub problem when
	bootstrapping new ports/systems
From: Paul Wise <pabs3@bonedaddy.net>
To: autoconf <autoconf@gnu.org>
Date: Tue, 09 Oct 2012 10:14:23 +0800
In-Reply-To: <alpine.GSO.2.01.1210081339380.16922@freddy.simplesystems.org>
References: <1349696427.11713.95.camel@chianamo>
	<alpine.GSO.2.01.1210081101340.16922@freddy.simplesystems.org>
	<1349719763.11713.112.camel@chianamo>
	<alpine.GSO.2.01.1210081339380.16922@freddy.simplesystems.org>
Content-Type: multipart/signed; micalg="pgp-sha512";
	protocol="application/pgp-signature"; boundary="=-dOH5C9ZhAshs0yvGK1B0"
X-Mailer: Evolution 3.4.3-1 
Mime-Version: 1.0
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 70.91.141.202
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Oct 2012 02:14:32 -0000


--=-dOH5C9ZhAshs0yvGK1B0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Mon, 2012-10-08 at 13:52 -0500, Bob Friesenhahn wrote:

> While replacing config.guess/sub gets over the first hurdle, there are=
=20
> surely additional hurdles to be encountered which might render getting=
=20
> past the first hurdle to be moot.

Agreed, the key here is to not give up before starting. I'll probably
work on other issues as I find out about them. The copies of libtool
parts are probably the next thing to work on.

> For example, libtool (also embedded in packages) includes
> platform-specific code keyed off of results from config.guess.  Many
> configure scripts include peculiar code keyed off of results from
> config.guess.

In that case I should revise my patch to always use the latest available
config.guess instead of always trying the one in the package first.
Thanks for the info, I was a bit worried about that issue.

> There is really no solid solution other than performing proper=20
> maintenance of the packages and sending patches to the upstream=20
> maintainer.

That doesn't scale to 30K packages, each with different maintainers both
upstream and Debian. Not to mention all the other distros.

> For an exceedingly-rare platform like arm64, it is likely that the=20
> early ports will be of rather low quality and that quality will not=20
> improve until package maintainers take an interest, get access to=20
> target hardware, and make sure that their package works well on that=20
> target.

The people who are working on arm64 are employees of ARM Ltd and have
many years of experience with ARM stuff in both Debian and upstream. I
trust them to get the port right the first time. As for the packages, I
would guess that the other 64-bit Debian ports (ia64, amd64 etc) we have
had would have fixed most 64-bitness issues years ago. I would hope that
the port will be ready by the time ARMv8 capable SoCs are shipping.

--=20
bye,
pabs

http://bonedaddy.net/pabs3/

--=-dOH5C9ZhAshs0yvGK1B0
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAABCgAGBQJQc4h/AAoJEDEWul6f+mmjbHIP/2T0KokEgNeYHuE+dpdpX5oq
TUuVBJo3gSY7QjG4pbwQ1J/uLbvBtiFykIDHY92G+BBgHL7NqI4VZ/DDcX4041gQ
2fNwZOJK95yETGg22bzt4Np3323PaWOqs7rD6PQjLwq6iZDww/y4U2fygXzflXoj
spNOo8jqYVePM62BYw89cUOMVK1LCDJBD/ChiHF9852k1FbWcdIgoLw4QM9ZXuFC
tSZQJ6ApM+wAvpWuDmL33oYv1Oa3aVHGlvPdlreH+0JSyV6qxvDMDEt3ooxHeNoi
P34I7Z7UfkAbm7r/EMFNu0fYBWcn7ZrFP0Xtj7euHNsFMnH47Zm4AQ0CnpKBFTyb
MHHa7MpRzR1sMl79uYfBKrT70vg67p3A6/57eKN/pokiyMYoOuMjYYWe7uU7xfve
AtNhWqvSpwcMIDRiqbMxcloSsedkUbk4u1+wTkle31ePdTrIkx9Uop3ewaZHfMvW
PqNesKdhnPnrD/yjVPSuVxlpdgFV1Q4Sd/OE8LtN5MmkM0wn63MK/7gmuC6D2D+1
A6gAeXNWxFoEuPFYtRlLHjeTbQLfypMMWbej2RTRKQBN4nf5hsaSldzH/azbT81u
IF9DLlHaKs+/qREw0oJRb/6Cdtal41bnSq4bkZyFWMr1YBGRvUMU7CQTgL0OEHpw
sRLXMjB6UTB8c/NIdDDO
=KGbh
-----END PGP SIGNATURE-----

--=-dOH5C9ZhAshs0yvGK1B0--



From MAILER-DAEMON Mon Oct 08 22:48:46 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TLPsE-0003Hm-Kw
	for mharc-autoconf@gnu.org; Mon, 08 Oct 2012 22:48:46 -0400
Received: from eggs.gnu.org ([208.118.235.92]:43912)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <wookey@wookware.org>) id 1TLPIC-0005lW-2U
	for autoconf@gnu.org; Mon, 08 Oct 2012 22:11:33 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <wookey@wookware.org>) id 1TLPIA-0001aM-QW
	for autoconf@gnu.org; Mon, 08 Oct 2012 22:11:32 -0400
Received: from stoneboat.aleph1.co.uk ([80.68.88.63]:52130)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <wookey@wookware.org>) id 1TLPIA-0001aA-Kt
	for autoconf@gnu.org; Mon, 08 Oct 2012 22:11:30 -0400
Received: from wookey by stoneboat.aleph1.co.uk with local (Exim 4.72)
	(envelope-from <wookey@wookware.org>) id 1TLPI2-00046g-Mb
	for autoconf@gnu.org; Tue, 09 Oct 2012 03:11:22 +0100
Date: Tue, 9 Oct 2012 03:11:22 +0100
From: Wookey <wookey@wookware.org>
To: autoconf@gnu.org
Subject: Re: [RFC] getting rid of the config.guess/sub problem when
	bootstrapping new ports/systems
Message-ID: <20121009021122.GW24695@stoneboat.aleph1.co.uk>
References: <1349696427.11713.95.camel@chianamo>
	<alpine.GSO.2.01.1210081101340.16922@freddy.simplesystems.org>
	<87txu4kbdz.fsf@windlord.stanford.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <87txu4kbdz.fsf@windlord.stanford.edu>
Organization: Wookware          
User-Agent: Mutt/1.5.20 (2009-06-14)
X-SA-Exim-Connect-IP: <locally generated>
X-SA-Exim-Mail-From: wookey@wookware.org
X-SA-Exim-Scanned: No (on stoneboat.aleph1.co.uk);
	SAEximRunCond expanded to false
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 80.68.88.63
X-Mailman-Approved-At: Mon, 08 Oct 2012 22:48:45 -0400
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Oct 2012 02:11:33 -0000

+++ Russ Allbery [2012-10-08 12:32 -0700]:
> Bob Friesenhahn <bfriesen@simple.dallas.tx.us> writes:
> 
> > Does simple replacement of config.guess and config.sub constitute a
> > useful "port" to this previously unencountered target?
> 
> Believe it or not, yes, frequently it does.

> Note that this is specifically in the context of Debian, which means that
> all of these platforms are Linux and they're all using glibc. 

Indeed. In more than 90% of cases this is all that was required,
assuming the package cross-built at all (currently everything is
cross-built as there is no actual arm64 hardware anywhere).

yes, a proper autoreconf is better for lots of reasons but it doesn't
really make any difference for our purposes. 

Wookey
-- 
Principal hats:  Linaro, Emdebian, Wookware, Balloonboard, ARM
http://wookware.org/


From MAILER-DAEMON Mon Oct 08 23:07:28 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TLQAJ-0005ok-Vx
	for mharc-autoconf@gnu.org; Mon, 08 Oct 2012 23:07:27 -0400
Received: from eggs.gnu.org ([208.118.235.92]:47338)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <prvs=622755499=sujit.devkar@tcsin.com>)
	id 1TLQAH-0005mT-51
	for autoconf@gnu.org; Mon, 08 Oct 2012 23:07:25 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <prvs=622755499=sujit.devkar@tcsin.com>)
	id 1TLQAG-0002sM-6b
	for autoconf@gnu.org; Mon, 08 Oct 2012 23:07:25 -0400
Received: from inmumg02.tcs.com ([219.64.33.222]:62423)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <prvs=622755499=sujit.devkar@tcsin.com>)
	id 1TLQAF-0002s5-TX
	for autoconf@gnu.org; Mon, 08 Oct 2012 23:07:24 -0400
From: Sujit Devkar <sujit.devkar@tcs.com>
X-IronPort-AV: E=Sophos;i="4.80,557,1344191400"; d="scan'208";a="93426756"
Received: from cdctdlpprotect4 (unknown [127.0.0.1])
	by cdctdlpprotect4.localdomain (Service) with ESMTP id 2DDF91F40F
	for <autoconf@gnu.org>; Tue,  9 Oct 2012 08:30:05 +0530 (IST)
Received: from InMumH01.tcs.com (unknown [172.17.9.35])
	by cdctdlpprotect4.localdomain (Service) with ESMTP id 22C911F402
	for <autoconf@gnu.org>; Tue,  9 Oct 2012 08:30:05 +0530 (IST)
Received: from inmumzh01.tcsin.com ([172.17.242.37])
	by InMumH01.tcs.com (Lotus Domino Release 8.5.2FP4HF189)
	with ESMTP id 2012100908372158-19909 ;
	Tue, 9 Oct 2012 08:37:21 +0530 
Received: from localhost (localhost.localdomain [127.0.0.1])
	by inmumzh01.tcsin.com (Postfix) with ESMTP id 8C250D8002
	for <autoconf@gnu.org>; Tue,  9 Oct 2012 08:37:21 +0530 (IST)
X-Virus-Scanned: amavisd-new at tcsin.com
Received: from inmumzh01.tcsin.com ([127.0.0.1])
	by localhost (inmumzh01.tcsin.com [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id Gux4WsixoBEp for <autoconf@gnu.org>;
	Tue,  9 Oct 2012 08:37:21 +0530 (IST)
Received: from [127.0.0.1] (unknown [172.17.64.92])
	by inmumzh01.tcsin.com (Postfix) with ESMTPSA id 744C5D8001
	for <autoconf@gnu.org>; Tue,  9 Oct 2012 08:37:21 +0530 (IST)
Message-ID: <507394E7.70004@tcsin.com>
Date: Tue, 09 Oct 2012 08:37:19 +0530
User-Agent: Mozilla/5.0 (Windows NT 5.1;
	rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
To: autoconf@gnu.org
Subject: [Autoconf] Including Files in configure.ac
References: <50725079.3030304@tcsin.com>
In-Reply-To: <50725079.3030304@tcsin.com>
X-Forwarded-Message-Id: <50725079.3030304@tcsin.com>
X-MIMETrack: Itemize by SMTP Server on InMumH01/TCS(Release 8.5.2FP4HF189 |
	September 13, 2012) at 10/09/2012 08:37:21,
	Serialize by Router on InMumH01/TCS(Release 8.5.2FP4HF189 | September
	13, 2012) at 10/09/2012 08:37:21,
	Serialize complete at 10/09/2012 08:37:21
X-TNEFEvaluated: 1
Content-Type: text/plain; charset="iso-8859-1"; format="flowed"
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 219.64.33.222
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Oct 2012 03:07:26 -0000

Dear Sir/Madam,
I am working on autotools.
I was using shell script to compile my c++ project.
My shell script is
g++ -I/usr/abc/inc -L/usr/abc/lib abc.cpp -lsrl -o abc  works
perfectly well. I need to use this in autoconf.

Also I use .java files in the project and I use
gcj --main=3Dexample Example.java --classpath=3Dlibrary --classpath=3Dlibra=
ry
Example --indirect-dispatch

Could you please tell me how can I write this in configure.ac?
Which files should I include in AC_CONFIG_SRCDIR and proj_SOURCES=3D..?

Regards,
Sujit




=3D=3D=3D=3D=3D-----=3D=3D=3D=3D=3D-----=3D=3D=3D=3D=3D
Notice: The information contained in this e-mail
message and/or attachments to it may contain =

confidential or privileged information. If you are =

not the intended recipient, any dissemination, use, =

review, distribution, printing or copying of the =

information contained in this e-mail message =

and/or attachments to it are strictly prohibited. If =

you have received this communication in error, =

please notify us by reply e-mail or telephone and =

immediately and permanently delete the message =

and any attachments. Thank you





From MAILER-DAEMON Mon Oct 08 23:27:50 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TLQU1-000092-WD
	for mharc-autoconf@gnu.org; Mon, 08 Oct 2012 23:27:50 -0400
Received: from eggs.gnu.org ([208.118.235.92]:58399)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <pabs3@bonedaddy.net>) id 1TLQTy-00008w-Su
	for autoconf@gnu.org; Mon, 08 Oct 2012 23:27:48 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <pabs3@bonedaddy.net>) id 1TLQTx-0000bh-Ah
	for autoconf@gnu.org; Mon, 08 Oct 2012 23:27:46 -0400
Received: from ns1.bonedaddy.net ([70.91.141.202]:47135)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <pabs3@bonedaddy.net>) id 1TLQTx-0000bZ-54
	for autoconf@gnu.org; Mon, 08 Oct 2012 23:27:45 -0400
Received: from [IPv6:::1] (localhost [127.0.0.1])
	by ns1.bonedaddy.net (8.14.5/8.14.4) with ESMTP id q993RgaH022256
	for <autoconf@gnu.org>; Mon, 8 Oct 2012 23:27:43 -0400
Message-ID: <1349753258.11713.149.camel@chianamo>
Subject: [RFC] pass #2 at getting rid of the config.guess/sub problem when
	bootstrapping new ports/systems
From: Paul Wise <pabs3@bonedaddy.net>
To: autoconf@gnu.org
Date: Tue, 09 Oct 2012 11:27:38 +0800
In-Reply-To: <1349696427.11713.95.camel@chianamo>
References: <1349696427.11713.95.camel@chianamo>
Content-Type: multipart/signed; micalg="pgp-sha512";
	protocol="application/pgp-signature"; boundary="=-IVS6/bcouTuxTS8xoCSo"
X-Mailer: Evolution 3.4.3-1 
Mime-Version: 1.0
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 70.91.141.202
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Oct 2012 03:27:48 -0000


--=-IVS6/bcouTuxTS8xoCSo
Content-Type: multipart/mixed; boundary="=-+FYbmlr9qWVzzRl8EAB8"


--=-+FYbmlr9qWVzzRl8EAB8
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Mon, 2012-10-08 at 20:46 +0800, Paul Wise wrote:

> So, Debian is in the process of bringing up our upcoming arm64 port.
> Unfortunately we are also coming across lots of packages with rather
> outdated config.guess and config.sub files (see links below).

I've taken on board advice received during this thread and elsewhere and
updated the patch to always use the latest config.guess and config.sub
files. I've also tested the result on one of the things I'm upstream for
and it works to my satisfaction. The only downside is that there is a
code block that occurs twice in each generated configure script, but I'm
not sure how to avoid that, any pointers? Please see the attached patch.

--=20
bye,
pabs

http://bonedaddy.net/pabs3/

--=-+FYbmlr9qWVzzRl8EAB8
Content-Disposition: attachment;
	filename*0=0001-Check-a-number-of-paths-for-newer-config.guess-confi.pat;
	filename*1=ch
Content-Type: text/x-patch;
	name="0001-Check-a-number-of-paths-for-newer-config.guess-confi.patch";
	charset="UTF-8"
Content-Transfer-Encoding: base64

RnJvbSBkYWY4OTRmMzZkZDUzYzdiMzAzM2E3MjdhZWY3M2ExNDljNzAzMGIzIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQ0KRnJvbTogUGF1bCBXaXNlIDxwYWJzM0Bib25lZGFkZHkubmV0Pg0KRGF0
ZTogVHVlLCA5IE9jdCAyMDEyIDExOjA2OjM3ICswODAwDQpTdWJqZWN0OiBbUEFUQ0hdIENoZWNr
IGEgbnVtYmVyIG9mIHBhdGhzIGZvciBuZXdlciBjb25maWcuZ3Vlc3MvY29uZmlnLnN1YiwNCiBy
dW4gdGhlIGxhdGVzdC4NCg0KVGhpcyBoZWxwcyBwZW9wbGUgd2hvIGFyZSBib290c3RyYXBwaW5n
IG5ldyBzeXN0ZW1zIGZyb20gZXhpc3Rpbmcgc29mdHdhcmUNCnRoYXQgdXNlcyBHTlUgYXV0b3Rv
b2xzLCBjb25maWcuZ3Vlc3MgYW5kIGNvbmZpZy5zdWIuDQoNClRoaXMgaXMgdmVyeSB1c2VmdWwg
Zm9yIGRpc3RyaWJ1dGlvbnMgbGlrZSBEZWJpYW4gdGhhdCBhZGQgbmV3IGFyY2hpdGVjdHVyZXMN
CmFuZCB0aGVuIGhhdmUgdG8gdXBkYXRlIGNvbmZpZy5zdWIgYW5kIGNvbmZpZy5ndWVzcyBpbiBl
dmVyeSBzaW5nbGUgcGFja2FnZQ0KdGhhdCB1c2VzIGF1dG9tYWtlIG9yIGhhdmUgdG8gd29ya2Fy
b3VuZCB0aGUgcHJvYmxlbSBieSBhZGRpbmcgY29kZSB0byBlYWNoDQpwYWNrYWdlIHRvIGNvcHkg
aW4gdGhlIGxhdGVzdCB2ZXJzaW9ucyBvZiB0aGVzZSBzY3JpcHRzIGZyb20gYW5vdGhlciBwYWNr
YWdlDQpjb250YWluaW5nIHRoZSBsYXRlc3QgdmVyc2lvbiBvZiB0aGUgc2NyaXB0cyAoYXV0b3Rv
b2xzLWRldiBpbiBEZWJpYW4pLg0KLS0tDQogbGliL2F1dG9jb25mL2dlbmVyYWwubTQgfCAgIDU3
ICsrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKystLS0tLS0tLS0tLS0tDQogMSBmaWxl
IGNoYW5nZWQsIDQxIGluc2VydGlvbnMoKyksIDE2IGRlbGV0aW9ucygtKQ0KDQpkaWZmIC0tZ2l0
IGEvbGliL2F1dG9jb25mL2dlbmVyYWwubTQgYi9saWIvYXV0b2NvbmYvZ2VuZXJhbC5tNA0KaW5k
ZXggNTFjZWUzMC4uMTE2YmY5NSAxMDA2NDQNCi0tLSBhL2xpYi9hdXRvY29uZi9nZW5lcmFsLm00
DQorKysgYi9saWIvYXV0b2NvbmYvZ2VuZXJhbC5tNA0KQEAgLTE2ODAsNiArMTY4MCwzNiBAQCBB
Q19ERUZVTihbQUNfQ09ORklHX0FVWF9ESVJdLA0KIEFDX0RFRlVOKFtBQ19DT05GSUdfQVVYX0RJ
Ul9ERUZBVUxUXSwNCiBbQUNfQ09ORklHX0FVWF9ESVJTKCIkc3JjZGlyIiAiJHNyY2Rpci8uLiIg
IiRzcmNkaXIvLi4vLi4iKV0pDQogDQorIyBBQ19DT05GSUdfQVVYX0RJUl9MQVRFU1QNCisjIC0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0NCisjIEludGVybmFsIHN1YnJvdXRpbmUuDQorIyBGaW5k
IHRoZSBsYXRlc3QgdmVyc2lvbiBvZiBjb25maWcuZ3Vlc3MgYW5kIGNvbmZpZy5zdWIgdGhhdCBp
cw0KKyMgYXZhaWxhYmxlIG9uIHRoZSBzeXN0ZW0gdG8gcHJldmVudCBpc3N1ZXMgd2l0aCBib290
c3RyYXBwaW5nLg0KK0FDX0RFRlVOKFtBQ19DT05GSUdfQVVYX0RJUl9MQVRFU1RdLA0KK1sNCitj
dXJfdj0wDQorZm9yIHBhdGggaW4gXA0KKyAgJDIgXA0KKyAgIiRIT01FLy5jb25maWcvYXV0b3Rv
b2xzIiBcDQorICAvdXNyL2xvY2FsL3NoYXJlL2F1dG9tYWtlLSogXA0KKyAgL3Vzci9sb2NhbC9z
aGFyZS9hdXRvbWFrZSBcDQorICAvdXNyL3NoYXJlL21pc2MgXA0KKyAgL3Vzci9zaGFyZS9nbnVj
b25maWcgXA0KKyAgL3Vzci9zaGFyZS9hdXRvbWFrZS0qIFwNCisgIC91c3Ivc2hhcmUvYXV0b21h
a2UgXA0KKyAgL3Vzci9zaGFyZS9saWJ0b29sL2NvbmZpZyBcDQorICA7IGRvDQorICAgIGlmIHRl
c3QgLXggIiRwYXRoL2NvbmZpZy4kMSIgOyB0aGVuDQorICAgICAgdj1gJFNIRUxMICIkcGF0aC9j
b25maWcuJDEiIC0tdGltZS1zdGFtcCB8IHNlZCBzLy0vL2dgDQorICAgICAgaWYgdGVzdCAiJHYi
IC1ndCAiJGN1cl92IiA7IHRoZW4NCisgICAgICAgIGN1cl92PSIkdiINCisgICAgICAgIGxhdGVz
dD0iJHBhdGgiDQorICAgICAgZmkNCisgICAgZmkNCitkb25lDQorYWNfY29uZmlnXyQxPSIkbGF0
ZXN0L2NvbmZpZy4kMSINCitdKSMgQUNfQ09ORklHX0FVWF9ESVJfTEFURVNUDQorDQogDQogIyBB
Q19DT05GSUdfQVVYX0RJUlMoRElSIC4uLikNCiAjIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LQ0KQEAgLTE3MDgsMTMgKzE3MzgsOCBAQCBpZiB0ZXN0IC16ICIkYWNfYXV4X2RpciI7IHRoZW4N
CiAgIEFDX01TR19FUlJPUihbY2Fubm90IGZpbmQgaW5zdGFsbC1zaCwgaW5zdGFsbC5zaCwgb3Ig
c2h0b29sIGluICQxXSkNCiBmaQ0KIA0KLSMgVGhlc2UgdGhyZWUgdmFyaWFibGVzIGFyZSB1bmRv
Y3VtZW50ZWQgYW5kIHVuc3VwcG9ydGVkLA0KLSMgYW5kIGFyZSBpbnRlbmRlZCB0byBiZSB3aXRo
ZHJhd24gaW4gYSBmdXR1cmUgQXV0b2NvbmYgcmVsZWFzZS4NCi0jIFRoZXkgY2FuIGNhdXNlIHNl
cmlvdXMgcHJvYmxlbXMgaWYgYSBidWlsZGVyJ3Mgc291cmNlIHRyZWUgaXMgaW4gYSBkaXJlY3Rv
cnkNCi0jIHdob3NlIGZ1bGwgbmFtZSBjb250YWlucyB1bnVzdWFsIGNoYXJhY3RlcnMuDQotYWNf
Y29uZmlnX2d1ZXNzPSIkU0hFTEwgJGFjX2F1eF9kaXIvY29uZmlnLmd1ZXNzIiAgIyBQbGVhc2Ug
ZG9uJ3QgdXNlIHRoaXMgdmFyLg0KLWFjX2NvbmZpZ19zdWI9IiRTSEVMTCAkYWNfYXV4X2Rpci9j
b25maWcuc3ViIiAgIyBQbGVhc2UgZG9uJ3QgdXNlIHRoaXMgdmFyLg0KLWFjX2NvbmZpZ3VyZT0i
JFNIRUxMICRhY19hdXhfZGlyL2NvbmZpZ3VyZSIgICMgUGxlYXNlIGRvbid0IHVzZSB0aGlzIHZh
ci4NCitBQ19DT05GSUdfQVVYX0RJUl9MQVRFU1QoW2d1ZXNzXSxbJDFdKQ0KK0FDX0NPTkZJR19B
VVhfRElSX0xBVEVTVChbc3ViXSxbJDFdKQ0KIA0KIEFDX1BST1ZJREUoW0FDX0NPTkZJR19BVVhf
RElSX0RFRkFVTFRdKWRubA0KIF0pIyBBQ19DT05GSUdfQVVYX0RJUlMNCkBAIC0xNzk2LDE3ICsx
ODIxLDE3IEBAIG00X2RpdmVydF9vbmNlKFtIRUxQX0NBTk9OXSwNCiBTeXN0ZW0gdHlwZXM6DQog
ICAtLWJ1aWxkPUJVSUxEICAgICBjb25maWd1cmUgZm9yIGJ1aWxkaW5nIG9uIEJVSUxEIFtndWVz
c2VkXV1dKWRubA0KICMgTWFrZSBzdXJlIHdlIGNhbiBydW4gY29uZmlnLnN1Yi4NCi0kU0hFTEwg
IiRhY19hdXhfZGlyL2NvbmZpZy5zdWIiIHN1bjQgPi9kZXYvbnVsbCAyPiYxIHx8DQotICBBQ19N
U0dfRVJST1IoW2Nhbm5vdCBydW4gJFNIRUxMICRhY19hdXhfZGlyL2NvbmZpZy5zdWJdKQ0KKyRT
SEVMTCAiJGFjX2NvbmZpZ19zdWIiIHN1bjQgPi9kZXYvbnVsbCAyPiYxIHx8DQorICBBQ19NU0df
RVJST1IoW2Nhbm5vdCBydW4gJFNIRUxMICRhY19jb25maWdfc3ViXSkNCiANCiBBQ19DQUNIRV9D
SEVDSyhbYnVpbGQgc3lzdGVtIHR5cGVdLCBbYWNfY3ZfYnVpbGRdLA0KIFthY19idWlsZF9hbGlh
cz0kYnVpbGRfYWxpYXMNCiB0ZXN0ICJ4JGFjX2J1aWxkX2FsaWFzIiA9IHggJiYNCi0gIGFjX2J1
aWxkX2FsaWFzPWAkU0hFTEwgIiRhY19hdXhfZGlyL2NvbmZpZy5ndWVzcyJgDQorICBhY19idWls
ZF9hbGlhcz1gJFNIRUxMICIkYWNfY29uZmlnX2d1ZXNzImANCiB0ZXN0ICJ4JGFjX2J1aWxkX2Fs
aWFzIiA9IHggJiYNCiAgIEFDX01TR19FUlJPUihbY2Fubm90IGd1ZXNzIGJ1aWxkIHR5cGU7IHlv
dSBtdXN0IHNwZWNpZnkgb25lXSkNCi1hY19jdl9idWlsZD1gJFNIRUxMICIkYWNfYXV4X2Rpci9j
b25maWcuc3ViIiAkYWNfYnVpbGRfYWxpYXNgIHx8DQotICBBQ19NU0dfRVJST1IoWyRTSEVMTCAk
YWNfYXV4X2Rpci9jb25maWcuc3ViICRhY19idWlsZF9hbGlhcyBmYWlsZWRdKQ0KK2FjX2N2X2J1
aWxkPWAkU0hFTEwgIiRhY19jb25maWdfc3ViIiAkYWNfYnVpbGRfYWxpYXNgIHx8DQorICBBQ19N
U0dfRVJST1IoWyRTSEVMTCAkYWNfY29uZmlnX3N1YiAkYWNfYnVpbGRfYWxpYXMgZmFpbGVkXSkN
CiBdKQ0KIF9BQ19DQU5PTklDQUxfU1BMSVQoYnVpbGQpDQogXSkjIEFDX0NBTk9OSUNBTF9CVUlM
RA0KQEAgLTE4MjIsOCArMTg0Nyw4IEBAIEFDX0NBQ0hFX0NIRUNLKFtob3N0IHN5c3RlbSB0eXBl
XSwgW2FjX2N2X2hvc3RdLA0KIFtpZiB0ZXN0ICJ4JGhvc3RfYWxpYXMiID0geDsgdGhlbg0KICAg
YWNfY3ZfaG9zdD0kYWNfY3ZfYnVpbGQNCiBlbHNlDQotICBhY19jdl9ob3N0PWAkU0hFTEwgIiRh
Y19hdXhfZGlyL2NvbmZpZy5zdWIiICRob3N0X2FsaWFzYCB8fA0KLSAgICBBQ19NU0dfRVJST1Io
WyRTSEVMTCAkYWNfYXV4X2Rpci9jb25maWcuc3ViICRob3N0X2FsaWFzIGZhaWxlZF0pDQorICBh
Y19jdl9ob3N0PWAkU0hFTEwgIiRhY19jb25maWdfc3ViIiAkaG9zdF9hbGlhc2AgfHwNCisgICAg
QUNfTVNHX0VSUk9SKFskU0hFTEwgJGFjX2NvbmZpZ19zdWIgJGhvc3RfYWxpYXMgZmFpbGVkXSkN
CiBmaQ0KIF0pDQogX0FDX0NBTk9OSUNBTF9TUExJVChbaG9zdF0pDQpAQCAtMTg0MSw4ICsxODY2
LDggQEAgQUNfQ0FDSEVfQ0hFQ0soW3RhcmdldCBzeXN0ZW0gdHlwZV0sIFthY19jdl90YXJnZXRd
LA0KIFtpZiB0ZXN0ICJ4JHRhcmdldF9hbGlhcyIgPSB4OyB0aGVuDQogICBhY19jdl90YXJnZXQ9
JGFjX2N2X2hvc3QNCiBlbHNlDQotICBhY19jdl90YXJnZXQ9YCRTSEVMTCAiJGFjX2F1eF9kaXIv
Y29uZmlnLnN1YiIgJHRhcmdldF9hbGlhc2AgfHwNCi0gICAgQUNfTVNHX0VSUk9SKFskU0hFTEwg
JGFjX2F1eF9kaXIvY29uZmlnLnN1YiAkdGFyZ2V0X2FsaWFzIGZhaWxlZF0pDQorICBhY19jdl90
YXJnZXQ9YCRTSEVMTCAiJGFjX2NvbmZpZ19zdWIiICR0YXJnZXRfYWxpYXNgIHx8DQorICAgIEFD
X01TR19FUlJPUihbJFNIRUxMICRhY19jb25maWdfc3ViICR0YXJnZXRfYWxpYXMgZmFpbGVkXSkN
CiBmaQ0KIF0pDQogX0FDX0NBTk9OSUNBTF9TUExJVChbdGFyZ2V0XSkNCi0tIA0KMS43LjEwLjQN
Cg0K


--=-+FYbmlr9qWVzzRl8EAB8--

--=-IVS6/bcouTuxTS8xoCSo
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAABCgAGBQJQc5mqAAoJEDEWul6f+mmjxEQQAJ2G25PR1JiJHwp51SB7fYLf
OiS39xrO7wNlDkc1pOn7FyD9Hs/jV1s5vuU6Ru5tXU4mGEXfzabVUP29XOBTKR9U
IRHBsEfIg3Bmky2EZDKY6pvBoufGvLKgANbTCESLA2lTaldrgR1004Xrg92zvbLs
uEHzS/EFSoVbXNg0TDRPczZe20sAHdvZOHUt2EhkprV3cmC0CY7kuGYBQrVcO0Ig
jBHn5lybF96oYFC5F2woLSxZ+/2w5T3nJiWgNTzs1aAMpxgQVIH9XMjZHMxFf/Fk
NHPIoZ6vjFFEn6BFahYV/BekxJywgmiuCkesgoKgsn6LsQBBmZjl0/6DexTGGOJa
+Iqf3OZZUrQDHi3bTSGdCgGvZ8pHVSjCpd5k5LCKnduk0h13m7caNnW7ELxz3sX1
C4X4jnyLe+GqTQ8Y6CReCvom83uSAd7lyF4QqC7+sjWxC7TK66a5mYnL6MvJ9FsB
nH/QQ1DtUcuqfZR1Yk/d6gVlonyiKiM/E6Sg/IUWq9DvL+rnoQPxem5kIuMe39Wz
Ptc7HmJ6IlReFsS+s09TFiDNUZjcRarx/Bklc2K106ndf/5PEwxxaYot0w5/97wF
ey+a7zsdJNPzc+nDBijhxFnA3UMKcOiMAmfUui8ik8H1WjkH8OhlOseMLyqXKL8K
c3AsBpdXKSuKkK309fsY
=TalX
-----END PGP SIGNATURE-----

--=-IVS6/bcouTuxTS8xoCSo--



From MAILER-DAEMON Tue Oct 09 00:03:18 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TLR2M-0001Xj-1B
	for mharc-autoconf@gnu.org; Tue, 09 Oct 2012 00:03:18 -0400
Received: from eggs.gnu.org ([208.118.235.92]:59966)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1TLR2K-0001X4-3V
	for autoconf@gnu.org; Tue, 09 Oct 2012 00:03:17 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1TLR2I-0003Vn-SN
	for autoconf@gnu.org; Tue, 09 Oct 2012 00:03:16 -0400
Received: from mx1.redhat.com ([209.132.183.28]:48265)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1TLR2I-0003Vd-Ix
	for autoconf@gnu.org; Tue, 09 Oct 2012 00:03:14 -0400
Received: from int-mx12.intmail.prod.int.phx2.redhat.com
	(int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25])
	by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q9943B5i031295
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Tue, 9 Oct 2012 00:03:11 -0400
Received: from [10.3.113.3] ([10.3.113.3])
	by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP
	id q9943Ab8003949; Tue, 9 Oct 2012 00:03:10 -0400
Message-ID: <5073A1FD.5080107@redhat.com>
Date: Mon, 08 Oct 2012 22:03:09 -0600
From: Eric Blake <eblake@redhat.com>
Organization: Red Hat
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:15.0) Gecko/20120911 Thunderbird/15.0.1
MIME-Version: 1.0
To: Paul Wise <pabs3@bonedaddy.net>
Subject: Re: [RFC] pass #2 at getting rid of the config.guess/sub problem
	when bootstrapping new ports/systems
References: <1349696427.11713.95.camel@chianamo>
	<1349753258.11713.149.camel@chianamo>
In-Reply-To: <1349753258.11713.149.camel@chianamo>
X-Enigmail-Version: 1.4.4
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature";
	boundary="------------enig1D14030BBA801E88A7031106"
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.132.183.28
Cc: autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Oct 2012 04:03:17 -0000

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig1D14030BBA801E88A7031106
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 10/08/2012 09:27 PM, Paul Wise wrote:
> On Mon, 2012-10-08 at 20:46 +0800, Paul Wise wrote:
>=20
>> So, Debian is in the process of bringing up our upcoming arm64 port.
>> Unfortunately we are also coming across lots of packages with rather
>> outdated config.guess and config.sub files (see links below).
>=20
> I've taken on board advice received during this thread and elsewhere an=
d
> updated the patch to always use the latest config.guess and config.sub
> files. I've also tested the result on one of the things I'm upstream fo=
r
> and it works to my satisfaction. The only downside is that there is a
> code block that occurs twice in each generated configure script, but I'=
m
> not sure how to avoid that, any pointers? Please see the attached patch=
=2E

I still prefer the idea of being able to set an environment variable,
$CONFIG_GUESS, rather than going hunting ourselves.  Then, porting to a
new config.guess script is a matter of calling:

=2E/configure CONFIG_GUESS=3D/path/to/new/version

rather than hoping that a hard-coded hunt will find the new config.guess
appropriate for the system wanting the upgrade path.

--=20
Eric Blake   eblake@redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


--------------enig1D14030BBA801E88A7031106
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iQEcBAEBCAAGBQJQc6H9AAoJEKeha0olJ0NqSgwH/0kgt3jI3XrEbqIW7VlFB+QA
GJ00EHyuCjOchHy8GDR1/Tuhxp2j975R/0yhC5LCdIYaYL9XE8QkXv40QsSdM6Op
92fu3kTYHGqxF6thQfoBqUy1rqw4Sei7SaldCmc5nuP6+VjFCYHBvWdOVi4+a1BB
SfWfnDHNH10/T7OS1apR2akXGLti+FRyLtR3IRz/Mic7jKhwus12bRErxf1KAahf
OVsKkoS/oX9NDruQLDRc2eABQt8EdTVuuYjAbn5RwATpwbQ2ZmFjivaAVthBfT1D
+fZJCe2nt9uyfzHJ4jxudioscq5j33TmbP/jR7gZjA2TowsHPmTvGFhxaYcPS6k=
=ZEB5
-----END PGP SIGNATURE-----

--------------enig1D14030BBA801E88A7031106--


From MAILER-DAEMON Tue Oct 09 00:49:35 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TLRl9-0001y8-N8
	for mharc-autoconf@gnu.org; Tue, 09 Oct 2012 00:49:35 -0400
Received: from eggs.gnu.org ([208.118.235.92]:33577)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <pabs3@bonedaddy.net>) id 1TLRl7-0001xM-5V
	for autoconf@gnu.org; Tue, 09 Oct 2012 00:49:34 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <pabs3@bonedaddy.net>) id 1TLRl5-0002Ot-D7
	for autoconf@gnu.org; Tue, 09 Oct 2012 00:49:33 -0400
Received: from ns1.bonedaddy.net ([70.91.141.202]:47271)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <pabs3@bonedaddy.net>) id 1TLRl5-0002Op-7K
	for autoconf@gnu.org; Tue, 09 Oct 2012 00:49:31 -0400
Received: from [IPv6:::1] (localhost [127.0.0.1])
	by ns1.bonedaddy.net (8.14.5/8.14.4) with ESMTP id q994nRBG025854
	for <autoconf@gnu.org>; Tue, 9 Oct 2012 00:49:29 -0400
Message-ID: <1349758164.11713.159.camel@chianamo>
Subject: Re: [RFC] pass #2 at getting rid of the config.guess/sub problem
	when bootstrapping new ports/systems
From: Paul Wise <pabs3@bonedaddy.net>
To: autoconf@gnu.org
Date: Tue, 09 Oct 2012 12:49:24 +0800
In-Reply-To: <5073A1FD.5080107@redhat.com>
References: <1349696427.11713.95.camel@chianamo>
	<1349753258.11713.149.camel@chianamo> <5073A1FD.5080107@redhat.com>
Content-Type: multipart/signed; micalg="pgp-sha512";
	protocol="application/pgp-signature"; boundary="=-t2bbvdzoW+1HndgiBlgB"
X-Mailer: Evolution 3.4.3-1 
Mime-Version: 1.0
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 70.91.141.202
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Oct 2012 04:49:34 -0000


--=-t2bbvdzoW+1HndgiBlgB
Content-Type: multipart/mixed; boundary="=-2HsmqPf96sqBBhIRAY5Z"


--=-2HsmqPf96sqBBhIRAY5Z
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Mon, 2012-10-08 at 22:03 -0600, Eric Blake wrote:

> I still prefer the idea of being able to set an environment variable,
> $CONFIG_GUESS, rather than going hunting ourselves.  Then, porting to a
> new config.guess script is a matter of calling:
>=20
> ./configure CONFIG_GUESS=3D/path/to/new/version
>=20
> rather than hoping that a hard-coded hunt will find the new config.guess
> appropriate for the system wanting the upgrade path.

Changing the command-line to ./configure doesn't scale. Exporting an
environment variable possibly sounds like an approach some folks would
need, so I have added it in the attached patch. For Debian it would be
easiest to just install the autotools-dev package in build chroots
(config.guess and config.sub are placed in /usr/share/misc) since it
doesn't require fiddling about with configuration files for build daemon
software, which usually doesn't leak random environment variables into
the build process.

--=20
bye,
pabs

http://bonedaddy.net/pabs3/

--=-2HsmqPf96sqBBhIRAY5Z
Content-Disposition: attachment;
	filename*0=0001-Check-a-number-of-paths-for-newer-config.guess-confi.pat;
	filename*1=ch
Content-Type: text/x-patch;
	name="0001-Check-a-number-of-paths-for-newer-config.guess-confi.patch";
	charset="UTF-8"
Content-Transfer-Encoding: base64

RnJvbSA5NzAyOWNkZjdjNTI2MjEyZWU0YTQ3MGJiYzQ3MDc1YWFlZmM2YzRlIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQ0KRnJvbTogUGF1bCBXaXNlIDxwYWJzM0Bib25lZGFkZHkubmV0Pg0KRGF0
ZTogVHVlLCA5IE9jdCAyMDEyIDExOjA2OjM3ICswODAwDQpTdWJqZWN0OiBbUEFUQ0hdIENoZWNr
IGEgbnVtYmVyIG9mIHBhdGhzIGZvciBuZXdlciBjb25maWcuZ3Vlc3MvY29uZmlnLnN1YiwNCiBy
dW4gdGhlIGxhdGVzdC4NCg0KVGhpcyBoZWxwcyBwZW9wbGUgd2hvIGFyZSBib290c3RyYXBwaW5n
IG5ldyBzeXN0ZW1zIGZyb20gZXhpc3Rpbmcgc29mdHdhcmUNCnRoYXQgdXNlcyBHTlUgYXV0b3Rv
b2xzLCBjb25maWcuZ3Vlc3MgYW5kIGNvbmZpZy5zdWIuDQoNClRoaXMgaXMgdmVyeSB1c2VmdWwg
Zm9yIGRpc3RyaWJ1dGlvbnMgbGlrZSBEZWJpYW4gdGhhdCBhZGQgbmV3IGFyY2hpdGVjdHVyZXMN
CmFuZCB0aGVuIGhhdmUgdG8gdXBkYXRlIGNvbmZpZy5zdWIgYW5kIGNvbmZpZy5ndWVzcyBpbiBl
dmVyeSBzaW5nbGUgcGFja2FnZQ0KdGhhdCB1c2VzIGF1dG9tYWtlIG9yIGhhdmUgdG8gd29ya2Fy
b3VuZCB0aGUgcHJvYmxlbSBieSBhZGRpbmcgY29kZSB0byBlYWNoDQpwYWNrYWdlIHRvIGNvcHkg
aW4gdGhlIGxhdGVzdCB2ZXJzaW9ucyBvZiB0aGVzZSBzY3JpcHRzIGZyb20gYW5vdGhlciBwYWNr
YWdlDQpjb250YWluaW5nIHRoZSBsYXRlc3QgdmVyc2lvbiBvZiB0aGUgc2NyaXB0cyAoYXV0b3Rv
b2xzLWRldiBpbiBEZWJpYW4pLg0KLS0tDQogbGliL2F1dG9jb25mL2dlbmVyYWwubTQgfCAgIDU5
ICsrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKystLS0tLS0tLS0tLS0tDQogMSBmaWxl
IGNoYW5nZWQsIDQzIGluc2VydGlvbnMoKyksIDE2IGRlbGV0aW9ucygtKQ0KDQpkaWZmIC0tZ2l0
IGEvbGliL2F1dG9jb25mL2dlbmVyYWwubTQgYi9saWIvYXV0b2NvbmYvZ2VuZXJhbC5tNA0KaW5k
ZXggNTFjZWUzMC4uNmYyNjExNiAxMDA2NDQNCi0tLSBhL2xpYi9hdXRvY29uZi9nZW5lcmFsLm00
DQorKysgYi9saWIvYXV0b2NvbmYvZ2VuZXJhbC5tNA0KQEAgLTE2ODAsNiArMTY4MCwzOCBAQCBB
Q19ERUZVTihbQUNfQ09ORklHX0FVWF9ESVJdLA0KIEFDX0RFRlVOKFtBQ19DT05GSUdfQVVYX0RJ
Ul9ERUZBVUxUXSwNCiBbQUNfQ09ORklHX0FVWF9ESVJTKCIkc3JjZGlyIiAiJHNyY2Rpci8uLiIg
IiRzcmNkaXIvLi4vLi4iKV0pDQogDQorIyBBQ19DT05GSUdfQVVYX0RJUl9MQVRFU1QNCisjIC0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0NCisjIEludGVybmFsIHN1YnJvdXRpbmUuDQorIyBGaW5k
IHRoZSBsYXRlc3QgdmVyc2lvbiBvZiBjb25maWcuZ3Vlc3MgYW5kIGNvbmZpZy5zdWIgdGhhdCBp
cw0KKyMgYXZhaWxhYmxlIG9uIHRoZSBzeXN0ZW0gdG8gcHJldmVudCBpc3N1ZXMgd2l0aCBib290
c3RyYXBwaW5nLg0KK0FDX0RFRlVOKFtBQ19DT05GSUdfQVVYX0RJUl9MQVRFU1RdLA0KK1sNCitj
dXJfdj0wDQorZm9yIHBhdGggaW4gXA0KKyAgJDIgXA0KKyAgIiRIT01FLy5jb25maWcvYXV0b3Rv
b2xzIiBcDQorICAvdXNyL2xvY2FsL3NoYXJlL2F1dG9tYWtlLSogXA0KKyAgL3Vzci9sb2NhbC9z
aGFyZS9hdXRvbWFrZSBcDQorICAvdXNyL2xvY2FsL3NoYXJlL2xpYnRvb2wvY29uZmlnIFwNCisg
IC91c3Ivc2hhcmUvbWlzYyBcDQorICAvdXNyL3NoYXJlL2dudWNvbmZpZyBcDQorICAvdXNyL3No
YXJlL2F1dG9tYWtlLSogXA0KKyAgL3Vzci9zaGFyZS9hdXRvbWFrZSBcDQorICAvdXNyL3NoYXJl
L2xpYnRvb2wvY29uZmlnIFwNCisgICIkW0NPTkZJR19dbTRfdG91cHBlcihbJDFdKSIgXA0KKyAg
OyBkbw0KKyAgICBpZiB0ZXN0IC14ICIkcGF0aC9jb25maWcuJDEiIDsgdGhlbg0KKyAgICAgIHY9
YCRTSEVMTCAiJHBhdGgvY29uZmlnLiQxIiAtLXRpbWUtc3RhbXAgfCBzZWQgcy8tLy9nYA0KKyAg
ICAgIGlmIHRlc3QgIiR2IiAtZ3QgIiRjdXJfdiIgOyB0aGVuDQorICAgICAgICBjdXJfdj0iJHYi
DQorICAgICAgICBsYXRlc3Q9IiRwYXRoIg0KKyAgICAgIGZpDQorICAgIGZpDQorZG9uZQ0KK2Fj
X2NvbmZpZ18kMT0iJGxhdGVzdC9jb25maWcuJDEiDQorXSkjIEFDX0NPTkZJR19BVVhfRElSX0xB
VEVTVA0KKw0KIA0KICMgQUNfQ09ORklHX0FVWF9ESVJTKERJUiAuLi4pDQogIyAtLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0NCkBAIC0xNzA4LDEzICsxNzQwLDggQEAgaWYgdGVzdCAteiAiJGFj
X2F1eF9kaXIiOyB0aGVuDQogICBBQ19NU0dfRVJST1IoW2Nhbm5vdCBmaW5kIGluc3RhbGwtc2gs
IGluc3RhbGwuc2gsIG9yIHNodG9vbCBpbiAkMV0pDQogZmkNCiANCi0jIFRoZXNlIHRocmVlIHZh
cmlhYmxlcyBhcmUgdW5kb2N1bWVudGVkIGFuZCB1bnN1cHBvcnRlZCwNCi0jIGFuZCBhcmUgaW50
ZW5kZWQgdG8gYmUgd2l0aGRyYXduIGluIGEgZnV0dXJlIEF1dG9jb25mIHJlbGVhc2UuDQotIyBU
aGV5IGNhbiBjYXVzZSBzZXJpb3VzIHByb2JsZW1zIGlmIGEgYnVpbGRlcidzIHNvdXJjZSB0cmVl
IGlzIGluIGEgZGlyZWN0b3J5DQotIyB3aG9zZSBmdWxsIG5hbWUgY29udGFpbnMgdW51c3VhbCBj
aGFyYWN0ZXJzLg0KLWFjX2NvbmZpZ19ndWVzcz0iJFNIRUxMICRhY19hdXhfZGlyL2NvbmZpZy5n
dWVzcyIgICMgUGxlYXNlIGRvbid0IHVzZSB0aGlzIHZhci4NCi1hY19jb25maWdfc3ViPSIkU0hF
TEwgJGFjX2F1eF9kaXIvY29uZmlnLnN1YiIgICMgUGxlYXNlIGRvbid0IHVzZSB0aGlzIHZhci4N
Ci1hY19jb25maWd1cmU9IiRTSEVMTCAkYWNfYXV4X2Rpci9jb25maWd1cmUiICAjIFBsZWFzZSBk
b24ndCB1c2UgdGhpcyB2YXIuDQorQUNfQ09ORklHX0FVWF9ESVJfTEFURVNUKFtndWVzc10sWyQx
XSkNCitBQ19DT05GSUdfQVVYX0RJUl9MQVRFU1QoW3N1Yl0sWyQxXSkNCiANCiBBQ19QUk9WSURF
KFtBQ19DT05GSUdfQVVYX0RJUl9ERUZBVUxUXSlkbmwNCiBdKSMgQUNfQ09ORklHX0FVWF9ESVJT
DQpAQCAtMTc5NiwxNyArMTgyMywxNyBAQCBtNF9kaXZlcnRfb25jZShbSEVMUF9DQU5PTl0sDQog
U3lzdGVtIHR5cGVzOg0KICAgLS1idWlsZD1CVUlMRCAgICAgY29uZmlndXJlIGZvciBidWlsZGlu
ZyBvbiBCVUlMRCBbZ3Vlc3NlZF1dXSlkbmwNCiAjIE1ha2Ugc3VyZSB3ZSBjYW4gcnVuIGNvbmZp
Zy5zdWIuDQotJFNIRUxMICIkYWNfYXV4X2Rpci9jb25maWcuc3ViIiBzdW40ID4vZGV2L251bGwg
Mj4mMSB8fA0KLSAgQUNfTVNHX0VSUk9SKFtjYW5ub3QgcnVuICRTSEVMTCAkYWNfYXV4X2Rpci9j
b25maWcuc3ViXSkNCiskU0hFTEwgIiRhY19jb25maWdfc3ViIiBzdW40ID4vZGV2L251bGwgMj4m
MSB8fA0KKyAgQUNfTVNHX0VSUk9SKFtjYW5ub3QgcnVuICRTSEVMTCAkYWNfY29uZmlnX3N1Yl0p
DQogDQogQUNfQ0FDSEVfQ0hFQ0soW2J1aWxkIHN5c3RlbSB0eXBlXSwgW2FjX2N2X2J1aWxkXSwN
CiBbYWNfYnVpbGRfYWxpYXM9JGJ1aWxkX2FsaWFzDQogdGVzdCAieCRhY19idWlsZF9hbGlhcyIg
PSB4ICYmDQotICBhY19idWlsZF9hbGlhcz1gJFNIRUxMICIkYWNfYXV4X2Rpci9jb25maWcuZ3Vl
c3MiYA0KKyAgYWNfYnVpbGRfYWxpYXM9YCRTSEVMTCAiJGFjX2NvbmZpZ19ndWVzcyJgDQogdGVz
dCAieCRhY19idWlsZF9hbGlhcyIgPSB4ICYmDQogICBBQ19NU0dfRVJST1IoW2Nhbm5vdCBndWVz
cyBidWlsZCB0eXBlOyB5b3UgbXVzdCBzcGVjaWZ5IG9uZV0pDQotYWNfY3ZfYnVpbGQ9YCRTSEVM
TCAiJGFjX2F1eF9kaXIvY29uZmlnLnN1YiIgJGFjX2J1aWxkX2FsaWFzYCB8fA0KLSAgQUNfTVNH
X0VSUk9SKFskU0hFTEwgJGFjX2F1eF9kaXIvY29uZmlnLnN1YiAkYWNfYnVpbGRfYWxpYXMgZmFp
bGVkXSkNCithY19jdl9idWlsZD1gJFNIRUxMICIkYWNfY29uZmlnX3N1YiIgJGFjX2J1aWxkX2Fs
aWFzYCB8fA0KKyAgQUNfTVNHX0VSUk9SKFskU0hFTEwgJGFjX2NvbmZpZ19zdWIgJGFjX2J1aWxk
X2FsaWFzIGZhaWxlZF0pDQogXSkNCiBfQUNfQ0FOT05JQ0FMX1NQTElUKGJ1aWxkKQ0KIF0pIyBB
Q19DQU5PTklDQUxfQlVJTEQNCkBAIC0xODIyLDggKzE4NDksOCBAQCBBQ19DQUNIRV9DSEVDSyhb
aG9zdCBzeXN0ZW0gdHlwZV0sIFthY19jdl9ob3N0XSwNCiBbaWYgdGVzdCAieCRob3N0X2FsaWFz
IiA9IHg7IHRoZW4NCiAgIGFjX2N2X2hvc3Q9JGFjX2N2X2J1aWxkDQogZWxzZQ0KLSAgYWNfY3Zf
aG9zdD1gJFNIRUxMICIkYWNfYXV4X2Rpci9jb25maWcuc3ViIiAkaG9zdF9hbGlhc2AgfHwNCi0g
ICAgQUNfTVNHX0VSUk9SKFskU0hFTEwgJGFjX2F1eF9kaXIvY29uZmlnLnN1YiAkaG9zdF9hbGlh
cyBmYWlsZWRdKQ0KKyAgYWNfY3ZfaG9zdD1gJFNIRUxMICIkYWNfY29uZmlnX3N1YiIgJGhvc3Rf
YWxpYXNgIHx8DQorICAgIEFDX01TR19FUlJPUihbJFNIRUxMICRhY19jb25maWdfc3ViICRob3N0
X2FsaWFzIGZhaWxlZF0pDQogZmkNCiBdKQ0KIF9BQ19DQU5PTklDQUxfU1BMSVQoW2hvc3RdKQ0K
QEAgLTE4NDEsOCArMTg2OCw4IEBAIEFDX0NBQ0hFX0NIRUNLKFt0YXJnZXQgc3lzdGVtIHR5cGVd
LCBbYWNfY3ZfdGFyZ2V0XSwNCiBbaWYgdGVzdCAieCR0YXJnZXRfYWxpYXMiID0geDsgdGhlbg0K
ICAgYWNfY3ZfdGFyZ2V0PSRhY19jdl9ob3N0DQogZWxzZQ0KLSAgYWNfY3ZfdGFyZ2V0PWAkU0hF
TEwgIiRhY19hdXhfZGlyL2NvbmZpZy5zdWIiICR0YXJnZXRfYWxpYXNgIHx8DQotICAgIEFDX01T
R19FUlJPUihbJFNIRUxMICRhY19hdXhfZGlyL2NvbmZpZy5zdWIgJHRhcmdldF9hbGlhcyBmYWls
ZWRdKQ0KKyAgYWNfY3ZfdGFyZ2V0PWAkU0hFTEwgIiRhY19jb25maWdfc3ViIiAkdGFyZ2V0X2Fs
aWFzYCB8fA0KKyAgICBBQ19NU0dfRVJST1IoWyRTSEVMTCAkYWNfY29uZmlnX3N1YiAkdGFyZ2V0
X2FsaWFzIGZhaWxlZF0pDQogZmkNCiBdKQ0KIF9BQ19DQU5PTklDQUxfU1BMSVQoW3RhcmdldF0p
DQotLSANCjEuNy4xMC40DQoNCg==


--=-2HsmqPf96sqBBhIRAY5Z--

--=-t2bbvdzoW+1HndgiBlgB
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAABCgAGBQJQc6zUAAoJEDEWul6f+mmjHJkP/3z0/hpHz0VsE86a1DVQLY4/
KNmNNYMoupCclgaLXSjhTQ5qP1RWpO0WAUJhOWFgKubHd5mGhLtc+xdToo+Bci75
BagOxMuBZSVnVPc8fDh0rsR4p8g4IVAD25MIjGtw7vEFACoknvbF4blvD9Il4TA2
1/N49Mgp2DMHZKvpNDMBfPjaCW6D5p1m7c2AlF64ehgCZs8DVOzrp+mf6HKJabN1
mIHY3rLisgKJSUl3geiVXMCT7lJiokVsGpsOMDwK9jl3NGUOYpKyvBAUGMEhRezw
4gK9dj5ec/uSchwZnvU1DV1/a7ukRHzPNU1MYcsy9oVwPYbKoU3F8P9F62s3mcJE
Mn9T6dqYY7nnFJhhWR52XXUgCRlrXWsjG+rsg2m8f5X5omrNfYz1lkCzayIa7n7L
yT2ImIf11c4lIi3u+CADHKstVKKVnk9UDLuvrInZU9xKE4TSk5yQfjoAfGn7N996
GtaXpEfgbr4XPEDGD9X5iWWa1cVlX4XFgMLomaT7jb2vBNbeQ+ifyInVsK8MXwOt
JlyD8631Fd3CjrhQNQE/4qoX6TSf7W59wn9FQoTukV4uNxMiNqRksTy11T+5n8eA
SIBSOEBy7q+qRrZFzdPcho/omXXeSL5mNTtMT933LdSvzlf3ziVVUK3HfN3Be2sB
ZpLbJIUa+pbPmoiofJjr
=F9ou
-----END PGP SIGNATURE-----

--=-t2bbvdzoW+1HndgiBlgB--



From MAILER-DAEMON Tue Oct 09 01:17:25 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TLSC5-0007VU-EY
	for mharc-autoconf@gnu.org; Tue, 09 Oct 2012 01:17:25 -0400
Received: from eggs.gnu.org ([208.118.235.92]:40912)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rc040203@freenet.de>) id 1TLSC3-0007V0-1F
	for autoconf@gnu.org; Tue, 09 Oct 2012 01:17:23 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rc040203@freenet.de>) id 1TLSC1-0003Dj-L9
	for autoconf@gnu.org; Tue, 09 Oct 2012 01:17:22 -0400
Received: from mout2.freenet.de ([195.4.92.92]:55852)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rc040203@freenet.de>) id 1TLSC1-0003Db-En
	for autoconf@gnu.org; Tue, 09 Oct 2012 01:17:21 -0400
Received: from [195.4.92.140] (helo=mjail0.freenet.de)
	by mout2.freenet.de with esmtpa (ID ralf.corsepius@freenet.de) (port
	25) (Exim 4.76 #1) id 1TLSBz-0004yv-6k
	for autoconf@gnu.org; Tue, 09 Oct 2012 07:17:19 +0200
Received: from localhost ([::1]:37609 helo=mjail0.freenet.de)
	by mjail0.freenet.de with esmtpa (ID ralf.corsepius@freenet.de) (Exim
	4.76 #1) id 1TLSBz-00025q-2d
	for autoconf@gnu.org; Tue, 09 Oct 2012 07:17:19 +0200
Received: from [195.4.92.28] (port=53894 helo=18.mx.freenet.de)
	by mjail0.freenet.de with esmtpa (ID ralf.corsepius@freenet.de) (Exim
	4.76 #1) id 1TLS9J-0001aq-Ox
	for autoconf@gnu.org; Tue, 09 Oct 2012 07:14:33 +0200
Received: from hsi-kbw-078-043-063-180.hsi4.kabel-badenwuerttemberg.de
	([78.43.63.180]:43997 helo=[192.168.1.104])
	by 18.mx.freenet.de with esmtpsa (ID ralf.corsepius@freenet.de)
	(TLSv1:CAMELLIA256-SHA:256) (port 587) (Exim 4.76 #1)
	id 1TLS9J-0004H0-HG
	for autoconf@gnu.org; Tue, 09 Oct 2012 07:14:33 +0200
Message-ID: <5073B2B8.6020500@freenet.de>
Date: Tue, 09 Oct 2012 07:14:32 +0200
From: Ralf Corsepius <rc040203@freenet.de>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:15.0) Gecko/20120911 Thunderbird/15.0.1
MIME-Version: 1.0
To: autoconf@gnu.org
Subject: Re: [RFC] pass #2 at getting rid of the config.guess/sub problem
	when bootstrapping new ports/systems
References: <1349696427.11713.95.camel@chianamo>
	<1349753258.11713.149.camel@chianamo>
In-Reply-To: <1349753258.11713.149.camel@chianamo>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 195.4.92.92
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Oct 2012 05:17:24 -0000

On 10/09/2012 05:27 AM, Paul Wise wrote:
> On Mon, 2012-10-08 at 20:46 +0800, Paul Wise wrote:
>
>> >So, Debian is in the process of bringing up our upcoming arm64 port.
>> >Unfortunately we are also coming across lots of packages with rather
>> >outdated config.guess and config.sub files (see links below).
> I've taken on board advice received during this thread and elsewhere and
> updated the patch to always use the latest config.guess and config.sub
> files. I've also tested the result on one of the things I'm upstream for
> and it works to my satisfaction. The only downside is that there is a
> code block that occurs twice in each generated configure script, but I'm
> not sure how to avoid that, any pointers? Please see the attached patch.

I don't like this approach, because I think you are missing that 
config.sub and config.guess have only been overwritten as part of 
"autoreconf -f" (and not of "autoreconf"). This allows package upstreams 
to implement customized versions of both of these scripts.

Though such cases are rare to find in mainstream packages, theses case 
are quite common in cases to toolchain/OS implementors and 
cross-compilation scenarios.


FWIW: Apart of this, in comparable situations in the past, on Red Hat 
based distros, IIRC, RedHat had chosen to copy their versions of 
config.guess+config.sub as part of their build-process [1] by
default[2]. This would be comparable to the dh_<something> others 
mentioned before in this thread.

Ralf

[1] This copying operation was part of rpm's %configure.
Meanwhile, Red Hat/Fedora relies on packages to providing suitable 
config.{guess,sub}s themselves, i.e. either "suiteable versions", or 
"autoreconf -f" or patching.

[2] I.e. there were ways to allow packages to use their own
config.{guess,sub}.


From MAILER-DAEMON Tue Oct 09 02:44:25 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TLTYH-0000Pb-7d
	for mharc-autoconf@gnu.org; Tue, 09 Oct 2012 02:44:25 -0400
Received: from eggs.gnu.org ([208.118.235.92]:37902)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <pabs3@bonedaddy.net>) id 1TLTYE-0000Nx-Ks
	for autoconf@gnu.org; Tue, 09 Oct 2012 02:44:23 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <pabs3@bonedaddy.net>) id 1TLTYD-0006R1-Ax
	for autoconf@gnu.org; Tue, 09 Oct 2012 02:44:22 -0400
Received: from ns1.bonedaddy.net ([70.91.141.202]:47366)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <pabs3@bonedaddy.net>) id 1TLTYD-0006Ql-5k
	for autoconf@gnu.org; Tue, 09 Oct 2012 02:44:21 -0400
Received: from [IPv6:::1] (localhost [127.0.0.1])
	by ns1.bonedaddy.net (8.14.5/8.14.4) with ESMTP id q996iIpi032750
	for <autoconf@gnu.org>; Tue, 9 Oct 2012 02:44:19 -0400
Message-ID: <1349765054.11713.176.camel@chianamo>
Subject: Re: [RFC] pass #2 at getting rid of the config.guess/sub problem
	when bootstrapping new ports/systems
From: Paul Wise <pabs3@bonedaddy.net>
To: autoconf@gnu.org
Date: Tue, 09 Oct 2012 14:44:14 +0800
In-Reply-To: <5073B2B8.6020500@freenet.de>
References: <1349696427.11713.95.camel@chianamo>
	<1349753258.11713.149.camel@chianamo> <5073B2B8.6020500@freenet.de>
Content-Type: multipart/signed; micalg="pgp-sha512";
	protocol="application/pgp-signature"; boundary="=-4gLdfStOQhYylNd+ec9z"
X-Mailer: Evolution 3.4.3-1 
Mime-Version: 1.0
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 70.91.141.202
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Oct 2012 06:44:24 -0000


--=-4gLdfStOQhYylNd+ec9z
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Tue, 2012-10-09 at 07:14 +0200, Ralf Corsepius wrote:

> I don't like this approach, because I think you are missing that=20
> config.sub and config.guess have only been overwritten as part of=20
> "autoreconf -f" (and not of "autoreconf"). This allows package upstreams=
=20
> to implement customized versions of both of these scripts.

I hadn't considered custom versions, but that sounds icky. I figure in
these cases they can bump their timestamp to 9999-99-99 if they want to
never use the official versions of these files, I can't think of a case
where they would want that though. The use-cases you mention below, they
probably just want the latest versions from config.git rather than to
always use their own.

> Though such cases are rare to find in mainstream packages, theses case=
=20
> are quite common in cases to toolchain/OS implementors and=20
> cross-compilation scenarios.

I think people needing these particular use-cases can use my proposed
mechanism instead, which should work better for them anyway since they
don't need to modify every package being built nor modify their build
system.

> FWIW: Apart of this, in comparable situations in the past, on Red Hat=20
> based distros, IIRC, RedHat had chosen to copy their versions of=20
> config.guess+config.sub as part of their build-process [1] by
> default[2]. This would be comparable to the dh_<something> others=20
> mentioned before in this thread.

Could you give some more details? Were the RH versions of config.guess
and config.sub modified in any way or were they just newer versions from
GNU config CVS/git?

PS: Please CC me in reply.

--=20
bye,
pabs

http://bonedaddy.net/pabs3/

--=-4gLdfStOQhYylNd+ec9z
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAABCgAGBQJQc8e+AAoJEDEWul6f+mmjL58P/ieAeM6b5heDFMsHbP88Hvq3
Qo12ewOhlH2xlIzknc2bZYyZN/wTw2zatnJcEvJc+MsKmQKoRhrpN8iBsMgYlLCl
NH4d4fRXjc9bFspep0ng9rRcuv+Ght+cdORp+PZk7rKH7AH2FdJyu82lqbveFwTz
Y0KT+Iv4+6Onzl+o1mKPK9B1H81/z5o53LSMLcuRD0yC38Ms9lbUQfigpCAbNj1I
wFZqUU7YEoq4kJwJnTC98LKBvWDg3x4ufL+Svp9vIVCoepblwmaNvbU7jaVSnqhn
ks8524RujmY+QhkDaJpDHkwiQTCRKz8MxsZ0sKQI+TDPpn4ZjcVHHGqI2LkDGT33
flYu9eK5bqYagYy3hclcsdvjE1Fc+sU5I5BG1lcV0Kre75OaTbC0flfCOKOLCMNM
zJXzvEc/mb40Ea9gKDvpI8KRQsS1MCxSCzn4RjxAJxPJwaWIBy5lYEM/Feo0q3C2
nOamEUhgKNA/ausa57/PPLfsoRkDb4kO2VLqxSQr2QsJW45tOTAiihtxEe+NgRMl
GAMJg8ink+niUoW9aYJHCwmg+1RHMEiFaVoZD3m9y+PRnBCjRPOtbbXypSsHb+tf
1v/hGi5CpBqRhIzUFIbjMNdWNo0Ihtqzes7bjYUe/+DT2BUcm70EDSyR+nFRjpqE
aEZWvh1Q2MnvIpoFrsqq
=Zc0j
-----END PGP SIGNATURE-----

--=-4gLdfStOQhYylNd+ec9z--



From MAILER-DAEMON Tue Oct 09 05:27:56 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TLW6W-0006oG-Eg
	for mharc-autoconf@gnu.org; Tue, 09 Oct 2012 05:27:56 -0400
Received: from eggs.gnu.org ([208.118.235.92]:45993)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <tsunanet@gmail.com>) id 1TLW6E-0006m9-O3
	for autoconf@gnu.org; Tue, 09 Oct 2012 05:27:55 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <tsunanet@gmail.com>) id 1TLW68-0005PM-MH
	for autoconf@gnu.org; Tue, 09 Oct 2012 05:27:38 -0400
Received: from mail-wi0-f177.google.com ([209.85.212.177]:49971)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <tsunanet@gmail.com>) id 1TLW68-0005P1-F2
	for autoconf@gnu.org; Tue, 09 Oct 2012 05:27:32 -0400
Received: by mail-wi0-f177.google.com with SMTP id hj13so3918594wib.12
	for <autoconf@gnu.org>; Tue, 09 Oct 2012 02:27:31 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:from:date:message-id:subject:to:content-type
	:content-transfer-encoding;
	bh=/Vw/YrqPwujLLY5JgVirXwjl3EpLIuEv59Oa21LgBbQ=;
	b=vEiXaPzYS7bQi0CbzFhsXp+2jIu8mn3C7afkKkM63ZJAGsSd4OO2ESrXlyJRPuCfVU
	nDjgmOwOXFl1pFrM2iMGnhQUjoFXBQlXslm8t4UU8z0TkWN3hSEfoD0dqR8AKHqf7n+w
	0rqZFfc8/ZAd6DwfJGZtCN/zmnr+yDTrC7jfzP/SupJ4OoPa6/zhUqMZt8rISPQu2BID
	zcMgCEz8wxbKAjH/b935WgofgyZ3SrA9dZOrGi1keQId3pGxkSt6gFpHj/u3xh2jg2Ok
	xtcBRwQcbX92PFc81FJU2SC/4dsD6PGrbWeBIOZK6IBBIR9YlIHAK6eKd1Jx16eRJAZs
	YuWA==
Received: by 10.216.195.144 with SMTP id p16mr10912105wen.174.1349774851055;
	Tue, 09 Oct 2012 02:27:31 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.223.79.139 with HTTP; Tue, 9 Oct 2012 02:27:10 -0700 (PDT)
From: tsuna <tsunanet@gmail.com>
Date: Tue, 9 Oct 2012 02:27:10 -0700
Message-ID: <CAFKYj4d1hUQ8z_9jPmqoVK9or9hzSjwXnMFw+qUsPme0pQjMPg@mail.gmail.com>
Subject: Wholesale sharing of config.cache across many packages
To: autoconf@gnu.org
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.212.177
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Oct 2012 09:27:55 -0000

Hi all,
in my current continuous integration environment we run configure
scripts on the order of 10^5+ times a day.  Each build starts in a
clean workspace that is almost akin to a fresh Linux install.  We
don't ship a config.site, and we build many packages in parallel.  I
tried to use the "same" --cache-file to speed things up.

I wrap my ./configure invocations with a small dance that can be
summarized like this:
  if test -f /tmp/config.cache; then  # We already have something
    TMP_CACHE=3D`mktemp`
    cp /tmp/config.cache $TMP_CACHE
  fi
  if ./configure --cache-file=3D$TMP_CACHE [..other flags..]; then  # Succe=
ss
    mv $TMP_CACHE /tmp/config.cache
  fi
  rm -f $TMP_CACHE

This way each run of configure operates on its own file to avoid race
conditions, but benefits from the cache variables populated by
previous runs.  Of course in practice the dance above is also written
in a way to be atomic, the code above is a simplification.

This works fine except for one thing: if one package decides to invoke
configure with different CFLAGS/CXXFLAGS (or any other precious
variable for that matter), I get the annoying:

configure: loading cache /tmp/configure.cache.ea93QN
configure: error: `CFLAGS' has changed since the previous run:
configure:   former value:  `-g'
configure:   current value: `-g -Wall -Werror'

In http://lists.gnu.org/archive/html/autoconf/2011-03/msg00042.html
someone asked whether there is a programatic way to do something when
this situation arises =96 without duplicating all the code in configure
to catch this case, obviously.  I'm not aware of any, but I'm looking
for a workaround.  Other than parsing's configure output when it
errors out and iterating again after patching the config.cache file,
which would be a very ugly kludge.

Any suggestions?  Thanks in advance.

--=20
Benoit "tsuna" Sigoure


From MAILER-DAEMON Tue Oct 09 08:05:42 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TLYZC-0000mc-Ff
	for mharc-autoconf@gnu.org; Tue, 09 Oct 2012 08:05:42 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57333)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1TLYZ4-0000ku-UL
	for autoconf@gnu.org; Tue, 09 Oct 2012 08:05:39 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1TLYYv-0004ks-V5
	for autoconf@gnu.org; Tue, 09 Oct 2012 08:05:34 -0400
Received: from mx1.redhat.com ([209.132.183.28]:14537)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1TLYYv-0004ji-Lv
	for autoconf@gnu.org; Tue, 09 Oct 2012 08:05:25 -0400
Received: from int-mx09.intmail.prod.int.phx2.redhat.com
	(int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22])
	by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q99C5KDc020949
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Tue, 9 Oct 2012 08:05:20 -0400
Received: from [10.3.113.3] ([10.3.113.3])
	by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP
	id q99C5JEG025414; Tue, 9 Oct 2012 08:05:19 -0400
Message-ID: <507412FE.6020403@redhat.com>
Date: Tue, 09 Oct 2012 06:05:18 -0600
From: Eric Blake <eblake@redhat.com>
Organization: Red Hat
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:15.0) Gecko/20120911 Thunderbird/15.0.1
MIME-Version: 1.0
To: Paul Wise <pabs3@bonedaddy.net>
Subject: Re: [RFC] pass #2 at getting rid of the config.guess/sub problem
	when bootstrapping new ports/systems
References: <1349696427.11713.95.camel@chianamo>
	<1349753258.11713.149.camel@chianamo> <5073A1FD.5080107@redhat.com>
	<1349758164.11713.159.camel@chianamo>
In-Reply-To: <1349758164.11713.159.camel@chianamo>
X-Enigmail-Version: 1.4.4
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature";
	boundary="------------enig1DEADA80E7F689CB4332B9F6"
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.132.183.28
Cc: autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Oct 2012 12:05:39 -0000

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig1DEADA80E7F689CB4332B9F6
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 10/08/2012 10:49 PM, Paul Wise wrote:
> On Mon, 2012-10-08 at 22:03 -0600, Eric Blake wrote:
>=20
>> I still prefer the idea of being able to set an environment variable,
>> $CONFIG_GUESS, rather than going hunting ourselves.  Then, porting to =
a
>> new config.guess script is a matter of calling:
>>
>> ./configure CONFIG_GUESS=3D/path/to/new/version
>>
>> rather than hoping that a hard-coded hunt will find the new config.gue=
ss
>> appropriate for the system wanting the upgrade path.
>=20
> Changing the command-line to ./configure doesn't scale. Exporting an
> environment variable possibly sounds like an approach some folks would
> need,

Then call:

CONFIG_GUESS=3D/path/to/new/version ./configure

and make CONFIG_GUESS a precious variable within configure.

> so I have added it in the attached patch. For Debian it would be
> easiest to just install the autotools-dev package in build chroots
> (config.guess and config.sub are placed in /usr/share/misc) since it
> doesn't require fiddling about with configuration files for build daemo=
n
> software, which usually doesn't leak random environment variables into
> the build process.

I still stand by my opinion that an env-var is sufficient, and we do not
need a path walk.

--=20
Eric Blake   eblake@redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


--------------enig1DEADA80E7F689CB4332B9F6
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iQEcBAEBCAAGBQJQdBL+AAoJEKeha0olJ0Nq07IH/0ovIHBJgdRqN0gQOqxhDnas
yH02UkqOFGwaftmicjI+QRhktm1LTVxWQtmcGh1iK1E7+HDMhtSo6zsJ/jtTlvpZ
uK3a9UjFfYaWucRKfPdRna31nPhcSSu6F0/zR16Nr1trY05RkF1oAA3KbJNRqS3c
MfLvKiHBJ+FbU/1H2ijQ36OGSASybUovhnwHKQX5n+vqkrRxxVgT4Wum9v6PKEKG
EJA9kaaw3yrTl7XKJcXYk9Octnl54QOc0LpQRNuMwv8wygzEiVcWd7l1esVD1FKM
ELQS6mVEtfDXrKId0TUSuSZY8rERG9ikMykHDEYYPRWOpVFgZB0Wi6zYWSSJEWA=
=eVUW
-----END PGP SIGNATURE-----

--------------enig1DEADA80E7F689CB4332B9F6--


From MAILER-DAEMON Tue Oct 09 10:25:12 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TLakC-0007co-0V
	for mharc-autoconf@gnu.org; Tue, 09 Oct 2012 10:25:12 -0400
Received: from eggs.gnu.org ([208.118.235.92]:45314)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TLak5-0007K6-FQ
	for autoconf@gnu.org; Tue, 09 Oct 2012 10:25:10 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TLajy-0005vG-PQ
	for autoconf@gnu.org; Tue, 09 Oct 2012 10:25:05 -0400
Received: from filtteri5.pp.htv.fi ([213.243.153.188]:58166)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TLajy-0005ke-IE
	for autoconf@gnu.org; Tue, 09 Oct 2012 10:24:58 -0400
Received: from localhost (localhost [127.0.0.1])
	by filtteri5.pp.htv.fi (Postfix) with ESMTP id 98AA65A6651;
	Tue,  9 Oct 2012 17:24:34 +0300 (EEST)
X-Virus-Scanned: Debian amavisd-new at pp.htv.fi
Received: from smtp5.welho.com ([213.243.153.39])
	by localhost (filtteri5.pp.htv.fi [213.243.153.188]) (amavisd-new,
	port 10024)
	with ESMTP id R+Rl7UUgLlKD; Tue,  9 Oct 2012 17:24:32 +0300 (EEST)
Received: from bunk.dyndns.info (cs185055.pp.htv.fi [213.243.185.55])
	by smtp5.welho.com (Postfix) with ESMTP id 2FFD85BC002;
	Tue,  9 Oct 2012 17:24:32 +0300 (EEST)
Date: Tue, 9 Oct 2012 17:24:28 +0300
From: Adrian Bunk <bunk@stusta.de>
To: Paul Wise <pabs3@bonedaddy.net>
Subject: Re: [RFC] getting rid of the config.guess/sub problem when
	bootstrapping new ports/systems
Message-ID: <20121009142428.GC26108@bunk.dyndns.info>
References: <1349696427.11713.95.camel@chianamo> <5072FDA9.90208@redhat.com>
	<1349719476.11713.106.camel@chianamo>
	<87k3v0lq9b.fsf@windlord.stanford.edu>
	<1349746066.11713.124.camel@chianamo>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <1349746066.11713.124.camel@chianamo>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 213.243.153.188
Cc: autoconf <autoconf@gnu.org>
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Oct 2012 14:25:10 -0000

On Tue, Oct 09, 2012 at 09:27:46AM +0800, Paul Wise wrote:
> On Mon, 2012-10-08 at 12:26 -0700, Russ Allbery wrote:
> 
> > Personally, I've already started converting every package I maintain that
> > uses Autoconf to using dh_autoreconf during the build.
> 
> Likewise.
> 
> > I wonder if that isn't a better long-term solution for Debian.
> 
> It is, but for DFSG item 2 reasons rather than this. As a solution for
> this in Debian and outside Debian I don't think it scales as well.
> Within Debian we would need to make everything use debhelper and make
> debhelper do it by default, neither of which are likely. There are quite
> a few distros, including proprietary ones, so I don't think this
> approach scales outside of Debian either.
>...

One problem is that in new upstream versions of autoconf/automake/libtool
there are sometimes slight incompatibilities, and you end up with
shipping many different versions of each of these tools (even today 
Debian already ships 5 different versions of autoconf).

E.g. putting automake 1.13 [1] as automake package into Debian would 
then require updating thousands of packages just for getting the whole 
archive to build again.

> bye,
> pabs

cu
Adrian

[1] That will remove quite a few things marked as obsolete.

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed



From MAILER-DAEMON Tue Oct 09 13:17:59 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TLdRP-0005uo-Jf
	for mharc-autoconf@gnu.org; Tue, 09 Oct 2012 13:17:59 -0400
Received: from eggs.gnu.org ([208.118.235.92]:42661)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rra@stanford.edu>) id 1TLdRI-0005Zg-QS
	for autoconf@gnu.org; Tue, 09 Oct 2012 13:17:57 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rra@stanford.edu>) id 1TLdRC-0003jt-TX
	for autoconf@gnu.org; Tue, 09 Oct 2012 13:17:52 -0400
Received: from smtp2.stanford.edu ([171.67.219.82]:42427
	helo=smtp.stanford.edu) by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rra@stanford.edu>) id 1TLdRC-0003jW-KO
	for autoconf@gnu.org; Tue, 09 Oct 2012 13:17:46 -0400
Received: from smtp.stanford.edu (localhost.localdomain [127.0.0.1])
	by localhost (Postfix) with SMTP id 5F3EB643FAE
	for <autoconf@gnu.org>; Tue,  9 Oct 2012 10:17:45 -0700 (PDT)
Received: from windlord.stanford.edu (windlord.Stanford.EDU [171.67.225.134])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.stanford.edu (Postfix) with ESMTPS id 42784643F2C
	for <autoconf@gnu.org>; Tue,  9 Oct 2012 10:17:45 -0700 (PDT)
Received: by windlord.stanford.edu (Postfix, from userid 1000)
	id 2742F2F4F3; Tue,  9 Oct 2012 10:17:44 -0700 (PDT)
From: Russ Allbery <rra@stanford.edu>
To: autoconf <autoconf@gnu.org>
Subject: Re: [RFC] getting rid of the config.guess/sub problem when
	bootstrapping new ports/systems
In-Reply-To: <20121009142428.GC26108@bunk.dyndns.info> (Adrian Bunk's message
	of "Tue, 9 Oct 2012 17:24:28 +0300")
Organization: The Eyrie
References: <1349696427.11713.95.camel@chianamo> <5072FDA9.90208@redhat.com>
	<1349719476.11713.106.camel@chianamo>
	<87k3v0lq9b.fsf@windlord.stanford.edu>
	<1349746066.11713.124.camel@chianamo>
	<20121009142428.GC26108@bunk.dyndns.info>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)
Date: Tue, 09 Oct 2012 10:17:44 -0700
Message-ID: <87fw5nh8ef.fsf@windlord.stanford.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 171.67.219.82
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Oct 2012 17:17:58 -0000

Adrian Bunk <bunk@stusta.de> writes:

> One problem is that in new upstream versions of
> autoconf/automake/libtool there are sometimes slight incompatibilities,
> and you end up with shipping many different versions of each of these
> tools (even today Debian already ships 5 different versions of
> autoconf).

> E.g. putting automake 1.13 [1] as automake package into Debian would 
> then require updating thousands of packages just for getting the whole 
> archive to build again.

This is a lot of work, yes.  But personally I think it's valuable work
that we shouldn't shy away from, and with which we can often help
upstream.  We do the same thing each time a new g++ is released; I don't
think there's been a major g++ release that hasn't required some patches
to one of the C++ packages I maintain.

(autoconf-dickey is a separate matter; at this point, I think it's best to
treat that as a permanent fork.)

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>


From MAILER-DAEMON Tue Oct 09 17:05:21 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TLgzR-00013f-5m
	for mharc-autoconf@gnu.org; Tue, 09 Oct 2012 17:05:21 -0400
Received: from eggs.gnu.org ([208.118.235.92]:53192)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TLgzO-00010M-4h
	for autoconf@gnu.org; Tue, 09 Oct 2012 17:05:19 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TLgzI-00088N-R5
	for autoconf@gnu.org; Tue, 09 Oct 2012 17:05:14 -0400
Received: from filtteri6.pp.htv.fi ([213.243.153.189]:47052)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TLgzI-00086d-Jb
	for autoconf@gnu.org; Tue, 09 Oct 2012 17:05:12 -0400
Received: from localhost (localhost [127.0.0.1])
	by filtteri6.pp.htv.fi (Postfix) with ESMTP id 5F9B756E5E5;
	Wed, 10 Oct 2012 00:05:10 +0300 (EEST)
X-Virus-Scanned: Debian amavisd-new at pp.htv.fi
Received: from smtp5.welho.com ([213.243.153.39])
	by localhost (filtteri6.pp.htv.fi [213.243.153.189]) (amavisd-new,
	port 10024)
	with ESMTP id Yn7ek+vQ+48q; Wed, 10 Oct 2012 00:05:10 +0300 (EEST)
Received: from bunk.dyndns.info (cs185055.pp.htv.fi [213.243.185.55])
	by smtp5.welho.com (Postfix) with ESMTP id 048C35BC002;
	Wed, 10 Oct 2012 00:05:10 +0300 (EEST)
Date: Wed, 10 Oct 2012 00:05:05 +0300
From: Adrian Bunk <bunk@stusta.de>
To: Russ Allbery <rra@stanford.edu>
Subject: Re: [RFC] getting rid of the config.guess/sub problem when
	bootstrapping new ports/systems
Message-ID: <20121009210505.GA22692@bunk.dyndns.info>
References: <1349696427.11713.95.camel@chianamo> <5072FDA9.90208@redhat.com>
	<1349719476.11713.106.camel@chianamo>
	<87k3v0lq9b.fsf@windlord.stanford.edu>
	<1349746066.11713.124.camel@chianamo>
	<20121009142428.GC26108@bunk.dyndns.info>
	<87fw5nh8ef.fsf@windlord.stanford.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <87fw5nh8ef.fsf@windlord.stanford.edu>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 213.243.153.189
Cc: autoconf <autoconf@gnu.org>
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Oct 2012 21:05:19 -0000

On Tue, Oct 09, 2012 at 10:17:44AM -0700, Russ Allbery wrote:
> Adrian Bunk <bunk@stusta.de> writes:
> 
> > One problem is that in new upstream versions of
> > autoconf/automake/libtool there are sometimes slight incompatibilities,
> > and you end up with shipping many different versions of each of these
> > tools (even today Debian already ships 5 different versions of
> > autoconf).
> 
> > E.g. putting automake 1.13 [1] as automake package into Debian would 
> > then require updating thousands of packages just for getting the whole 
> > archive to build again.
> 
> This is a lot of work, yes.  But personally I think it's valuable work
> that we shouldn't shy away from, and with which we can often help
> upstream.
>...

Debian unstable usually contains code from the upstream stable branch, 
and even from that the latest release is often a few months old (no new 
upstream release or the latest is not yet in Debian).

The issue might often already be fixed in the latest upstream unstable 
development, and it could easily result in most of the work being 
cherry-picking patches that are already upstream.

>...
> (autoconf-dickey is a separate matter; at this point, I think it's best to
> treat that as a permanent fork.)

(I'm currently working with Thomas towards getting more of his packages
 buildable with autoconf 2.69)

cu
Adrian

BTW: Please send a copy of the mail to me when you reply to emails from me.

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed



From MAILER-DAEMON Wed Oct 10 01:54:05 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TLpF7-0006F0-RX
	for mharc-autoconf@gnu.org; Wed, 10 Oct 2012 01:54:05 -0400
Received: from eggs.gnu.org ([208.118.235.92]:47588)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <prvs=62387801e=sujit.devkar@tcsin.com>)
	id 1TLpF0-0006EW-Um
	for autoconf@gnu.org; Wed, 10 Oct 2012 01:54:04 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <prvs=62387801e=sujit.devkar@tcsin.com>)
	id 1TLpEs-0007m9-Mv
	for autoconf@gnu.org; Wed, 10 Oct 2012 01:53:58 -0400
Received: from inmumg02.tcs.com ([219.64.33.222]:48405)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <prvs=62387801e=sujit.devkar@tcsin.com>)
	id 1TLpEs-0007lF-D1
	for autoconf@gnu.org; Wed, 10 Oct 2012 01:53:50 -0400
From: Sujit Devkar <sujit.devkar@tcs.com>
X-IronPort-AV: E=Sophos;i="4.80,563,1344191400"; d="scan'208";a="93661494"
Received: from cdctdlpprotect4 (unknown [127.0.0.1])
	by cdctdlpprotect4.localdomain (Service) with ESMTP id D09691F40F
	for <autoconf@gnu.org>; Wed, 10 Oct 2012 11:16:26 +0530 (IST)
Received: from InMumH01.tcs.com (unknown [172.17.9.35])
	by cdctdlpprotect4.localdomain (Service) with ESMTP id C4D181F402
	for <autoconf@gnu.org>; Wed, 10 Oct 2012 11:16:26 +0530 (IST)
Received: from inmumzh01.tcsin.com ([172.17.242.37])
	by InMumH01.tcs.com (Lotus Domino Release 8.5.2FP4HF189)
	with ESMTP id 2012101011234899-350004 ;
	Wed, 10 Oct 2012 11:23:48 +0530 
Received: from localhost (localhost.localdomain [127.0.0.1])
	by inmumzh01.tcsin.com (Postfix) with ESMTP id F1EEDD8001
	for <autoconf@gnu.org>; Wed, 10 Oct 2012 11:23:48 +0530 (IST)
X-Virus-Scanned: amavisd-new at tcsin.com
Received: from inmumzh01.tcsin.com ([127.0.0.1])
	by localhost (inmumzh01.tcsin.com [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 62cM8jOMpc61 for <autoconf@gnu.org>;
	Wed, 10 Oct 2012 11:23:48 +0530 (IST)
Received: from [127.0.0.1] (unknown [172.17.64.92])
	by inmumzh01.tcsin.com (Postfix) with ESMTPSA id C36FED8013
	for <autoconf@gnu.org>; Wed, 10 Oct 2012 11:23:48 +0530 (IST)
Message-ID: <50750D6F.8070802@tcsin.com>
Date: Wed, 10 Oct 2012 11:23:51 +0530
User-Agent: Mozilla/5.0 (Windows NT 5.1;
	rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
To: autoconf@gnu.org
Subject: [Autoconf] Including and extracting jar files in Makefile.am
References: <50750D3A.8070608@tcsin.com>
In-Reply-To: <50750D3A.8070608@tcsin.com>
X-Forwarded-Message-Id: <50750D3A.8070608@tcsin.com>
X-MIMETrack: Itemize by SMTP Server on InMumH01/TCS(Release 8.5.2FP4HF189 |
	September 13, 2012) at 10/10/2012 11:23:48,
	Serialize by Router on InMumH01/TCS(Release 8.5.2FP4HF189 | September
	13, 2012) at 10/10/2012 11:23:49,
	Serialize complete at 10/10/2012 11:23:49
X-TNEFEvaluated: 1
Content-Type: text/plain; charset="iso-8859-1"; format="flowed"
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 219.64.33.222
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 10 Oct 2012 05:54:05 -0000

Dear Sir/Madam,

I am trying to install jar files in Makefile.am.
My project needs to be extracted before make.
How can I include jar files and extract them before running make
in my project?

-- =

Regards
Sujit Kisan Devkar


=3D=3D=3D=3D=3D-----=3D=3D=3D=3D=3D-----=3D=3D=3D=3D=3D
Notice: The information contained in this e-mail
message and/or attachments to it may contain =

confidential or privileged information. If you are =

not the intended recipient, any dissemination, use, =

review, distribution, printing or copying of the =

information contained in this e-mail message =

and/or attachments to it are strictly prohibited. If =

you have received this communication in error, =

please notify us by reply e-mail or telephone and =

immediately and permanently delete the message =

and any attachments. Thank you





From MAILER-DAEMON Wed Oct 10 12:51:53 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TLzVg-0001CN-W2
	for mharc-autoconf@gnu.org; Wed, 10 Oct 2012 12:51:52 -0400
Received: from eggs.gnu.org ([208.118.235.92]:47234)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1TLzVd-0001AR-GD
	for autoconf@gnu.org; Wed, 10 Oct 2012 12:51:50 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1TLzVX-0000iF-GC
	for autoconf@gnu.org; Wed, 10 Oct 2012 12:51:49 -0400
Received: from mx1.redhat.com ([209.132.183.28]:64854)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1TLzVX-0000i9-80
	for autoconf@gnu.org; Wed, 10 Oct 2012 12:51:43 -0400
Received: from int-mx02.intmail.prod.int.phx2.redhat.com
	(int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12])
	by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q9AGpfoi014135
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Wed, 10 Oct 2012 12:51:41 -0400
Received: from [10.3.113.23] (ovpn-113-23.phx2.redhat.com [10.3.113.23])
	by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
	id q9AGpfQv025813; Wed, 10 Oct 2012 12:51:41 -0400
Message-ID: <5075A797.7020501@redhat.com>
Date: Wed, 10 Oct 2012 10:51:35 -0600
From: Eric Blake <eblake@redhat.com>
Organization: Red Hat
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:15.0) Gecko/20120911 Thunderbird/15.0.1
MIME-Version: 1.0
To: Sujit Devkar <sujit.devkar@tcs.com>
Subject: Re: [Autoconf] Including and extracting jar files in Makefile.am
References: <50750D3A.8070608@tcsin.com> <50750D6F.8070802@tcsin.com>
In-Reply-To: <50750D6F.8070802@tcsin.com>
X-Enigmail-Version: 1.4.4
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature";
	boundary="------------enigEE522CF7E31C931F258BDCA1"
X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.132.183.28
Cc: autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 10 Oct 2012 16:51:50 -0000

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigEE522CF7E31C931F258BDCA1
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 10/09/2012 11:53 PM, Sujit Devkar wrote:
> Dear Sir/Madam,
>=20
> I am trying to install jar files in Makefile.am.

Then perhaps this is a question better asked on the automake lists.

> My project needs to be extracted before make.

Why?  Can't you write make rules to do the extraction, or are you trying
to extract makefiles?

> How can I include jar files and extract them before running make
> in my project?

Are you trying to extract files at the same point where Makefile is
created from Makefile.in during the run of 'config.status'?  If so, then
it sounds like you are talking about functionality given by
AC_CONFIG_COMMANDS in your configure.ac.

--=20
Eric Blake   eblake@redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


--------------enigEE522CF7E31C931F258BDCA1
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iQEcBAEBCAAGBQJQdaeXAAoJEKeha0olJ0Nqj7cH/RZxzSb3oB2r3suAV9Sgk/6I
6Jt4oy5qCkfMJcKntGH8SfE6dl4o88QJElTUtTPkN8QqTanMNShoF1NB/fsBpgqM
oG9EhalS40Zn1PwqDOOgRkaGp3XsvSIebMdGhxzLSCo8+1wqmjtCpls4YywYNMn7
Ggedfucyp5dia+eHUoBhQ4fUQ9h+CHSjhpciG1PwcFfNtbh3xHpALFxfgQF7fTjZ
+Xma3WvgzEuZiahLFzh/YPWOX8IfMhHjgouQqRNsAa7Qw4O5D7UVj4+DuY3sYELn
gOoBkiDAuZP3Ck1Drh1efFqErcz3ZjWYa9+YFaRv6wFrshCVDpN6EMtEg/OdUug=
=4/jn
-----END PGP SIGNATURE-----

--------------enigEE522CF7E31C931F258BDCA1--


From MAILER-DAEMON Wed Oct 10 23:35:17 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TM9YL-0001Kr-3G
	for mharc-autoconf@gnu.org; Wed, 10 Oct 2012 23:35:17 -0400
Received: from eggs.gnu.org ([208.118.235.92]:42216)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <tsunanet@gmail.com>) id 1TM9YI-0001KG-RD
	for autoconf@gnu.org; Wed, 10 Oct 2012 23:35:15 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <tsunanet@gmail.com>) id 1TM9YH-0002t6-T2
	for autoconf@gnu.org; Wed, 10 Oct 2012 23:35:14 -0400
Received: from mail-we0-f169.google.com ([74.125.82.169]:45027)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <tsunanet@gmail.com>) id 1TM9YH-0002rA-MW
	for autoconf@gnu.org; Wed, 10 Oct 2012 23:35:13 -0400
Received: by mail-we0-f169.google.com with SMTP id u3so837782wey.0
	for <autoconf@gnu.org>; Wed, 10 Oct 2012 20:35:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:content-type; bh=MQ9q245UMpcJ2N+QLhWoTZEQ4TQkpe9lvwdB+RhRrVc=;
	b=JanUWWwPg7mxZ98k4J0KO6MSDOnWdCucjoKxNjHm8BBl+fuPGY2/VearPzd3FBn2+p
	QMEExn/mevfBedRUmD5KTOS35LORyHGvhHBN9Gpnm53C9MfzPhrNFmQcg+bcD7Wl8GYv
	gx3lpnUPxHMzvQCCCcckuhyrz5Z1EljMax1EmLdfmIhqhnIKvEPcRBKt/7UmstAGezam
	yY5FQMYjjj1LxvPaZGb834AkWCXLJ+oa3EYaMp1l7h5tQxPtB3eq9/TddIGvS7/gu8SL
	xiyCFjaOOZpnnWptnX9HdMcjqcLXLYAde/4+tV3Z9oamup55r2O6fyGzciY3iUAoZxpw
	hejA==
Received: by 10.180.99.133 with SMTP id eq5mr17346547wib.21.1349926512371;
	Wed, 10 Oct 2012 20:35:12 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.223.157.73 with HTTP; Wed, 10 Oct 2012 20:34:52 -0700 (PDT)
In-Reply-To: <CAFKYj4d1hUQ8z_9jPmqoVK9or9hzSjwXnMFw+qUsPme0pQjMPg@mail.gmail.com>
References: <CAFKYj4d1hUQ8z_9jPmqoVK9or9hzSjwXnMFw+qUsPme0pQjMPg@mail.gmail.com>
From: tsuna <tsunanet@gmail.com>
Date: Wed, 10 Oct 2012 20:34:52 -0700
Message-ID: <CAFKYj4eG5VYPfqvzOi_hT=hJCD4Syorr8cA+iNi-3+E=qimTjw@mail.gmail.com>
Subject: Re: Wholesale sharing of config.cache across many packages
To: autoconf@gnu.org
Content-Type: text/plain; charset=ISO-8859-1
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 74.125.82.169
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 11 Oct 2012 03:35:15 -0000

On Tue, Oct 9, 2012 at 2:27 AM, tsuna <tsunanet@gmail.com> wrote:
> Any suggestions?  Thanks in advance.

How about this hack?  Prior to running configure, I do:
   sed -i '/^ac_cv_env_[A-Z]*_/d' $TMP_CACHE

-- 
Benoit "tsuna" Sigoure


From MAILER-DAEMON Thu Oct 11 00:30:11 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TMAPT-0003Rg-LG
	for mharc-autoconf@gnu.org; Thu, 11 Oct 2012 00:30:11 -0400
Received: from eggs.gnu.org ([208.118.235.92]:40539)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <prvs=624f10332=sujit.devkar@tcsin.com>)
	id 1TMAPR-0003Q5-0Q
	for autoconf@gnu.org; Thu, 11 Oct 2012 00:30:10 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <prvs=624f10332=sujit.devkar@tcsin.com>)
	id 1TMAPO-0002ea-Bm
	for autoconf@gnu.org; Thu, 11 Oct 2012 00:30:08 -0400
Received: from inmumg02.tcs.com ([219.64.33.222]:36433)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <prvs=624f10332=sujit.devkar@tcsin.com>)
	id 1TMAPO-0002Vi-1U
	for autoconf@gnu.org; Thu, 11 Oct 2012 00:30:06 -0400
From: Sujit Devkar <sujit.devkar@tcs.com>
X-IronPort-AV: E=Sophos;i="4.80,569,1344191400"; d="scan'208";a="93839160"
Received: from cdctdlpprotect4 (unknown [127.0.0.1])
	by cdctdlpprotect4.localdomain (Service) with ESMTP id 4B70B1F40F;
	Thu, 11 Oct 2012 09:21:31 +0530 (IST)
Received: from InMumH01.tcs.com (unknown [172.17.10.179])
	by cdctdlpprotect4.localdomain (Service) with ESMTP id 401BB1F402;
	Thu, 11 Oct 2012 09:21:31 +0530 (IST)
Received: from inmumzh01.tcsin.com ([172.17.242.37])
	by InMumH01.tcs.com (Lotus Domino Release 8.5.2FP4HF189)
	with ESMTP id 2012101109285803-615513 ;
	Thu, 11 Oct 2012 09:28:58 +0530 
Received: from localhost (localhost.localdomain [127.0.0.1])
	by inmumzh01.tcsin.com (Postfix) with ESMTP id F17DAD8114;
	Thu, 11 Oct 2012 09:28:57 +0530 (IST)
X-Virus-Scanned: amavisd-new at tcsin.com
Received: from inmumzh01.tcsin.com ([127.0.0.1])
	by localhost (inmumzh01.tcsin.com [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id fwh6bNd5WrXB; Thu, 11 Oct 2012 09:28:57 +0530 (IST)
Received: from [127.0.0.1] (unknown [172.17.64.92])
	by inmumzh01.tcsin.com (Postfix) with ESMTPSA id AAC98D8105;
	Thu, 11 Oct 2012 09:28:57 +0530 (IST)
Message-ID: <507643FD.2090306@tcsin.com>
Date: Thu, 11 Oct 2012 09:28:53 +0530
User-Agent: Mozilla/5.0 (Windows NT 5.1;
	rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
To: Eric Blake <eblake@redhat.com>
Subject: Re: [Autoconf] Including and extracting jar files in Makefile.am
References: <50750D3A.8070608@tcsin.com> <50750D6F.8070802@tcsin.com>
	<5075A797.7020501@redhat.com>
In-Reply-To: <5075A797.7020501@redhat.com>
X-MIMETrack: Itemize by SMTP Server on InMumH01/TCS(Release 8.5.2FP4HF189 |
	September 13, 2012) at 10/11/2012 09:28:58,
	Serialize by Router on InMumH01/TCS(Release 8.5.2FP4HF189 | September
	13, 2012) at 10/11/2012 09:28:58,
	Serialize complete at 10/11/2012 09:28:58
X-TNEFEvaluated: 1
Content-Type: text/plain; charset="iso-8859-1"; format="flowed"
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 219.64.33.222
Cc: Sujit Devkar <sujit.devkar@tcs.com>, autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 11 Oct 2012 04:30:10 -0000

On 10/10/2012 10:21 PM, Eric Blake wrote:
> On 10/09/2012 11:53 PM, Sujit Devkar wrote:
>> Dear Sir/Madam,
>>
>> I am trying to install jar files in Makefile.am.
> Then perhaps this is a question better asked on the automake lists.
>
>> My project needs to be extracted before make.
> Why?  Can't you write make rules to do the extraction, or are you trying
> to extract makefiles?
>
>> How can I include jar files and extract them before running make
>> in my project?
> Are you trying to extract files at the same point where Makefile is
> created from Makefile.in during the run of 'config.status'?  If so, then
> it sounds like you are talking about functionality given by
> AC_CONFIG_COMMANDS in your configure.ac.
>
I mean to say, I use joda-time-1.4.jar file in my project. I want to =

include this file when I create
tar.gz. Also It should get extracted when I run ./configure. If .jar is =

not extracted I run make, I get errors as
included path in java class not found. So, my requirement is
I need to extract this file while configuring. How can I do this?
My project is in c++, but I use some java classes to get data from db.
I need their executable, how can I include them in my project if I want =

their executable?
Thanks

-- =

Regards
Sujit Kisan Devkar

=3D=3D=3D=3D=3D-----=3D=3D=3D=3D=3D-----=3D=3D=3D=3D=3D
Notice: The information contained in this e-mail
message and/or attachments to it may contain =

confidential or privileged information. If you are =

not the intended recipient, any dissemination, use, =

review, distribution, printing or copying of the =

information contained in this e-mail message =

and/or attachments to it are strictly prohibited. If =

you have received this communication in error, =

please notify us by reply e-mail or telephone and =

immediately and permanently delete the message =

and any attachments. Thank you





From MAILER-DAEMON Fri Oct 12 19:46:18 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TMovq-0007wM-BA
	for mharc-autoconf@gnu.org; Fri, 12 Oct 2012 19:46:18 -0400
Received: from eggs.gnu.org ([208.118.235.92]:45837)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rleigh@codelibre.net>) id 1TMovn-0007wG-MZ
	for autoconf@gnu.org; Fri, 12 Oct 2012 19:46:16 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rleigh@codelibre.net>) id 1TMovm-0006KA-5V
	for autoconf@gnu.org; Fri, 12 Oct 2012 19:46:15 -0400
Received: from nagini.codelibre.net ([80.68.93.164]:39975)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rleigh@codelibre.net>) id 1TMovl-0006Jk-Uz
	for autoconf@gnu.org; Fri, 12 Oct 2012 19:46:14 -0400
Received: by nagini.codelibre.net (Postfix, from userid 1000)
	id B7375182E3; Sat, 13 Oct 2012 00:46:11 +0100 (BST)
Date: Sat, 13 Oct 2012 00:46:11 +0100
From: Roger Leigh <rleigh@codelibre.net>
To: autoconf@gnu.org
Subject: Re: [RFC] pass #2 at getting rid of the config.guess/sub problem
	when bootstrapping new ports/systems
Message-ID: <20121012234611.GK18133@codelibre.net>
References: <1349696427.11713.95.camel@chianamo>
	<1349753258.11713.149.camel@chianamo> <5073A1FD.5080107@redhat.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <5073A1FD.5080107@redhat.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1)
X-Received-From: 80.68.93.164
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 12 Oct 2012 23:46:16 -0000

On Mon, Oct 08, 2012 at 10:03:09PM -0600, Eric Blake wrote:
> On 10/08/2012 09:27 PM, Paul Wise wrote:
> > On Mon, 2012-10-08 at 20:46 +0800, Paul Wise wrote:
> > 
> >> So, Debian is in the process of bringing up our upcoming arm64 port.
> >> Unfortunately we are also coming across lots of packages with rather
> >> outdated config.guess and config.sub files (see links below).
> > 
> > I've taken on board advice received during this thread and elsewhere and
> > updated the patch to always use the latest config.guess and config.sub
> > files. I've also tested the result on one of the things I'm upstream for
> > and it works to my satisfaction. The only downside is that there is a
> > code block that occurs twice in each generated configure script, but I'm
> > not sure how to avoid that, any pointers? Please see the attached patch.
> 
> I still prefer the idea of being able to set an environment variable,
> $CONFIG_GUESS, rather than going hunting ourselves.  Then, porting to a
> new config.guess script is a matter of calling:
> 
> ./configure CONFIG_GUESS=/path/to/new/version
> 
> rather than hoping that a hard-coded hunt will find the new config.guess
> appropriate for the system wanting the upgrade path.

This does not solve the problem.  You still then have to update
up to 30K packages to run configure with this new argument.  While
using an env var is fine to override the default behaviour, this is
really somewhere where having it behave sensibly by default without
any special action is required.  Is defaulting to checking in
standard places like $datadir/misc so difficult?  Are there any
significant downsides to doing so?  Long-term, having configure
pick up a current config.guess/sub (and libtool) is something of
enormous benefit, because the current approach of embedding them
causes more problems than it solves.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux    http://people.debian.org/~rleigh/
 `. `'   schroot and sbuild  http://alioth.debian.org/projects/buildd-tools
   `-    GPG Public Key      F33D 281D 470A B443 6756 147C 07B3 C8BC 4083 E800


From MAILER-DAEMON Fri Oct 12 21:24:08 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TMqSW-0000Ny-GZ
	for mharc-autoconf@gnu.org; Fri, 12 Oct 2012 21:24:08 -0400
Received: from eggs.gnu.org ([208.118.235.92]:58861)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1TMqST-0000Mn-UV
	for autoconf@gnu.org; Fri, 12 Oct 2012 21:24:06 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1TMqSS-0005WE-Jd
	for autoconf@gnu.org; Fri, 12 Oct 2012 21:24:05 -0400
Received: from mx1.redhat.com ([209.132.183.28]:13019)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1TMqSS-0005W1-Ar
	for autoconf@gnu.org; Fri, 12 Oct 2012 21:24:04 -0400
Received: from int-mx10.intmail.prod.int.phx2.redhat.com
	(int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23])
	by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q9D1O1So018382
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Fri, 12 Oct 2012 21:24:01 -0400
Received: from [10.3.113.23] (ovpn-113-23.phx2.redhat.com [10.3.113.23])
	by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP
	id q9D1O0jO031526; Fri, 12 Oct 2012 21:24:00 -0400
Message-ID: <5078C2AF.50504@redhat.com>
Date: Fri, 12 Oct 2012 19:23:59 -0600
From: Eric Blake <eblake@redhat.com>
Organization: Red Hat
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:16.0) Gecko/20121009 Thunderbird/16.0
MIME-Version: 1.0
To: Roger Leigh <rleigh@codelibre.net>
Subject: Re: [RFC] pass #2 at getting rid of the config.guess/sub problem
	when bootstrapping new ports/systems
References: <1349696427.11713.95.camel@chianamo>
	<1349753258.11713.149.camel@chianamo> <5073A1FD.5080107@redhat.com>
	<20121012234611.GK18133@codelibre.net>
In-Reply-To: <20121012234611.GK18133@codelibre.net>
X-Enigmail-Version: 1.4.5
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature";
	boundary="------------enig728C0B0A859CC0E2E1422DE5"
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.132.183.28
Cc: autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 13 Oct 2012 01:24:07 -0000

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig728C0B0A859CC0E2E1422DE5
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 10/12/2012 05:46 PM, Roger Leigh wrote:
>> I still prefer the idea of being able to set an environment variable,
>> $CONFIG_GUESS, rather than going hunting ourselves.  Then, porting to =
a
>> new config.guess script is a matter of calling:
>>
>> ./configure CONFIG_GUESS=3D/path/to/new/version
>>
>> rather than hoping that a hard-coded hunt will find the new config.gue=
ss
>> appropriate for the system wanting the upgrade path.
>=20
> This does not solve the problem.  You still then have to update
> up to 30K packages to run configure with this new argument.

No, you don't.  If CONFIG_GUESS is a precious variable, then you can set
it in your environment before running configure on any of those 30k
packages, instead of having to add it to 30k individual command lines.

>  While
> using an env var is fine to override the default behaviour, this is
> really somewhere where having it behave sensibly by default without
> any special action is required.  Is defaulting to checking in
> standard places like $datadir/misc so difficult?

Because it's too hard-coded, compared to the flexibility of an env-var.
 Why does 'make' honor $CC instead of probing a hard-coded list?  For
the same reason.

>  Are there any
> significant downsides to doing so?

Yes, complexity.  Since an env-var already solves the solution, we don't
need the added complexity of also probing for fixed locations.

>  Long-term, having configure
> pick up a current config.guess/sub (and libtool) is something of
> enormous benefit, because the current approach of embedding them
> causes more problems than it solves.

Indeed, and that's why adding support for $CONFIG_GUESS sounds like a
good idea.

--=20
Eric Blake   eblake@redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


--------------enig728C0B0A859CC0E2E1422DE5
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iQEcBAEBCAAGBQJQeMKwAAoJEKeha0olJ0Nql8sH/jCMIRCbWk36i30w/1ZpnXup
O/w/ZoJ82UGYRhMaW+QqhkzA7rCTe54f8VH51OOZF5zyda+lQCHa33hqjRz+Ng/c
iAkOeBs0Iz5gBfz1ggKbvfbDZKamE2eywzZmQhw7hQDkFOaxYV3gVHMHaZ+Y9Mni
so45gZs6hwmlFPCD1c8NYYDx3d8PsUYCCM+tca/v1bVw2Ce93FB/MgS/SpuxcvSH
h83J4ro4PjlGcJpcX3b5usXWGB/6JGLJVyLghyoRh6occunnY11oL65gWDQRY7nW
vTW3yfMZSL7eBfm3kSfxHFtN8zOcK3pFCrRPzNBD/WlUiDVSdkaEMxkraUvxOIo=
=y1gM
-----END PGP SIGNATURE-----

--------------enig728C0B0A859CC0E2E1422DE5--


From MAILER-DAEMON Sat Oct 13 08:12:07 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TN0Zb-000657-OM
	for mharc-autoconf@gnu.org; Sat, 13 Oct 2012 08:12:07 -0400
Received: from eggs.gnu.org ([208.118.235.92]:39773)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TN0ZZ-000650-08
	for autoconf@gnu.org; Sat, 13 Oct 2012 08:12:05 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TN0ZX-00071c-R7
	for autoconf@gnu.org; Sat, 13 Oct 2012 08:12:04 -0400
Received: from filtteri1.pp.htv.fi ([213.243.153.184]:53054)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TN0ZX-00071U-K2
	for autoconf@gnu.org; Sat, 13 Oct 2012 08:12:03 -0400
Received: from localhost (localhost [127.0.0.1])
	by filtteri1.pp.htv.fi (Postfix) with ESMTP id 1CC3521B275;
	Sat, 13 Oct 2012 15:12:01 +0300 (EEST)
X-Virus-Scanned: Debian amavisd-new at pp.htv.fi
Received: from smtp5.welho.com ([213.243.153.39])
	by localhost (filtteri1.pp.htv.fi [213.243.153.184]) (amavisd-new,
	port 10024)
	with ESMTP id 0tSb6ZdSvtSY; Sat, 13 Oct 2012 15:12:00 +0300 (EEST)
Received: from bunk.dyndns.info (cs185055.pp.htv.fi [213.243.185.55])
	by smtp5.welho.com (Postfix) with ESMTP id 8F81E5BC002;
	Sat, 13 Oct 2012 15:12:00 +0300 (EEST)
Date: Sat, 13 Oct 2012 15:11:52 +0300
From: Adrian Bunk <bunk@stusta.de>
To: Roger Leigh <rleigh@codelibre.net>
Subject: Re: [RFC] pass #2 at getting rid of the config.guess/sub problem
	when bootstrapping new ports/systems
Message-ID: <20121013121152.GB916@bunk.dyndns.info>
References: <1349696427.11713.95.camel@chianamo>
	<1349753258.11713.149.camel@chianamo> <5073A1FD.5080107@redhat.com>
	<20121012234611.GK18133@codelibre.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <20121012234611.GK18133@codelibre.net>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 213.243.153.184
Cc: autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 13 Oct 2012 12:12:06 -0000

On Sat, Oct 13, 2012 at 12:46:11AM +0100, Roger Leigh wrote:
> On Mon, Oct 08, 2012 at 10:03:09PM -0600, Eric Blake wrote:
> > On 10/08/2012 09:27 PM, Paul Wise wrote:
> > > On Mon, 2012-10-08 at 20:46 +0800, Paul Wise wrote:
> > > 
> > >> So, Debian is in the process of bringing up our upcoming arm64 port.
> > >> Unfortunately we are also coming across lots of packages with rather
> > >> outdated config.guess and config.sub files (see links below).
> > > 
> > > I've taken on board advice received during this thread and elsewhere and
> > > updated the patch to always use the latest config.guess and config.sub
> > > files. I've also tested the result on one of the things I'm upstream for
> > > and it works to my satisfaction. The only downside is that there is a
> > > code block that occurs twice in each generated configure script, but I'm
> > > not sure how to avoid that, any pointers? Please see the attached patch.
> > 
> > I still prefer the idea of being able to set an environment variable,
> > $CONFIG_GUESS, rather than going hunting ourselves.  Then, porting to a
> > new config.guess script is a matter of calling:
> > 
> > ./configure CONFIG_GUESS=/path/to/new/version
> > 
> > rather than hoping that a hard-coded hunt will find the new config.guess
> > appropriate for the system wanting the upgrade path.
> 
> This does not solve the problem.  You still then have to update
> up to 30K packages to run configure with this new argument.  While
> using an env var is fine to override the default behaviour, this is
> really somewhere where having it behave sensibly by default without
> any special action is required.  Is defaulting to checking in
> standard places like $datadir/misc so difficult?  Are there any
> significant downsides to doing so?  Long-term, having configure
> pick up a current config.guess/sub (and libtool) is something of
> enormous benefit, because the current approach of embedding them
> causes more problems than it solves.

The sensible action is to use the known-working versions that are 
shipped by default.

Picking up newer, or older, or oddly patched, versions of such tools 
that happen to be installed on the system has a high probability of 
causing breakages.

As an example, there were many packages that needed small updates when 
switching from libtool 1.5 to libtool 2.2.

Building packages on a new platform is a special case, and should be 
treated as such without introducing new problems in the default case.

> Regards,
> Roger

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed



From MAILER-DAEMON Sat Oct 13 08:22:02 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TN0jC-0007vN-65
	for mharc-autoconf@gnu.org; Sat, 13 Oct 2012 08:22:02 -0400
Received: from eggs.gnu.org ([208.118.235.92]:39815)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mtw@view.net.au>) id 1TN0j9-0007vH-Qo
	for autoconf@gnu.org; Sat, 13 Oct 2012 08:22:00 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mtw@view.net.au>) id 1TN0j8-00027K-QS
	for autoconf@gnu.org; Sat, 13 Oct 2012 08:21:59 -0400
Received: from calypso.view.net.au ([203.122.243.188]:59689)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mtw@view.net.au>) id 1TN0j8-00027A-Di
	for autoconf@gnu.org; Sat, 13 Oct 2012 08:21:58 -0400
Received: from localhost (localhost [127.0.0.1])
	by calypso.view.net.au (Postfix) with ESMTP id 46F43152A7
	for <autoconf@gnu.org>; Sat, 13 Oct 2012 21:51:54 +0930 (CST)
X-Virus-Scanned: amavisd-new at view.net.au
Received: from calypso.view.net.au ([127.0.0.1])
	by localhost (calypso.view.net.au [127.0.0.1]) (amavisd-new, port 10024)
	with LMTP id UO5ew161c6vy for <autoconf@gnu.org>;
	Sat, 13 Oct 2012 21:51:29 +0930 (CST)
Received: by calypso.view.net.au (Postfix, from userid 1000)
	id 63DBC15371; Sat, 13 Oct 2012 21:51:29 +0930 (CST)
Received: from localhost (localhost [127.0.0.1])
	by calypso.view.net.au (Postfix) with ESMTP id 619ED152A7
	for <autoconf@gnu.org>; Sat, 13 Oct 2012 21:51:29 +0930 (CST)
Date: Sat, 13 Oct 2012 21:51:29 +0930 (CST)
From: Michael Talbot-Wilson <mtw@view.net.au>
To: Autoconf Mailing List <autoconf@gnu.org>
Subject: Running a shell command
Message-ID: <Pine.LNX.4.64.1210132130080.17274@calypso.view.net.au>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 203.122.243.188
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 13 Oct 2012 12:22:00 -0000

I'd like to do something like

AC_PATH_PROG([PGCONFIG],[pg_config]...

followed by employing the path PGCONFIG in a shell command and
assigning the value returned.  If it was found, i.e. if there is a
pg_config on the system.  Within configure.ac ...

PGLIBDIR=$($PGCONFIG --libdir)

or something, then

AC_SUBST([PGLIBDIR])

But that attempt substitutes a blank.  Others like it no better.

I thought it was possible to execute shell commands in configure.ac
but a few hours searching the manual has got me nowhere.

Is such a thing possible?  How?


From MAILER-DAEMON Sat Oct 13 16:35:16 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TN8QW-0006kj-9K
	for mharc-autoconf@gnu.org; Sat, 13 Oct 2012 16:35:16 -0400
Received: from eggs.gnu.org ([208.118.235.92]:42408)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <dwheeler@dwheeler.com>) id 1TN8QU-0006kd-3Y
	for autoconf@gnu.org; Sat, 13 Oct 2012 16:35:14 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <dwheeler@dwheeler.com>) id 1TN8QS-00018a-Rk
	for autoconf@gnu.org; Sat, 13 Oct 2012 16:35:14 -0400
Received: from aibo.runbox.com ([91.220.196.211]:45269)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <dwheeler@dwheeler.com>) id 1TN8QS-00016I-Kn
	for autoconf@gnu.org; Sat, 13 Oct 2012 16:35:12 -0400
Received: from [10.9.9.131] (helo=fenris.runbox.com)
	by bars.runbox.com with esmtp (Exim 4.71)
	(envelope-from <dwheeler@dwheeler.com>) id 1TN8QQ-0001xE-Mz
	for autoconf@gnu.org; Sat, 13 Oct 2012 22:35:10 +0200
Received: from mail by fenris.runbox.com with local  (Exim 4.50)
	id 1TN8QS-0003L3-4B
	for autoconf@gnu.org; Sat, 13 Oct 2012 22:35:12 +0200
Content-Type: text/plain; charset="iso-8859-15"
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Received: from [74.96.54.41] by secure.runbox.com with http (uid:258406)
	(RMM 4.0); for <autoconf@gnu.org>; Sat, 13 Oct 2012 20:35:12 GMT
From: "David A. Wheeler" <dwheeler@dwheeler.com>
To: autoconf@gnu.org
Subject: Re: Running a shell command
Date: Sat, 13 Oct 2012 16:35:12 -0400 (EDT)
X-Mailer: RMM
References: <mailman.15.1350144003.15775.autoconf@gnu.org>
In-Reply-To: <mailman.15.1350144003.15775.autoconf@gnu.org>
Message-Id: <E1TN8QS-0003L3-4B@fenris.runbox.com>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 91.220.196.211
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: dwheeler@dwheeler.com
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 13 Oct 2012 20:35:15 -0000

Michael Talbot-Wilson:
> I'd like to do something like
>=20
> AC_PATH_PROG([PGCONFIG],[pg_config]...
>=20
> followed by employing the path PGCONFIG in a shell command and
> assigning the value returned.  If it was found, i.e. if there is a
> pg_config on the system.  Within configure.ac ...
...
> I thought it was possible to execute shell commands in configure.ac
> but a few hours searching the manual has got me nowhere.
>=20
> Is such a thing possible?  How?

The "configure.ac" file *is* a (Bourne) shell script, so just insert the sh=
ell command in the configure.ac file, and it'll be run at that point.

If they're in a conditional, you should use AS_IF and AS_CASE, not if...fi =
and case...esac; the autoconf documentation describes those.

--- David A. Wheeler


From MAILER-DAEMON Wed Oct 17 16:16:23 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TOa2R-0002gH-3Y
	for mharc-autoconf@gnu.org; Wed, 17 Oct 2012 16:16:23 -0400
Received: from eggs.gnu.org ([208.118.235.92]:56246)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <sebelk@gmail.com>) id 1TOa2O-0002fX-E6
	for autoconf@gnu.org; Wed, 17 Oct 2012 16:16:21 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <sebelk@gmail.com>) id 1TOa2N-0004fh-B6
	for autoconf@gnu.org; Wed, 17 Oct 2012 16:16:20 -0400
Received: from mail-qc0-f169.google.com ([209.85.216.169]:56361)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <sebelk@gmail.com>) id 1TOa2N-0004fd-7B
	for autoconf@gnu.org; Wed, 17 Oct 2012 16:16:19 -0400
Received: by mail-qc0-f169.google.com with SMTP id t2so8542521qcq.0
	for <autoconf@gnu.org>; Wed, 17 Oct 2012 13:16:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:from:date:message-id:subject:to:content-type;
	bh=wyXJWRWrOrqgb6NC4vVB4o7rPyL94S+UruQY4ZrdVF8=;
	b=MFi7vBgb+xqWDSx+X8a2iYa2THkLm8+PwvTSH7Us+q1Go9LSoPZGmQll8Ry5AfVu+m
	kYfMQ0UXPKVqKcYn3G3fCNwDu6HXutw0rBHZtjHps9MZLiNt1D9cC+eq9mNQx2fV9HR0
	btQefOStkXvnhWS9zhV/+F5NQ1SHxZ4ap/sskfA8xAUbv/IUASFLEiGPRkTplfjngj2M
	xu91KQIT9DNWPwddWv+Qor0j9aroS09hg62HCeMMI5FnA0gc5RJOaMoM/yfpMo/cOAih
	kGmBJv6M669NU0W6qyk0eE/0nyHK5jPI0uJAEb5dWpVbyfkuNmVInPNGusyxXl3oZb3p
	DUuA==
Received: by 10.224.33.205 with SMTP id i13mr15201899qad.35.1350504978356;
	Wed, 17 Oct 2012 13:16:18 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.229.63.138 with HTTP; Wed, 17 Oct 2012 13:15:57 -0700 (PDT)
From: Sergio Belkin <sebelk@gmail.com>
Date: Wed, 17 Oct 2012 17:15:57 -0300
Message-ID: <CABZC=5x_AHxD+zSXAVD6fg4xowK9d1R90Mu1VjcnTbb8xd4PoA@mail.gmail.com>
Subject: Question about ac_lib and ac_res
To: autoconf@gnu.org
Content-Type: text/plain; charset=ISO-8859-1
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.216.169
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 17 Oct 2012 20:16:21 -0000

Hi folks,

I've found in AC_SEARCH_LIBS functions ac_lib and ac_res what do they do?


Thanks in advance!

-- 
--
Sergio Belkin  http://www.sergiobelkin.com
Watch More TV http://sebelk.blogspot.com
LPIC-2 Certified - http://www.lpi.org


From MAILER-DAEMON Wed Oct 17 16:38:59 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TOaOJ-0001gM-GJ
	for mharc-autoconf@gnu.org; Wed, 17 Oct 2012 16:38:59 -0400
Received: from eggs.gnu.org ([208.118.235.92]:35349)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1TOaOI-0001gF-1w
	for autoconf@gnu.org; Wed, 17 Oct 2012 16:38:59 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1TOaOG-00048j-LE
	for autoconf@gnu.org; Wed, 17 Oct 2012 16:38:57 -0400
Received: from mx1.redhat.com ([209.132.183.28]:48090)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1TOaOG-00047s-Ci
	for autoconf@gnu.org; Wed, 17 Oct 2012 16:38:56 -0400
Received: from int-mx12.intmail.prod.int.phx2.redhat.com
	(int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25])
	by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q9HKcrUO012102
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Wed, 17 Oct 2012 16:38:54 -0400
Received: from [10.3.113.82] (ovpn-113-82.phx2.redhat.com [10.3.113.82])
	by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP
	id q9HKcrBe005894; Wed, 17 Oct 2012 16:38:53 -0400
Message-ID: <507F175D.7010400@redhat.com>
Date: Wed, 17 Oct 2012 14:38:53 -0600
From: Eric Blake <eblake@redhat.com>
Organization: Red Hat
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:16.0) Gecko/20121009 Thunderbird/16.0
MIME-Version: 1.0
To: Sergio Belkin <sebelk@gmail.com>
Subject: Re: Question about ac_lib and ac_res
References: <CABZC=5x_AHxD+zSXAVD6fg4xowK9d1R90Mu1VjcnTbb8xd4PoA@mail.gmail.com>
In-Reply-To: <CABZC=5x_AHxD+zSXAVD6fg4xowK9d1R90Mu1VjcnTbb8xd4PoA@mail.gmail.com>
X-Enigmail-Version: 1.4.5
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature";
	boundary="------------enig711EDC864EC87AAB120276FD"
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.132.183.28
Cc: autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 17 Oct 2012 20:38:59 -0000

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig711EDC864EC87AAB120276FD
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 10/17/2012 02:15 PM, Sergio Belkin wrote:
> Hi folks,
>=20
> I've found in AC_SEARCH_LIBS functions ac_lib and ac_res what do they d=
o?

They aren't documented in the manual, so you can assume that they are
used internally for implementing the actual search, and that you can
(and should!) safely ignore them.  If you're still more curious than
that, then read the source code: ac_lib is the shell variable that loops
over the 2nd argument passed to the AC_SEARCH_LIBS macro, and ac_res is
the shell variable that tracks which -l library, if any, was needed to
make the link succeed.

AC_DEFUN([AC_SEARCH_LIBS],
[AS_VAR_PUSHDEF([ac_Search], [ac_cv_search_$1])dnl
AC_CACHE_CHECK([for library containing $1], [ac_Search],
[ac_func_search_save_LIBS=3D$LIBS
AC_LANG_CONFTEST([AC_LANG_CALL([], [$1])])
for ac_lib in '' $2; do
  if test -z "$ac_lib"; then
    ac_res=3D"none required"
  else
    ac_res=3D-l$ac_lib
    LIBS=3D"-l$ac_lib $5 $ac_func_search_save_LIBS"
  fi
  AC_LINK_IFELSE([], [AS_VAR_SET([ac_Search], [$ac_res])])
  AS_VAR_SET_IF([ac_Search], [break])
done

--=20
Eric Blake   eblake@redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


--------------enig711EDC864EC87AAB120276FD
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iQEcBAEBCAAGBQJQfxddAAoJEKeha0olJ0NqKBwIAI2fZRpydnGTBb0cMcVGcdcT
SeBw28X54KImB4JNO6r5s75fd7ZxhpBQZ2/VfvrIkQR40O1+3UJl/T+FKbNeP3gk
dC+LkfyidxY2lGLW943nx/lTfrdRs3JqJ0WDKFVqCluiK4H+SKjnQugi7qPPNSA2
xPgd8RfcvbobkYATT9+NkOA0dmcfUaBAHDaTNQecAIFqoFKyo6O6rkAYPTs61N2s
eZOado6zw5oodom/BZnxvh1fOhVdo984rqDp2OwAAXsFGvZIbyBX0/PPhZuh8CWO
yO7Y1Wt3C9a1tyOlVYDHkmXTBP7+SKl7V4RgZYCItU3Z62AOa7LZlyda0AoNk+8=
=cls0
-----END PGP SIGNATURE-----

--------------enig711EDC864EC87AAB120276FD--


From MAILER-DAEMON Thu Oct 18 12:11:45 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TOshF-0004Fe-Gf
	for mharc-autoconf@gnu.org; Thu, 18 Oct 2012 12:11:45 -0400
Received: from eggs.gnu.org ([208.118.235.92]:48778)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <sebelk@gmail.com>) id 1TOshA-0004E2-Dt
	for autoconf@gnu.org; Thu, 18 Oct 2012 12:11:44 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <sebelk@gmail.com>) id 1TOsh6-0000cN-LA
	for autoconf@gnu.org; Thu, 18 Oct 2012 12:11:40 -0400
Received: from mail-qa0-f48.google.com ([209.85.216.48]:57409)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <sebelk@gmail.com>) id 1TOsh6-0000cH-GR
	for autoconf@gnu.org; Thu, 18 Oct 2012 12:11:36 -0400
Received: by mail-qa0-f48.google.com with SMTP id c11so1762031qad.0
	for <autoconf@gnu.org>; Thu, 18 Oct 2012 09:11:36 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:cc:content-type:content-transfer-encoding;
	bh=Ji25I5TQIxT5XmvVysz+wpZNF0iVJV7VQGbzUoRAPTY=;
	b=iGIKSwcArWsZl45phdi9iM70D0jOUwPQdHdObbwxXHASoNMhyV+ZFCrslYREc1vvQ/
	7UdSkWiU13cPJstTY2GB+X5OwDYIjy5V/KXLFGG4iDOLUW95TGfMFbBFRuVpsS4FferC
	RjVx/VWSkZsEn4CCaEeEuUS4cLO+6Vkg1y1yWE6WHTJtvqYbHUmy7P7BLbge1bYzU+Jm
	R88LHnoedhSHH0qWyIkFmN9GlpSL0xGtdu+OojbI97sYI3xWTIdSm2RGMLikxsIEQpN0
	PfpZe6Xzx7LG3ZoKJEcaB+s9E4S+Eqo9biGR/4hnK7nfB5pz6nVoUjhmFNZIHnN5hDw3
	bvwQ==
Received: by 10.229.136.142 with SMTP id r14mr2072625qct.96.1350576696093;
	Thu, 18 Oct 2012 09:11:36 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.229.63.138 with HTTP; Thu, 18 Oct 2012 09:11:15 -0700 (PDT)
In-Reply-To: <507F175D.7010400@redhat.com>
References: <CABZC=5x_AHxD+zSXAVD6fg4xowK9d1R90Mu1VjcnTbb8xd4PoA@mail.gmail.com>
	<507F175D.7010400@redhat.com>
From: Sergio Belkin <sebelk@gmail.com>
Date: Thu, 18 Oct 2012 13:11:15 -0300
Message-ID: <CABZC=5ygYmBCs6j7UN546p9RfRho19W2R4Hdtt721h4U2-0eaA@mail.gmail.com>
Subject: Re: Question about ac_lib and ac_res
To: Eric Blake <eblake@redhat.com>
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.216.48
Cc: autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Oct 2012 16:11:44 -0000

2012/10/17 Eric Blake <eblake@redhat.com>:
> On 10/17/2012 02:15 PM, Sergio Belkin wrote:
>> Hi folks,
>>
>> I've found in AC_SEARCH_LIBS functions ac_lib and ac_res what do they do=
?
>
> They aren't documented in the manual, so you can assume that they are
> used internally for implementing the actual search, and that you can
> (and should!) safely ignore them.  If you're still more curious than
> that, then read the source code: ac_lib is the shell variable that loops
> over the 2nd argument passed to the AC_SEARCH_LIBS macro, and ac_res is
> the shell variable that tracks which -l library, if any, was needed to
> make the link succeed.
>
> AC_DEFUN([AC_SEARCH_LIBS],
> [AS_VAR_PUSHDEF([ac_Search], [ac_cv_search_$1])dnl
> AC_CACHE_CHECK([for library containing $1], [ac_Search],
> [ac_func_search_save_LIBS=3D$LIBS
> AC_LANG_CONFTEST([AC_LANG_CALL([], [$1])])
> for ac_lib in '' $2; do
>   if test -z "$ac_lib"; then
>     ac_res=3D"none required"
>   else
>     ac_res=3D-l$ac_lib
>     LIBS=3D"-l$ac_lib $5 $ac_func_search_save_LIBS"
>   fi
>   AC_LINK_IFELSE([], [AS_VAR_SET([ac_Search], [$ac_res])])
>   AS_VAR_SET_IF([ac_Search], [break])
> done
>
> --
> Eric Blake   eblake@redhat.com    +1-919-301-3266
> Libvirt virtualization library http://libvirt.org
>

Thanks for you explanation, I didn''t understand well what does "none
required".

I've found "The result of this test is cached in the
ac_cv_search_function variable as =91none required=92 if function is
already available" at
http://www.manpagez.com/info/autoconf/autoconf-2.69/autoconf_46.php

So I understand that function was found in the library searched on in
another in the system, wasn't it?

Thanks in advance!

--=20
--
Sergio Belkin  http://www.sergiobelkin.com
Watch More TV http://sebelk.blogspot.com
LPIC-2 Certified - http://www.lpi.org


From MAILER-DAEMON Thu Oct 18 12:23:11 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TOssJ-0000Gs-8z
	for mharc-autoconf@gnu.org; Thu, 18 Oct 2012 12:23:11 -0400
Received: from eggs.gnu.org ([208.118.235.92]:48099)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1TOssD-0000Ao-CG
	for autoconf@gnu.org; Thu, 18 Oct 2012 12:23:09 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1TOssC-0004Et-90
	for autoconf@gnu.org; Thu, 18 Oct 2012 12:23:05 -0400
Received: from mx1.redhat.com ([209.132.183.28]:30036)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1TOssC-0004En-0d
	for autoconf@gnu.org; Thu, 18 Oct 2012 12:23:04 -0400
Received: from int-mx10.intmail.prod.int.phx2.redhat.com
	(int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23])
	by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q9IGN2O3013820
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Thu, 18 Oct 2012 12:23:02 -0400
Received: from [10.3.113.92] (ovpn-113-92.phx2.redhat.com [10.3.113.92])
	by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP
	id q9IGN1NO024701; Thu, 18 Oct 2012 12:23:02 -0400
Message-ID: <50802CE5.9080606@redhat.com>
Date: Thu, 18 Oct 2012 10:23:01 -0600
From: Eric Blake <eblake@redhat.com>
Organization: Red Hat
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:16.0) Gecko/20121009 Thunderbird/16.0
MIME-Version: 1.0
To: Sergio Belkin <sebelk@gmail.com>
Subject: Re: Question about ac_lib and ac_res
References: <CABZC=5x_AHxD+zSXAVD6fg4xowK9d1R90Mu1VjcnTbb8xd4PoA@mail.gmail.com>
	<507F175D.7010400@redhat.com>
	<CABZC=5ygYmBCs6j7UN546p9RfRho19W2R4Hdtt721h4U2-0eaA@mail.gmail.com>
In-Reply-To: <CABZC=5ygYmBCs6j7UN546p9RfRho19W2R4Hdtt721h4U2-0eaA@mail.gmail.com>
X-Enigmail-Version: 1.4.5
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature";
	boundary="------------enig67C9913515D534769CB67DD5"
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.132.183.28
Cc: autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Oct 2012 16:23:09 -0000

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig67C9913515D534769CB67DD5
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

On 10/18/2012 10:11 AM, Sergio Belkin wrote:
>=20
> Thanks for you explanation, I didn''t understand well what does "none
> required".
>=20
> I've found "The result of this test is cached in the
> ac_cv_search_function variable as =91none required=92 if function is
> already available" at
> http://www.manpagez.com/info/autoconf/autoconf-2.69/autoconf_46.php
>=20
> So I understand that function was found in the library searched on in
> another in the system, wasn't it?

For an example, on cygwin, sin() is in libc, but on other platforms, you
have to use libm to get sin().  So:

AC_SEARCH_LIBS([sin], [m])

will set ac_cv_search_sin to 'none required' on cygwin, and '-lm' on
other platforms.

--=20
Eric Blake   eblake@redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


--------------enig67C9913515D534769CB67DD5
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iQEcBAEBCAAGBQJQgCzlAAoJEKeha0olJ0NqBMcH/iWKc1SyNiXNjHngrEIWj6un
oYqFm1AG3T8KtvxwLghh244Z1fcscdUfTOsgPvW6RkJ8s3dl6UdCTLS3OvioL5ht
+deNH+nNEvy/iW1Z++XBEf9dReDHreWqiA4BqjJS8BnPOkINSpgyxO/nmh8cCTcp
Gvz6UqNh1HaGMPbUPo3QCf7lgZJpP0UMz0cdU2cAFAuMLFQvr+fqGFFfCNUemn+r
ms4YGHRvCqdrvZFlQ4oECAKGQd/jE2sXvEw1HAHaC5QMYu5846TDTN5UOoCuuI3z
LB22USmkgqsyhL9SJxE4JA1DTYt3f1IuIC0opgiG93UwwKs+YWoZUcLETv7fPz8=
=5mFu
-----END PGP SIGNATURE-----

--------------enig67C9913515D534769CB67DD5--


From MAILER-DAEMON Thu Oct 18 14:34:18 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TOuvC-0002V9-Cy
	for mharc-autoconf@gnu.org; Thu, 18 Oct 2012 14:34:18 -0400
Received: from eggs.gnu.org ([208.118.235.92]:43619)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <sebelk@gmail.com>) id 1TOuv9-0002U9-Vx
	for autoconf@gnu.org; Thu, 18 Oct 2012 14:34:17 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <sebelk@gmail.com>) id 1TOuYK-0008Ae-Dh
	for autoconf@gnu.org; Thu, 18 Oct 2012 14:11:39 -0400
Received: from mail-ea0-f169.google.com ([209.85.215.169]:64917)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <sebelk@gmail.com>) id 1TOuYJ-0008AI-RS
	for autoconf@gnu.org; Thu, 18 Oct 2012 14:10:40 -0400
Received: by mail-ea0-f169.google.com with SMTP id k11so3095205eaa.0
	for <autoconf@gnu.org>; Thu, 18 Oct 2012 11:10:39 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:cc:content-type:content-transfer-encoding;
	bh=q82mJ8Nfp/mc2H/iIhzo7vQONf1uXaNOWLWpRbBja4Q=;
	b=TKAilq6aqSTF/v4zfxYqI9WYYsNaBbolmttzGPbjfA/nXBdzAYOgLDdvdFEvdA7zH7
	gYuhYa6uOAYVsDHhH/Z2qpqegiOOGdZuy7BbemHnlpZJLhvLv3GaI9XYDEtX09j8XdF2
	fODJnjIum3mK8ETBtJLGAYpyQWFyKnFEzd9y7YW679gxRRauidHmMKQxOe+dj6n69GgZ
	J+bUA+xhP5PYdtzk6awk4OYsin/NKvMl7fVfqkS7Zd3UlnSw8wIP02BHY4hDNphhPYYD
	mhL3N5xnPsJv/5dQ24udFz1n5FyCzV5o/HTWwH+H6zZX1lXmCfXaW6QtxYtVNjG8Logm
	uV5w==
Received: by 10.14.223.199 with SMTP id v47mr33221012eep.45.1350583839014;
	Thu, 18 Oct 2012 11:10:39 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.14.184.65 with HTTP; Thu, 18 Oct 2012 11:10:18 -0700 (PDT)
In-Reply-To: <50802CE5.9080606@redhat.com>
References: <CABZC=5x_AHxD+zSXAVD6fg4xowK9d1R90Mu1VjcnTbb8xd4PoA@mail.gmail.com>
	<507F175D.7010400@redhat.com>
	<CABZC=5ygYmBCs6j7UN546p9RfRho19W2R4Hdtt721h4U2-0eaA@mail.gmail.com>
	<50802CE5.9080606@redhat.com>
From: Sergio Belkin <sebelk@gmail.com>
Date: Thu, 18 Oct 2012 15:10:18 -0300
Message-ID: <CABZC=5wMBs8YvTuSx9EDm+RzmQ1BRrW=kCjrDDqR6Jx9OpBhpQ@mail.gmail.com>
Subject: Re: Question about ac_lib and ac_res
To: Eric Blake <eblake@redhat.com>
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.215.169
Cc: autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Oct 2012 18:34:17 -0000

2012/10/18 Eric Blake <eblake@redhat.com>:
> On 10/18/2012 10:11 AM, Sergio Belkin wrote:
>>
>> Thanks for you explanation, I didn''t understand well what does "none
>> required".
>>
>> I've found "The result of this test is cached in the
>> ac_cv_search_function variable as =91none required=92 if function is
>> already available" at
>> http://www.manpagez.com/info/autoconf/autoconf-2.69/autoconf_46.php
>>
>> So I understand that function was found in the library searched on in
>> another in the system, wasn't it?
>
> For an example, on cygwin, sin() is in libc, but on other platforms, you
> have to use libm to get sin().  So:
>
> AC_SEARCH_LIBS([sin], [m])
>
> will set ac_cv_search_sin to 'none required' on cygwin, and '-lm' on
> other platforms.
>
> --
> Eric Blake   eblake@redhat.com    +1-919-301-3266
> Libvirt virtualization library http://libvirt.org
>

As always thanks for your clear explanation Eric

--=20
--
Sergio Belkin  http://www.sergiobelkin.com
Watch More TV http://sebelk.blogspot.com
LPIC-2 Certified - http://www.lpi.org


From MAILER-DAEMON Tue Oct 23 09:08:56 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TQeE4-00050G-IH
	for mharc-autoconf@gnu.org; Tue, 23 Oct 2012 09:08:56 -0400
Received: from eggs.gnu.org ([208.118.235.92]:40753)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <liyu_www@163.com>) id 1TQaLr-0004Rl-Mb
	for autoconf@gnu.org; Tue, 23 Oct 2012 05:00:52 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <liyu_www@163.com>) id 1TQaLn-0005PH-M2
	for autoconf@gnu.org; Tue, 23 Oct 2012 05:00:43 -0400
Received: from mproxyjp2.163.com ([176.32.86.149]:48934)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <liyu_www@163.com>) id 1TQaLm-0005Fo-4r
	for autoconf@gnu.org; Tue, 23 Oct 2012 05:00:39 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com;
	s=s110527; h=Received:Date:From:To:Subject:Content-Type:
	MIME-Version:Message-ID; bh=QLL+y98E6vmls18cKM8YGXU9MoIWRZ8Y4KY7
	E57OJvM=; b=XOwQrCanniDqWjrzUQlb47aJhRqElP1B2tw7h+/nGw4eGnkRPkvZ
	/vi2qLadr5Z/2lEolouS4ubYozJXLCROefGDzJWj1/BLxef6cwpF9Q3PTZEHsWt1
	VgfRLCck43L2ZrmwuyglFlay9LwaqAfVXLoNyBGwNx6+54H/NFNqzdo=
Received: from liyu_www$163.com ( [58.247.171.59] ) by ajax-webmail-wmsvr29
	(Coremail) ; Tue, 23 Oct 2012 16:44:58 +0800 (CST)
X-Originating-IP: [58.247.171.59]
Date: Tue, 23 Oct 2012 16:44:58 +0800 (CST)
From: =?GBK?B?wO7Uow==?= <liyu_www@163.com>
To: autoconf@gnu.org
Subject: how to use autoconf projcet to make bin
X-Priority: 3
X-Mailer: Coremail Webmail Server Version SP_ntes V3.5 build
	20120914(19817.4926.4909) Copyright (c) 2002-2012 www.mailtech.cn
	163com
X-CM-CTRLDATA: 571kLWZvb3Rlcl9odG09Njc3Ojgx
MIME-Version: 1.0
Message-ID: <446606cf.98dc.13a8ccbd2bf.Coremail.liyu_www@163.com>
X-CM-TRANSID: HcGowGCZP0EMWYZQfOQfAA--.644W
X-CM-SenderInfo: 5ol13sxzzzqiywtou0bp/1tbi6wpRmE9o4UPJlQAAsx
X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU==
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 176.32.86.149
X-Mailman-Approved-At: Tue, 23 Oct 2012 09:08:55 -0400
Content-Type: text/plain; charset=GBK
Content-Transfer-Encoding: 7bit
X-Content-Filtered-By: Mailman/MimeDel 2.1.14
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Oct 2012 09:00:53 -0000


hi,


I need to make v4l2 test project, and it needs autotools to configure.
So, in ubuntu 12.04
$ sudo apt-get install autoconf


but unlucky, autoconf failed


so i download the autoconf project, and want to make the autoconf myself.


but i read the README, it says there is INSTALL file, but i can't find it.


How can i use the autoconf projcet to make binary "autoconf" ?







--
Best Wishes,


From MAILER-DAEMON Tue Oct 23 09:42:11 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TQekF-0000lx-MW
	for mharc-autoconf@gnu.org; Tue, 23 Oct 2012 09:42:11 -0400
Received: from eggs.gnu.org ([208.118.235.92]:58953)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1TQek9-0000kg-VY
	for autoconf@gnu.org; Tue, 23 Oct 2012 09:42:10 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1TQek0-0007Pl-Fe
	for autoconf@gnu.org; Tue, 23 Oct 2012 09:42:05 -0400
Received: from mx1.redhat.com ([209.132.183.28]:24538)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1TQek0-0007Pf-6u
	for autoconf@gnu.org; Tue, 23 Oct 2012 09:41:56 -0400
Received: from int-mx11.intmail.prod.int.phx2.redhat.com
	(int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24])
	by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q9NDfoog013410
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Tue, 23 Oct 2012 09:41:50 -0400
Received: from [10.3.113.142] (ovpn-113-142.phx2.redhat.com [10.3.113.142])
	by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP
	id q9NDfmp0019511; Tue, 23 Oct 2012 09:41:48 -0400
Message-ID: <50869E9B.4010109@redhat.com>
Date: Tue, 23 Oct 2012 07:41:47 -0600
From: Eric Blake <eblake@redhat.com>
Organization: Red Hat
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:16.0) Gecko/20121016 Thunderbird/16.0.1
MIME-Version: 1.0
To: =?UTF-8?B?5p2O6KOV?= <liyu_www@163.com>
Subject: Re: how to use autoconf projcet to make bin
References: <446606cf.98dc.13a8ccbd2bf.Coremail.liyu_www@163.com>
In-Reply-To: <446606cf.98dc.13a8ccbd2bf.Coremail.liyu_www@163.com>
X-Enigmail-Version: 1.4.5
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature";
	boundary="------------enigB261295C4FF361E052B35B66"
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.132.183.28
Cc: autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Oct 2012 13:42:10 -0000

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigB261295C4FF361E052B35B66
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 10/23/2012 02:44 AM, =E6=9D=8E=E8=A3=95 wrote:
>=20
> hi,
>=20
>=20
> I need to make v4l2 test project, and it needs autotools to configure.
> So, in ubuntu 12.04
> $ sudo apt-get install autoconf
>=20
>=20
> but unlucky, autoconf failed

Without telling us the exact failure message, it's hard for us to guess
why things went wrong for you.

>=20
>=20
> so i download the autoconf project, and want to make the autoconf mysel=
f.
>=20
>=20
> but i read the README, it says there is INSTALL file, but i can't find =
it.

Are you trying a released tarball of autoconf, or autoconf.git?  The
INSTALL file is part of every tarball, but if you use autoconf.git, then
you need to follow the directions in README-hacking for bootstrapping
the project before you will have an INSTALL file.

>=20
>=20
> How can i use the autoconf projcet to make binary "autoconf" ?

README-hacking probably has the answer to your question.

--=20
Eric Blake   eblake@redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


--------------enigB261295C4FF361E052B35B66
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iQEcBAEBCAAGBQJQhp6bAAoJEKeha0olJ0Nqx3UH/1NkiRUi1eQ69QFUqeDpA1QX
mkWbNsxXG/TBcknTbWpGm0BAjQH0i4wOEi+Aj99juIx+A/vKKG206BNFDrmwfmY6
UNyAjOClptRm6QM3er59VXpG3boQoob3hjQo+QLfv3qWhkYel3FVW3eamPmlxcBU
gjYqL5nBeLkplQCdyjURmCDB7RlH0pjynj9QIoCARglXzpUXyRkhqDSrl0sH+8RU
KBH0pQ2dtCBa1CP9PAbl0NcFc1iaV4xR5louLKZQDfMd7niFvqtOV0plCrDL1AEs
XwWcZ0JQ+Xz2In/ozSKTb5Er8mJfD+OnB/1CZSRhpeC6NcwybRFNdYl7NEPUXtY=
=KfaO
-----END PGP SIGNATURE-----

--------------enigB261295C4FF361E052B35B66--


From MAILER-DAEMON Tue Oct 23 10:03:41 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TQf53-0005JS-3d
	for mharc-autoconf@gnu.org; Tue, 23 Oct 2012 10:03:41 -0400
Received: from eggs.gnu.org ([208.118.235.92]:34714)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <manutalcual@gmail.com>) id 1TQf4s-0005It-Gp
	for autoconf@gnu.org; Tue, 23 Oct 2012 10:03:39 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <manutalcual@gmail.com>) id 1TQf4n-0005Ax-7n
	for autoconf@gnu.org; Tue, 23 Oct 2012 10:03:30 -0400
Received: from mail-ob0-f169.google.com ([209.85.214.169]:47917)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <manutalcual@gmail.com>) id 1TQf4n-0005AY-2z
	for autoconf@gnu.org; Tue, 23 Oct 2012 10:03:25 -0400
Received: by mail-ob0-f169.google.com with SMTP id va7so4111186obc.0
	for <autoconf@gnu.org>; Tue, 23 Oct 2012 07:03:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type; bh=zPwHqovejw8GSsVCKwwe7Rk+IcPJyOssC6mNfUam+50=;
	b=rjI8sLcc3gGdjduL+gO4kBCkuzfScDYGPJaa2vSQihW7009sQcHD13WuJKbnXCeJRY
	G95sUwDPLlO/JcGQjgEDvwwLTbxoZJg7kBZ3jBv6oV8xCYIr4CImjapHKVZA8Gibywbg
	UZ52s52dxic5tfvEMKrQ0mXTS0gPSXLeizD8fdYPdrDQj5JbNSkONZC8IGF83NeZwSL7
	LCOfQ8Y2wSI7yak2+wK8iXC5nbJcec1uJub1ov8i57tt70rw1eDcorTBOMzXiDYjp+L/
	StnYBNruAXSuEfJh05E9xYZVOclylEiTmgE+oVOPQe9gAZQjCWCc2dq/WjG+DfQ/xHQk
	Ma4g==
MIME-Version: 1.0
Received: by 10.60.22.161 with SMTP id e1mr10954645oef.93.1351001004199; Tue,
	23 Oct 2012 07:03:24 -0700 (PDT)
Received: by 10.60.161.170 with HTTP; Tue, 23 Oct 2012 07:03:24 -0700 (PDT)
In-Reply-To: <446606cf.98dc.13a8ccbd2bf.Coremail.liyu_www@163.com>
References: <446606cf.98dc.13a8ccbd2bf.Coremail.liyu_www@163.com>
Date: Tue, 23 Oct 2012 16:03:24 +0200
Message-ID: <CABo3Yb5Adv-eB4JUMVLfbrXsYzOjfYPPHxmX+Lvx6CLNH1pgkA@mail.gmail.com>
Subject: Re: how to use autoconf projcet to make bin
From: Manuel Cano <manutalcual@gmail.com>
To: autoconf@gnu.org
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.214.169
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Content-Filtered-By: Mailman/MimeDel 2.1.14
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Oct 2012 14:03:40 -0000

Hi,

In Ubuntu you should install automake, autoconf, m4, make, gcc, binutils
and that should suffice.

2012/10/23 =E6=9D=8E=E8=A3=95 <liyu_www@163.com>

>
> hi,
>
>
> I need to make v4l2 test project, and it needs autotools to configure.
> So, in ubuntu 12.04
> $ sudo apt-get install autoconf
>
>
> but unlucky, autoconf failed
>
>
> so i download the autoconf project, and want to make the autoconf myself.
>
>
> but i read the README, it says there is INSTALL file, but i can't find it=
.
>
>
> How can i use the autoconf projcet to make binary "autoconf" ?
>
>
>
>
>
>
>
> --
> Best Wishes,
>
> _______________________________________________
> Autoconf mailing list
> Autoconf@gnu.org
> https://lists.gnu.org/mailman/listinfo/autoconf
>



--=20
Manuel

From MAILER-DAEMON Wed Oct 24 05:02:04 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TQwqi-0005Ua-QI
	for mharc-autoconf@gnu.org; Wed, 24 Oct 2012 05:02:04 -0400
Received: from eggs.gnu.org ([208.118.235.92]:34741)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@meyering.net>) id 1TQwqZ-0005TM-Us
	for autoconf@gnu.org; Wed, 24 Oct 2012 05:02:03 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jim@meyering.net>) id 1TQwqT-00080Q-Bx
	for autoconf@gnu.org; Wed, 24 Oct 2012 05:01:55 -0400
Received: from mx.meyering.net ([88.168.87.75]:50591)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@meyering.net>) id 1TQwqT-00080C-3C
	for autoconf@gnu.org; Wed, 24 Oct 2012 05:01:49 -0400
Received: from rho.meyering.net (rho.meyering.net [127.0.0.1])
	by rho.meyering.net (Acme Bit-Twister) with ESMTP id F224D600B1
	for <autoconf@gnu.org>; Wed, 24 Oct 2012 11:01:47 +0200 (CEST)
From: Jim Meyering <jim@meyering.net>
To: Autoconf list <autoconf@gnu.org>
Subject: FYI: grep had to switch: AC_PROG_CC_STDC -> AC_PROG_CC
Date: Wed, 24 Oct 2012 11:01:47 +0200
Message-ID: <87objskzus.fsf@rho.meyering.net>
Lines: 42
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 88.168.87.75
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 24 Oct 2012 09:02:03 -0000

When attempting to bootstrap grep.git using
autoconf.git (v2.69-37-gb9dc6b6), I see this failure:

    autoreconf: running: aclocal -I m4 -I m4
    configure.ac:81: error: AC_PROG_CC cannot be called after AM_PROG_CC_C_O
    ../../lib/autoconf/c.m4:1459: AC_PROG_CC_STDC is expanded from...
    m4/gnulib-common.m4:229: gl_PROG_CC_C99 is expanded from...
    m4/gnulib-comp.m4:34: gl_EARLY is expanded from...
    configure.ac:81: the top level
    autom4te: /usr/bin/m4 failed with exit status: 1
    aclocal: error: /p/bin/autom4te failed with exit status: 1
    autoreconf: aclocal failed with exit status: 1
    ./bootstrap: autoreconf failed

I worked around it by making this change.

>From 703a9cf560db57abfc9ff3457fc5a696c1f563ac Mon Sep 17 00:00:00 2001
From: Jim Meyering <jim@meyering.net>
Date: Wed, 24 Oct 2012 11:00:14 +0200
Subject: [PATCH] build: use AC_PROG_CC_STDC rather than AC_PROG_CC

* configure.ac: Use AC_PROG_CC_STDC rather than AC_PROG_CC,
to accommodate autoconf-2.69-37+.
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 1e51ffc..84c6049 100644
--- a/configure.ac
+++ b/configure.ac
@@ -77,7 +77,7 @@ dnl Checks for programs.
 AC_CANONICAL_HOST
 AC_PROG_AWK
 AC_PROG_INSTALL
-AC_PROG_CC
+AC_PROG_CC_STDC
 gl_EARLY
 AC_PROG_RANLIB

--
1.8.0


From MAILER-DAEMON Wed Oct 24 15:29:34 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TR6dy-0003Vw-Po
	for mharc-autoconf@gnu.org; Wed, 24 Oct 2012 15:29:34 -0400
Received: from eggs.gnu.org ([208.118.235.92]:39443)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1TR6dw-0003Su-4M
	for autoconf@gnu.org; Wed, 24 Oct 2012 15:29:33 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1TR6du-0001CI-VW
	for autoconf@gnu.org; Wed, 24 Oct 2012 15:29:32 -0400
Received: from smtp.cs.ucla.edu ([131.179.128.62]:35025)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>)
	id 1TR6dq-0001Ac-An; Wed, 24 Oct 2012 15:29:26 -0400
Received: from localhost (localhost.localdomain [127.0.0.1])
	by smtp.cs.ucla.edu (Postfix) with ESMTP id 4F49CA60012;
	Wed, 24 Oct 2012 12:29:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu
Received: from smtp.cs.ucla.edu ([127.0.0.1])
	by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id GWSS7u9VWoMV; Wed, 24 Oct 2012 12:29:17 -0700 (PDT)
Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200])
	by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 64916A60003;
	Wed, 24 Oct 2012 12:29:17 -0700 (PDT)
Message-ID: <50884189.2070402@cs.ucla.edu>
Date: Wed, 24 Oct 2012 12:29:13 -0700
From: Paul Eggert <eggert@cs.ucla.edu>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:16.0) Gecko/20121016 Thunderbird/16.0.1
MIME-Version: 1.0
To: Jim Meyering <jim@meyering.net>
Subject: Re: FYI: grep had to switch: AC_PROG_CC_STDC -> AC_PROG_CC
References: <87objskzus.fsf@rho.meyering.net>
In-Reply-To: <87objskzus.fsf@rho.meyering.net>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 131.179.128.62
Cc: Autoconf patches <autoconf-patches@gnu.org>,
	Autoconf list <autoconf@gnu.org>, Adrian Bunk <bunk@stusta.de>
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 24 Oct 2012 19:29:33 -0000

On 10/24/2012 02:01 AM, Jim Meyering wrote:
> When attempting to bootstrap grep.git using
> autoconf.git (v2.69-37-gb9dc6b6), I see this failure:
> 
>     autoreconf: running: aclocal -I m4 -I m4
>     configure.ac:81: error: AC_PROG_CC cannot be called after AM_PROG_CC_C_O

Yeowch.  Thanks for reporting this.  The problem arises because
Automake's AM_PROG_CC_C_O redefines AC_PROG_CC.

We don't want to discourage people from using AC_PROG_CC,
so this is an Autoconf bug.  I installed this into Autoconf:


>From 0cc5d3c97d4446dfb198e20f13b9850ee237ab3b Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@cs.ucla.edu>
Date: Wed, 24 Oct 2012 12:25:34 -0700
Subject: [PATCH] AC_PROG_CC_C89, AC_PROG_CC_C99, AC_PROG_CC_STDC: Use
 AU_DEFUN

This fixes a bug introduced by the most recent change to c.m4.
Problem reported by Jim Meyering in
<http://lists.gnu.org/archive/html/autoconf/2012-10/msg00048.html>.
* lib/autoconf/c.m4 (AC_PROG_CC_C89, AC_PROG_CC_C99, AC_PROG_CC_STDC):
Use AU_DEFUN and AC_REQUIRE, not AU_ALIAS, as the latter is not
compatible with how Automake redefines AC_PROG_CC.
---
 lib/autoconf/c.m4 | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)

diff --git a/lib/autoconf/c.m4 b/lib/autoconf/c.m4
index 4a84489..0802f85 100644
--- a/lib/autoconf/c.m4
+++ b/lib/autoconf/c.m4
@@ -1448,15 +1448,27 @@ dnl preferably extc11.
 
 # AC_PROG_CC_C89
 # --------------
-AU_ALIAS([AC_PROG_CC_C89], [AC_PROG_CC])
+# Do not use AU_ALIAS here and in AC_PROG_CC_C99 and AC_PROG_CC_STDC,
+# as that'd be incompatible with how Automake redefines AC_PROG_CC.  See
+# <http://lists.gnu.org/archive/html/autoconf/2012-10/msg00048.html>.
+AU_DEFUN([AC_PROG_CC_C89],
+  [AC_REQUIRE([AC_PROG_CC])],
+  [$0 is obsolete; use AC_PROG_CC]
+)
 
 # AC_PROG_CC_C99
 # --------------
-AU_ALIAS([AC_PROG_CC_C99], [AC_PROG_CC])
+AU_DEFUN([AC_PROG_CC_C99],
+  [AC_REQUIRE([AC_PROG_CC])],
+  [$0 is obsolete; use AC_PROG_CC]
+)
 
 # AC_PROG_CC_STDC
 # ---------------
-AU_ALIAS([AC_PROG_CC_STDC], [AC_PROG_CC])
+AU_DEFUN([AC_PROG_CC_STDC],
+  [AC_REQUIRE([AC_PROG_CC])],
+  [$0 is obsolete; use AC_PROG_CC]
+)
 
 
 # AC_C_BACKSLASH_A
-- 
1.7.11.7




From MAILER-DAEMON Wed Oct 24 16:08:37 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TR7Fl-00089z-3I
	for mharc-autoconf@gnu.org; Wed, 24 Oct 2012 16:08:37 -0400
Received: from eggs.gnu.org ([208.118.235.92]:44369)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TR7Fi-000899-ER
	for autoconf@gnu.org; Wed, 24 Oct 2012 16:08:36 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TR7Fh-0005eb-8C
	for autoconf@gnu.org; Wed, 24 Oct 2012 16:08:34 -0400
Received: from filtteri6.pp.htv.fi ([213.243.153.189]:49346)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bunk@stusta.de>)
	id 1TR7Fe-0005a0-9E; Wed, 24 Oct 2012 16:08:30 -0400
Received: from localhost (localhost [127.0.0.1])
	by filtteri6.pp.htv.fi (Postfix) with ESMTP id 6EA6756E5BA;
	Wed, 24 Oct 2012 23:08:05 +0300 (EEST)
X-Virus-Scanned: Debian amavisd-new at pp.htv.fi
Received: from smtp4.welho.com ([213.243.153.38])
	by localhost (filtteri6.pp.htv.fi [213.243.153.189]) (amavisd-new,
	port 10024)
	with ESMTP id HzHyoLBiCKpO; Wed, 24 Oct 2012 23:08:04 +0300 (EEST)
Received: from bunk.dyndns.info (cs185055.pp.htv.fi [213.243.185.55])
	by smtp4.welho.com (Postfix) with ESMTP id D55BE5BC011;
	Wed, 24 Oct 2012 23:08:04 +0300 (EEST)
Date: Wed, 24 Oct 2012 23:07:44 +0300
From: Adrian Bunk <bunk@stusta.de>
To: Paul Eggert <eggert@cs.ucla.edu>
Subject: Re: FYI: grep had to switch: AC_PROG_CC_STDC -> AC_PROG_CC
Message-ID: <20121024200744.GB31564@bunk.dyndns.info>
References: <87objskzus.fsf@rho.meyering.net>
 <50884189.2070402@cs.ucla.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <50884189.2070402@cs.ucla.edu>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 213.243.153.189
Cc: Autoconf patches <autoconf-patches@gnu.org>,
	Autoconf list <autoconf@gnu.org>
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 24 Oct 2012 20:08:36 -0000

On Wed, Oct 24, 2012 at 12:29:13PM -0700, Paul Eggert wrote:
> On 10/24/2012 02:01 AM, Jim Meyering wrote:
> > When attempting to bootstrap grep.git using
> > autoconf.git (v2.69-37-gb9dc6b6), I see this failure:
> > 
> >     autoreconf: running: aclocal -I m4 -I m4
> >     configure.ac:81: error: AC_PROG_CC cannot be called after AM_PROG_CC_C_O
> 
> Yeowch.  Thanks for reporting this.  The problem arises because
> Automake's AM_PROG_CC_C_O redefines AC_PROG_CC.

Ouch.

> We don't want to discourage people from using AC_PROG_CC,
> so this is an Autoconf bug.  I installed this into Autoconf:
>...

You also have to exclude AC_PROG_CC_C89 and AC_PROG_CC_C99 (similar
to AC_PROG_CC_STDC) in au_exclude_list in tests/mktests.sh to fix the
"make check" errors this causes.

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed



From MAILER-DAEMON Wed Oct 24 18:30:27 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TR9T0-0001b9-VV
	for mharc-autoconf@gnu.org; Wed, 24 Oct 2012 18:30:26 -0400
Received: from eggs.gnu.org ([208.118.235.92]:40666)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1TR9Sx-0001Xz-MZ
	for autoconf@gnu.org; Wed, 24 Oct 2012 18:30:24 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1TR9Sw-0001pJ-Qf
	for autoconf@gnu.org; Wed, 24 Oct 2012 18:30:23 -0400
Received: from smtp.cs.ucla.edu ([131.179.128.62]:44576)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>)
	id 1TR9Su-0001jV-JB; Wed, 24 Oct 2012 18:30:20 -0400
Received: from localhost (localhost.localdomain [127.0.0.1])
	by smtp.cs.ucla.edu (Postfix) with ESMTP id 153F1A6000D;
	Wed, 24 Oct 2012 15:30:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu
Received: from smtp.cs.ucla.edu ([127.0.0.1])
	by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id cp66xuumh7YF; Wed, 24 Oct 2012 15:30:18 -0700 (PDT)
Received: from [192.168.1.3] (pool-108-23-119-2.lsanca.fios.verizon.net
	[108.23.119.2])
	by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 8ADEDA60003;
	Wed, 24 Oct 2012 15:30:18 -0700 (PDT)
Message-ID: <50886BF6.5010502@cs.ucla.edu>
Date: Wed, 24 Oct 2012 15:30:14 -0700
From: Paul Eggert <eggert@cs.ucla.edu>
Organization: UCLA Computer Science Department
User-Agent: Mozilla/5.0 (X11; Linux i686;
	rv:16.0) Gecko/20121011 Thunderbird/16.0.1
MIME-Version: 1.0
To: Adrian Bunk <bunk@stusta.de>
Subject: Re: FYI: grep had to switch: AC_PROG_CC_STDC -> AC_PROG_CC
References: <87objskzus.fsf@rho.meyering.net> <50884189.2070402@cs.ucla.edu>
	<20121024200744.GB31564@bunk.dyndns.info>
In-Reply-To: <20121024200744.GB31564@bunk.dyndns.info>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 131.179.128.62
Cc: Autoconf patches <autoconf-patches@gnu.org>,
	Autoconf list <autoconf@gnu.org>
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 24 Oct 2012 22:30:24 -0000

On 10/24/2012 01:07 PM, Adrian Bunk wrote:
> You also have to exclude AC_PROG_CC_C89 and AC_PROG_CC_C99 (similar
> to AC_PROG_CC_STDC) in au_exclude_list in tests/mktests.sh to fix the
> "make check" errors this causes.

Thanks, I just now pushed a patch to do that.


From MAILER-DAEMON Sat Oct 27 16:38:08 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TSD8y-0002m1-Ob
	for mharc-autoconf@gnu.org; Sat, 27 Oct 2012 16:38:08 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57310)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rleigh@codelibre.net>) id 1TSD8w-0002lG-PV
	for autoconf@gnu.org; Sat, 27 Oct 2012 16:38:07 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rleigh@codelibre.net>) id 1TSD8v-00083T-RI
	for autoconf@gnu.org; Sat, 27 Oct 2012 16:38:06 -0400
Received: from nagini.codelibre.net ([80.68.93.164]:41175)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rleigh@codelibre.net>) id 1TSD8v-00083N-LU
	for autoconf@gnu.org; Sat, 27 Oct 2012 16:38:05 -0400
Received: by nagini.codelibre.net (Postfix, from userid 1000)
	id 751D9183C1; Sat, 27 Oct 2012 21:38:03 +0100 (BST)
Date: Sat, 27 Oct 2012 21:38:03 +0100
From: Roger Leigh <rleigh@codelibre.net>
To: autoconf@gnu.org
Subject: Selecting a C++ standard
Message-ID: <20121027203803.GZ18133@codelibre.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1)
X-Received-From: 80.68.93.164
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Oct 2012 20:38:07 -0000

Hi folks,

A while back now, I wrote the AC_PROG_CC_C89 and AC_PROG_CC_C99
macros (and I see now there's a C11 variant--nice!) to select
the standard mode used by the C compiler.

However, it does not appear that an equivalent facility exists
for the C++ compiler, despite g++ supporting an equivalent
set of -std options.  It would be nice if these could be
exposed via an equivalent set of autoconf macros.

Is anyone working on such a thing?  I see that there are a
couple of macros in the autoconf archive, but are not very
comprehensive (GCC only).  I'm willing to do this if no one is
already looking at this.

I would propose to add:

AC_PROG_CXX_STDCXX
AC_PROG_CXX_CXX98
AC_PROG_CXX_CXXTR1 [CXX98 with additional checks for TR1 headers]
AC_PROG_CXX_CXX11

With behaviour the same as the existing C macros.

I only have access to GCC, so if anyone could provide some
information on how to put the other vendor compilers into
the above modes (as we do for the C89/99 macros), that would
be much appreciated.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux    http://people.debian.org/~rleigh/
 `. `'   schroot and sbuild  http://alioth.debian.org/projects/buildd-tools
   `-    GPG Public Key      F33D 281D 470A B443 6756 147C 07B3 C8BC 4083 E800


From MAILER-DAEMON Sat Oct 27 16:56:02 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TSDQI-0004Ue-Nv
	for mharc-autoconf@gnu.org; Sat, 27 Oct 2012 16:56:02 -0400
Received: from eggs.gnu.org ([208.118.235.92]:35835)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1TSDQG-0004UY-Ab
	for autoconf@gnu.org; Sat, 27 Oct 2012 16:56:00 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1TSDQF-0004Qh-JX
	for autoconf@gnu.org; Sat, 27 Oct 2012 16:56:00 -0400
Received: from smtp.cs.ucla.edu ([131.179.128.62]:33286)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1TSDQF-0004Qd-Dz
	for autoconf@gnu.org; Sat, 27 Oct 2012 16:55:59 -0400
Received: from localhost (localhost.localdomain [127.0.0.1])
	by smtp.cs.ucla.edu (Postfix) with ESMTP id 28EFFA6000C;
	Sat, 27 Oct 2012 13:55:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu
Received: from smtp.cs.ucla.edu ([127.0.0.1])
	by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 5KCMz3jmk3M1; Sat, 27 Oct 2012 13:55:57 -0700 (PDT)
Received: from [192.168.1.3] (pool-108-23-119-2.lsanca.fios.verizon.net
	[108.23.119.2])
	by smtp.cs.ucla.edu (Postfix) with ESMTPSA id CF6A7A60008;
	Sat, 27 Oct 2012 13:55:57 -0700 (PDT)
Message-ID: <508C4A5E.3090905@cs.ucla.edu>
Date: Sat, 27 Oct 2012 13:55:58 -0700
From: Paul Eggert <eggert@cs.ucla.edu>
Organization: UCLA Computer Science Department
User-Agent: Mozilla/5.0 (X11; Linux i686;
	rv:16.0) Gecko/20121011 Thunderbird/16.0.1
MIME-Version: 1.0
To: Roger Leigh <rleigh@codelibre.net>
Subject: Re: Selecting a C++ standard
References: <20121027203803.GZ18133@codelibre.net>
In-Reply-To: <20121027203803.GZ18133@codelibre.net>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 131.179.128.62
Cc: autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Oct 2012 20:56:01 -0000

On 10/27/2012 01:38 PM, Roger Leigh wrote:
> Is anyone working on such a thing?

Not that I know of.

For C, we're deprecating the "I want version X"
macros in favor of just AC_PROG_CC_STDC, which says
"I want the latest version".  You might want to do
that for C++ to, as it's more the Autoconf Way.


From MAILER-DAEMON Sat Oct 27 17:05:13 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TSDZB-0005UC-8l
	for mharc-autoconf@gnu.org; Sat, 27 Oct 2012 17:05:13 -0400
Received: from eggs.gnu.org ([208.118.235.92]:52337)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <stenn@stenn.ntp.org>) id 1TSDZ9-0005U6-OD
	for autoconf@gnu.org; Sat, 27 Oct 2012 17:05:12 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <stenn@stenn.ntp.org>) id 1TSDZ8-0006e3-Nw
	for autoconf@gnu.org; Sat, 27 Oct 2012 17:05:11 -0400
Received: from stenn.ntp.org ([149.20.68.30]:33522)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <stenn@stenn.ntp.org>) id 1TSDZ8-0006SK-IY
	for autoconf@gnu.org; Sat, 27 Oct 2012 17:05:10 -0400
Received: from localhost.ntp.org ([::1] helo=stenn.ntp.org)
	by stenn.ntp.org with esmtp (Exim 4.80 (FreeBSD))
	(envelope-from <stenn@stenn.ntp.org>)
	id 1TSDYz-00098M-Cp; Sat, 27 Oct 2012 14:05:01 -0700
To: Paul Eggert <eggert@cs.ucla.edu>
Subject: Re: Selecting a C++ standard
In-reply-to: <508C4A5E.3090905@cs.ucla.edu>
References: <20121027203803.GZ18133@codelibre.net>
	<508C4A5E.3090905@cs.ucla.edu>
Comments: In-reply-to Paul Eggert <eggert@cs.ucla.edu>
	message dated "Sat, 27 Oct 2012 13:55:58 -0700."
X-Mailer: MH-E 7.4.2; nmh 1.4; XEmacs 21.4 (patch 22)
Mime-Version: 1.0 (generated by tm-edit 1.8)
Content-Type: text/plain; charset=US-ASCII
Date: Sat, 27 Oct 2012 14:05:01 -0700
From: Harlan Stenn <stenn@ntp.org>
Message-Id: <E1TSDYz-00098M-Cp@stenn.ntp.org>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 149.20.68.30
Cc: Roger Leigh <rleigh@codelibre.net>, autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Oct 2012 21:05:12 -0000

Paul Eggert writes:
> On 10/27/2012 01:38 PM, Roger Leigh wrote:
> > Is anyone working on such a thing?
> 
> Not that I know of.
> 
> For C, we're deprecating the "I want version X"
> macros in favor of just AC_PROG_CC_STDC, which says
> "I want the latest version".  You might want to do
> that for C++ to, as it's more the Autoconf Way.

This is good news/bad news, IMO.

It means that if I want to do compliance testing to make sure a package
builds under a variety of compilers I have to do work "outside" of
autoconf to make that happen.

It also means that the installed STDC may be too old for what I want I
have to do other checks to make sure the installed STDC is sufficient.

It might be good to be able to say "at least C89".

And I'm also aware that some of the issues above need to be solved by
making sure the toolchain visible to configure contain the tools that
we want configure to actually use.

H


From MAILER-DAEMON Sat Oct 27 17:47:55 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TSEEV-0006v0-Vf
	for mharc-autoconf@gnu.org; Sat, 27 Oct 2012 17:47:55 -0400
Received: from eggs.gnu.org ([208.118.235.92]:51536)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rleigh@codelibre.net>) id 1TSEET-0006us-T1
	for autoconf@gnu.org; Sat, 27 Oct 2012 17:47:54 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rleigh@codelibre.net>) id 1TSEES-0001EI-EE
	for autoconf@gnu.org; Sat, 27 Oct 2012 17:47:53 -0400
Received: from nagini.codelibre.net ([80.68.93.164]:35446)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rleigh@codelibre.net>) id 1TSEES-0001EC-7s
	for autoconf@gnu.org; Sat, 27 Oct 2012 17:47:52 -0400
Received: by nagini.codelibre.net (Postfix, from userid 1000)
	id A4024183C1; Sat, 27 Oct 2012 22:47:50 +0100 (BST)
Date: Sat, 27 Oct 2012 22:47:50 +0100
From: Roger Leigh <rleigh@codelibre.net>
To: autoconf@gnu.org
Subject: Re: Selecting a C++ standard
Message-ID: <20121027214750.GB18133@codelibre.net>
References: <20121027203803.GZ18133@codelibre.net>
	<508C4A5E.3090905@cs.ucla.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <508C4A5E.3090905@cs.ucla.edu>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1)
X-Received-From: 80.68.93.164
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Oct 2012 21:47:54 -0000

On Sat, Oct 27, 2012 at 01:55:58PM -0700, Paul Eggert wrote:
> On 10/27/2012 01:38 PM, Roger Leigh wrote:
> > Is anyone working on such a thing?
> 
> Not that I know of.
> 
> For C, we're deprecating the "I want version X"
> macros in favor of just AC_PROG_CC_STDC, which says
> "I want the latest version".  You might want to do
> that for C++ to, as it's more the Autoconf Way.

I agree that having AC_PROG_CC_STDC select the latest version is a
sensible default.

However, what do I do if I am making use of C99 features?  It
will probably fail if I'm using a feature that's not in a
traditional or C89 compiler.  But what if it's more subtle, if I'm
relying on a behaviour change in C99, and it compiles (but
incorrectly with C89)?  In this case, I would much rather tell
autoconf that I require a C99 compiler, and have it fail with
a useful error message during configure, rather than fail
during compilation or runtime with some unpredicable/obscure
error.

Maybe have an optional argument to AC_PROG_CC_STDC to select
the standard e.g.
  AC_PROG_CC_STDC([C99])
?

I originally wrote AC_PROC_CC_C99 because it was several years
since GCC supported C99, but there was no portable way to use
C99 features with projects using autoconf unless you added
horrible hacks.  We still have this situation for C++, and it
would be nice to solve it in a similar way to C.  I'm happy to
go with the new approach of a single macro, but I would be
interested to understand how the issues I outlined above square
with this.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux    http://people.debian.org/~rleigh/
 `. `'   schroot and sbuild  http://alioth.debian.org/projects/buildd-tools
   `-    GPG Public Key      F33D 281D 470A B443 6756 147C 07B3 C8BC 4083 E800


From MAILER-DAEMON Sat Oct 27 19:25:48 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TSFlE-0004GT-Tv
	for mharc-autoconf@gnu.org; Sat, 27 Oct 2012 19:25:48 -0400
Received: from eggs.gnu.org ([208.118.235.92]:43973)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TSFlC-0004Be-JL
	for autoconf@gnu.org; Sat, 27 Oct 2012 19:25:47 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TSFlA-0001YA-Se
	for autoconf@gnu.org; Sat, 27 Oct 2012 19:25:46 -0400
Received: from filtteri6.pp.htv.fi ([213.243.153.189]:42820)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TSFlA-0001XD-LG
	for autoconf@gnu.org; Sat, 27 Oct 2012 19:25:44 -0400
Received: from localhost (localhost [127.0.0.1])
	by filtteri6.pp.htv.fi (Postfix) with ESMTP id 0AA7F56E5CB;
	Sun, 28 Oct 2012 02:25:20 +0300 (EEST)
X-Virus-Scanned: Debian amavisd-new at pp.htv.fi
Received: from smtp4.welho.com ([213.243.153.38])
	by localhost (filtteri6.pp.htv.fi [213.243.153.189]) (amavisd-new,
	port 10024)
	with ESMTP id 6TPWSn4x9TSP; Sun, 28 Oct 2012 02:25:18 +0300 (EEST)
Received: from bunk.dyndns.info (cs185055.pp.htv.fi [213.243.185.55])
	by smtp4.welho.com (Postfix) with ESMTP id ACC965BC005;
	Sun, 28 Oct 2012 02:25:18 +0300 (EEST)
Date: Sun, 28 Oct 2012 02:24:55 +0300
From: Adrian Bunk <bunk@stusta.de>
To: Paul Eggert <eggert@cs.ucla.edu>
Subject: Re: Selecting a C++ standard
Message-ID: <20121027232454.GB25162@bunk.dyndns.info>
References: <20121027203803.GZ18133@codelibre.net>
	<508C4A5E.3090905@cs.ucla.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <508C4A5E.3090905@cs.ucla.edu>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 213.243.153.189
Cc: Roger Leigh <rleigh@codelibre.net>, autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Oct 2012 23:25:47 -0000

On Sat, Oct 27, 2012 at 01:55:58PM -0700, Paul Eggert wrote:
> On 10/27/2012 01:38 PM, Roger Leigh wrote:
> > Is anyone working on such a thing?
> 
> Not that I know of.
> 
> For C, we're deprecating the "I want version X"
> macros in favor of just AC_PROG_CC_STDC, which says
> "I want the latest version".  You might want to do
> that for C++ to, as it's more the Autoconf Way.

AC_PROG_CC_STDC has been marked as obsolete, AC_PROG_CC is the macro you 
had in mind.

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed



From MAILER-DAEMON Sat Oct 27 19:45:05 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TSG3t-0006l7-9E
	for mharc-autoconf@gnu.org; Sat, 27 Oct 2012 19:45:05 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57306)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TSG3p-0006h4-QX
	for autoconf@gnu.org; Sat, 27 Oct 2012 19:45:02 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TSG3m-00067n-LT
	for autoconf@gnu.org; Sat, 27 Oct 2012 19:45:01 -0400
Received: from filtteri1.pp.htv.fi ([213.243.153.184]:36961)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TSG3m-00067f-EK
	for autoconf@gnu.org; Sat, 27 Oct 2012 19:44:58 -0400
Received: from localhost (localhost [127.0.0.1])
	by filtteri1.pp.htv.fi (Postfix) with ESMTP id 415EC21B2EA;
	Sun, 28 Oct 2012 02:44:57 +0300 (EEST)
X-Virus-Scanned: Debian amavisd-new at pp.htv.fi
Received: from smtp6.welho.com ([213.243.153.40])
	by localhost (filtteri1.pp.htv.fi [213.243.153.184]) (amavisd-new,
	port 10024)
	with ESMTP id oegSH+cwWQ+t; Sun, 28 Oct 2012 02:44:56 +0300 (EEST)
Received: from bunk.dyndns.info (cs185055.pp.htv.fi [213.243.185.55])
	by smtp6.welho.com (Postfix) with ESMTP id E20EA5BC006;
	Sun, 28 Oct 2012 02:44:56 +0300 (EEST)
Date: Sun, 28 Oct 2012 02:44:33 +0300
From: Adrian Bunk <bunk@stusta.de>
To: Harlan Stenn <stenn@ntp.org>
Subject: Re: Selecting a C++ standard
Message-ID: <20121027234432.GC25162@bunk.dyndns.info>
References: <20121027203803.GZ18133@codelibre.net>
	<508C4A5E.3090905@cs.ucla.edu> <E1TSDYz-00098M-Cp@stenn.ntp.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <E1TSDYz-00098M-Cp@stenn.ntp.org>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 213.243.153.184
Cc: Roger Leigh <rleigh@codelibre.net>, Paul Eggert <eggert@cs.ucla.edu>,
	autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Oct 2012 23:45:02 -0000

On Sat, Oct 27, 2012 at 02:05:01PM -0700, Harlan Stenn wrote:
> Paul Eggert writes:
> > On 10/27/2012 01:38 PM, Roger Leigh wrote:
> > > Is anyone working on such a thing?
> > 
> > Not that I know of.
> > 
> > For C, we're deprecating the "I want version X"
> > macros in favor of just AC_PROG_CC_STDC, which says
> > "I want the latest version".  You might want to do
> > that for C++ to, as it's more the Autoconf Way.
> 
> This is good news/bad news, IMO.
> 
> It means that if I want to do compliance testing to make sure a package
> builds under a variety of compilers I have to do work "outside" of
> autoconf to make that happen.

I don't understand the problem you are trying to describe.

> It also means that the installed STDC may be too old for what I want I
> have to do other checks to make sure the installed STDC is sufficient.
> 
> It might be good to be able to say "at least C89".

Current autoconf git gives you "as high as possible".

"at least C89" can anyway be assumed today.

How to test for what you need (also allowing you to abort configure if 
something you need is not supported) is a separate issue.

> And I'm also aware that some of the issues above need to be solved by
> making sure the toolchain visible to configure contain the tools that
> we want configure to actually use.
> 
> H

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed



From MAILER-DAEMON Sat Oct 27 19:58:20 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TSGGi-0000St-I2
	for mharc-autoconf@gnu.org; Sat, 27 Oct 2012 19:58:20 -0400
Received: from eggs.gnu.org ([208.118.235.92]:52555)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <stenn@stenn.ntp.org>) id 1TSGGg-0000Sk-Ny
	for autoconf@gnu.org; Sat, 27 Oct 2012 19:58:19 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <stenn@stenn.ntp.org>) id 1TSGGf-00011b-E1
	for autoconf@gnu.org; Sat, 27 Oct 2012 19:58:18 -0400
Received: from stenn.ntp.org ([149.20.68.30]:64805)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <stenn@stenn.ntp.org>) id 1TSGGf-00011R-7o
	for autoconf@gnu.org; Sat, 27 Oct 2012 19:58:17 -0400
Received: from localhost.ntp.org ([::1] helo=stenn.ntp.org)
	by stenn.ntp.org with esmtp (Exim 4.80 (FreeBSD))
	(envelope-from <stenn@stenn.ntp.org>)
	id 1TSGGX-0009HB-Vh; Sat, 27 Oct 2012 16:58:09 -0700
To: Adrian Bunk <bunk@stusta.de>
Subject: Re: Selecting a C++ standard
In-reply-to: <20121027234432.GC25162@bunk.dyndns.info>
References: <20121027203803.GZ18133@codelibre.net>
	<508C4A5E.3090905@cs.ucla.edu> <E1TSDYz-00098M-Cp@stenn.ntp.org>
	<20121027234432.GC25162@bunk.dyndns.info>
Comments: In-reply-to Adrian Bunk <bunk@stusta.de>
	message dated "Sun, 28 Oct 2012 02:44:33 +0300."
X-Mailer: MH-E 7.4.2; nmh 1.4; XEmacs 21.4 (patch 22)
Mime-Version: 1.0 (generated by tm-edit 1.8)
Content-Type: text/plain; charset=US-ASCII
Date: Sat, 27 Oct 2012 16:58:09 -0700
From: Harlan Stenn <stenn@ntp.org>
Message-Id: <E1TSGGX-0009HB-Vh@stenn.ntp.org>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 149.20.68.30
Cc: Harlan Stenn <stenn@ntp.org>, Paul Eggert <eggert@cs.ucla.edu>,
	autoconf@gnu.org, Roger Leigh <rleigh@codelibre.net>
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Oct 2012 23:58:19 -0000

Adrian Bunk writes:
> On Sat, Oct 27, 2012 at 02:05:01PM -0700, Harlan Stenn wrote:
> > Paul Eggert writes:
> > > For C, we're deprecating the "I want version X"
> > > macros in favor of just AC_PROG_CC_STDC, which says
> > > "I want the latest version".  You might want to do
> > > that for C++ to, as it's more the Autoconf Way.
> > 
> > This is good news/bad news, IMO.
> > 
> > It means that if I want to do compliance testing to make sure a package
> > builds under a variety of compilers I have to do work "outside" of
> > autoconf to make that happen.
> 
> I don't understand the problem you are trying to describe.

If I have software that is supposed to be buildable by C89 or later,
then this software must be built using a variety of (versions of)
compilers to make sure  this is true.  A developer using a more recent C
compiler may unknowlingly add code that requires a newer compiler.

> > It also means that the installed STDC may be too old for what I want I
> > have to do other checks to make sure the installed STDC is sufficient.
> > 
> > It might be good to be able to say "at least C89".
> 
> Current autoconf git gives you "as high as possible".

Sure, and as I've been saying, that's not always what  somebody wants.

Separate "mechanism" from "policy".

You seem to be saying your policy will work for everybody...

> "at least C89" can anyway be assumed today.

Probably...

> How to test for what you need (also allowing you to abort configure if 
> something you need is not supported) is a separate issue.

There is a difference between ignoring a problem and making a problem
you don't have harder to solve for those folks who *do* have to think
about it.

H


From MAILER-DAEMON Sat Oct 27 20:00:29 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TSGIn-0000pH-UP
	for mharc-autoconf@gnu.org; Sat, 27 Oct 2012 20:00:29 -0400
Received: from eggs.gnu.org ([208.118.235.92]:36301)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TSGIm-0000ow-3D
	for autoconf@gnu.org; Sat, 27 Oct 2012 20:00:29 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TSGIk-00020h-NW
	for autoconf@gnu.org; Sat, 27 Oct 2012 20:00:28 -0400
Received: from filtteri6.pp.htv.fi ([213.243.153.189]:49139)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TSGIk-00020N-Gb
	for autoconf@gnu.org; Sat, 27 Oct 2012 20:00:26 -0400
Received: from localhost (localhost [127.0.0.1])
	by filtteri6.pp.htv.fi (Postfix) with ESMTP id 5EC8556E5D4;
	Sun, 28 Oct 2012 03:00:25 +0300 (EEST)
X-Virus-Scanned: Debian amavisd-new at pp.htv.fi
Received: from smtp5.welho.com ([213.243.153.39])
	by localhost (filtteri6.pp.htv.fi [213.243.153.189]) (amavisd-new,
	port 10024)
	with ESMTP id 7XR72mZl3e0c; Sun, 28 Oct 2012 03:00:25 +0300 (EEST)
Received: from bunk.dyndns.info (cs185055.pp.htv.fi [213.243.185.55])
	by smtp5.welho.com (Postfix) with ESMTP id 147485BC003;
	Sun, 28 Oct 2012 03:00:25 +0300 (EEST)
Date: Sun, 28 Oct 2012 03:00:01 +0300
From: Adrian Bunk <bunk@stusta.de>
To: Roger Leigh <rleigh@codelibre.net>
Subject: Re: Selecting a C++ standard
Message-ID: <20121028000000.GD25162@bunk.dyndns.info>
References: <20121027203803.GZ18133@codelibre.net>
	<508C4A5E.3090905@cs.ucla.edu>
	<20121027214750.GB18133@codelibre.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <20121027214750.GB18133@codelibre.net>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 213.243.153.189
Cc: autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 28 Oct 2012 00:00:29 -0000

On Sat, Oct 27, 2012 at 10:47:50PM +0100, Roger Leigh wrote:
> On Sat, Oct 27, 2012 at 01:55:58PM -0700, Paul Eggert wrote:
> > On 10/27/2012 01:38 PM, Roger Leigh wrote:
> > > Is anyone working on such a thing?
> > 
> > Not that I know of.
> > 
> > For C, we're deprecating the "I want version X"
> > macros in favor of just AC_PROG_CC_STDC, which says
> > "I want the latest version".  You might want to do
> > that for C++ to, as it's more the Autoconf Way.
> 
> I agree that having AC_PROG_CC_STDC select the latest version is a
> sensible default.
> 
> However, what do I do if I am making use of C99 features?  It
> will probably fail if I'm using a feature that's not in a
> traditional or C89 compiler.  But what if it's more subtle, if I'm
> relying on a behaviour change in C99, and it compiles (but
> incorrectly with C89)?  In this case, I would much rather tell
> autoconf that I require a C99 compiler, and have it fail with
> a useful error message during configure, rather than fail
> during compilation or runtime with some unpredicable/obscure
> error.

Testing for features is a problem separate from compiler mode setting.

Just like AC_PROG_CC_C99 didn't ensure a C99 compiler, you always have 
to check ac_cv_prog_cc_c99.

> Maybe have an optional argument to AC_PROG_CC_STDC to select
> the standard e.g.
>   AC_PROG_CC_STDC([C99])
> ?

Latest discussion result was that there is no downside of setting the 
compiler to the highest mode possible.

And as said above, feature testing is a separate issue.

> I originally wrote AC_PROC_CC_C99 because it was several years
> since GCC supported C99, but there was no portable way to use
> C99 features with projects using autoconf unless you added
> horrible hacks.  We still have this situation for C++, and it
> would be nice to solve it in a similar way to C.  I'm happy to
> go with the new approach of a single macro, but I would be
> interested to understand how the issues I outlined above square
> with this.

The main worry would actually be whether a compiler in C++11 mode might 
reject any existing C++03 code.

> Regards,
> Roger

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed



From MAILER-DAEMON Sat Oct 27 20:07:10 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TSGPG-0002CC-OI
	for mharc-autoconf@gnu.org; Sat, 27 Oct 2012 20:07:10 -0400
Received: from eggs.gnu.org ([208.118.235.92]:56861)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <stenn@stenn.ntp.org>) id 1TSGPE-0002Ax-EE
	for autoconf@gnu.org; Sat, 27 Oct 2012 20:07:09 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <stenn@stenn.ntp.org>) id 1TSGPD-0003Sy-FT
	for autoconf@gnu.org; Sat, 27 Oct 2012 20:07:08 -0400
Received: from stenn.ntp.org ([149.20.68.30]:32729)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <stenn@stenn.ntp.org>) id 1TSGPD-0003Su-9r
	for autoconf@gnu.org; Sat, 27 Oct 2012 20:07:07 -0400
Received: from localhost.ntp.org ([::1] helo=stenn.ntp.org)
	by stenn.ntp.org with esmtp (Exim 4.80 (FreeBSD))
	(envelope-from <stenn@stenn.ntp.org>)
	id 1TSGPA-0009IO-V6; Sat, 27 Oct 2012 17:07:04 -0700
To: Adrian Bunk <bunk@stusta.de>
Subject: Re: Selecting a C++ standard
In-reply-to: <20121028000000.GD25162@bunk.dyndns.info>
References: <20121027203803.GZ18133@codelibre.net>
	<508C4A5E.3090905@cs.ucla.edu>
	<20121027214750.GB18133@codelibre.net>
	<20121028000000.GD25162@bunk.dyndns.info>
Comments: In-reply-to Adrian Bunk <bunk@stusta.de>
	message dated "Sun, 28 Oct 2012 03:00:01 +0300."
X-Mailer: MH-E 7.4.2; nmh 1.4; XEmacs 21.4 (patch 22)
Mime-Version: 1.0 (generated by tm-edit 1.8)
Content-Type: text/plain; charset=US-ASCII
Date: Sat, 27 Oct 2012 17:07:04 -0700
From: Harlan Stenn <stenn@ntp.org>
Message-Id: <E1TSGPA-0009IO-V6@stenn.ntp.org>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 149.20.68.30
Cc: Roger Leigh <rleigh@codelibre.net>, autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 28 Oct 2012 00:07:09 -0000

Adrian Bunk writes:
> On Sat, Oct 27, 2012 at 10:47:50PM +0100, Roger Leigh wrote:
> > Maybe have an optional argument to AC_PROG_CC_STDC to select
> > the standard e.g.
> >   AC_PROG_CC_STDC([C99])
> > ?

I like this idea.

> Latest discussion result was that there is no downside of setting the
> compiler to the highest mode possible.

Then that discussion was incomplete.

If I must ensure that a package requires a given "level" of STDC, then
configure MUST NOT decide any other "level" is OK.

> And as said above, feature testing is a separate issue.

that doesn't mean it is by definition OK to ignore this point.

> > I originally wrote AC_PROC_CC_C99 because it was several years
> > since GCC supported C99, but there was no portable way to use
> > C99 features with projects using autoconf unless you added
> > horrible hacks.  We still have this situation for C++, and it
> > would be nice to solve it in a similar way to C.  I'm happy to
> > go with the new approach of a single macro, but I would be
> > interested to understand how the issues I outlined above square
> > with this.
> 
> The main worry would actually be whether a compiler in C++11 mode might 
> reject any existing C++03 code.

I submit you are still ignoring the other side of the problem, which
says "Make sure I am using a C++03 compiler so I can be sure that the
package builds with a C++03 compiler if that is all *somebody else* has."

H


From MAILER-DAEMON Sat Oct 27 20:52:19 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TSH6x-0006v4-Gy
	for mharc-autoconf@gnu.org; Sat, 27 Oct 2012 20:52:19 -0400
Received: from eggs.gnu.org ([208.118.235.92]:48114)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TSH6v-0006tS-2C
	for autoconf@gnu.org; Sat, 27 Oct 2012 20:52:18 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TSH6t-0007Be-P2
	for autoconf@gnu.org; Sat, 27 Oct 2012 20:52:16 -0400
Received: from filtteri6.pp.htv.fi ([213.243.153.189]:48214)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TSH6t-0007BP-EH
	for autoconf@gnu.org; Sat, 27 Oct 2012 20:52:15 -0400
Received: from localhost (localhost [127.0.0.1])
	by filtteri6.pp.htv.fi (Postfix) with ESMTP id D293C56E5E9;
	Sun, 28 Oct 2012 03:52:12 +0300 (EEST)
X-Virus-Scanned: Debian amavisd-new at pp.htv.fi
Received: from smtp4.welho.com ([213.243.153.38])
	by localhost (filtteri6.pp.htv.fi [213.243.153.189]) (amavisd-new,
	port 10024)
	with ESMTP id mgCfslzPGPiX; Sun, 28 Oct 2012 03:52:11 +0300 (EEST)
Received: from bunk.dyndns.info (cs185055.pp.htv.fi [213.243.185.55])
	by smtp4.welho.com (Postfix) with ESMTP id C956D5BC005;
	Sun, 28 Oct 2012 03:52:11 +0300 (EEST)
Date: Sun, 28 Oct 2012 03:51:48 +0300
From: Adrian Bunk <bunk@stusta.de>
To: Harlan Stenn <stenn@ntp.org>
Subject: Re: Selecting a C++ standard
Message-ID: <20121028005145.GE25162@bunk.dyndns.info>
References: <20121027203803.GZ18133@codelibre.net>
	<508C4A5E.3090905@cs.ucla.edu> <E1TSDYz-00098M-Cp@stenn.ntp.org>
	<20121027234432.GC25162@bunk.dyndns.info>
	<E1TSGGX-0009HB-Vh@stenn.ntp.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <E1TSGGX-0009HB-Vh@stenn.ntp.org>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 213.243.153.189
Cc: Roger Leigh <rleigh@codelibre.net>, Paul Eggert <eggert@cs.ucla.edu>,
	autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 28 Oct 2012 00:52:18 -0000

On Sat, Oct 27, 2012 at 04:58:09PM -0700, Harlan Stenn wrote:
> Adrian Bunk writes:
> > On Sat, Oct 27, 2012 at 02:05:01PM -0700, Harlan Stenn wrote:
> > > Paul Eggert writes:
> > > > For C, we're deprecating the "I want version X"
> > > > macros in favor of just AC_PROG_CC_STDC, which says
> > > > "I want the latest version".  You might want to do
> > > > that for C++ to, as it's more the Autoconf Way.
> > > 
> > > This is good news/bad news, IMO.
> > > 
> > > It means that if I want to do compliance testing to make sure a package
> > > builds under a variety of compilers I have to do work "outside" of
> > > autoconf to make that happen.
> > 
> > I don't understand the problem you are trying to describe.
> 
> If I have software that is supposed to be buildable by C89 or later,
> then this software must be built using a variety of (versions of)
> compilers to make sure  this is true.

Real "buildable by C89 or later" is rarely used, since due to lack of 
long long you have no guaranteed 64bit integer type in C89.

> A developer using a more recent C
> compiler may unknowlingly add code that requires a newer compiler.

This problem can anyway not be completely solved that way, since a more 
recent version of a compiler might e.g. support more C99 features in 
it's C99 mode than older versions in C99 mode.

> > > It also means that the installed STDC may be too old for what I want I
> > > have to do other checks to make sure the installed STDC is sufficient.
> > > 
> > > It might be good to be able to say "at least C89".
> > 
> > Current autoconf git gives you "as high as possible".
> 
> Sure, and as I've been saying, that's not always what  somebody wants.
> 
> Separate "mechanism" from "policy".
> 
> You seem to be saying your policy will work for everybody...

There already were lengthy discussions on that here.

It might become tricky to handle cases like [1], where some random macro
(which you might be using indirectly) rightfully demands that the C89 
mode of the compiler is not enough for it.

Are all your use cases solved with a --disable-compiler-mode-setting
flag to configure?

> > "at least C89" can anyway be assumed today.
> 
> Probably...
> 
> > How to test for what you need (also allowing you to abort configure if 
> > something you need is not supported) is a separate issue.
> 
> There is a difference between ignoring a problem and making a problem
> you don't have harder to solve for those folks who *do* have to think
> about it.

No, these simply are separate issues.

As an example, no version of gcc so far completely supports C99 [2],
and even less does gcc completely support C11.

autoconf can set the compiler into C99 or C11 mode for you.

But that doesn't answer the question whether the compiler supports all 
C99 or C11 features you need, since that depends on what features you
use in your code.

> H

cu
Adrian

[1] http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4/ax_c99_inline.m4
[2] http://gcc.gnu.org/c99status.html

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed



From MAILER-DAEMON Sat Oct 27 20:59:28 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TSHDs-0008Lj-MB
	for mharc-autoconf@gnu.org; Sat, 27 Oct 2012 20:59:28 -0400
Received: from eggs.gnu.org ([208.118.235.92]:50598)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <stenn@stenn.ntp.org>) id 1TSHDq-0008L3-S0
	for autoconf@gnu.org; Sat, 27 Oct 2012 20:59:27 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <stenn@stenn.ntp.org>) id 1TSHDq-0000co-3q
	for autoconf@gnu.org; Sat, 27 Oct 2012 20:59:26 -0400
Received: from stenn.ntp.org ([149.20.68.30]:30664)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <stenn@stenn.ntp.org>) id 1TSHDp-0000cY-UX
	for autoconf@gnu.org; Sat, 27 Oct 2012 20:59:26 -0400
Received: from localhost.ntp.org ([::1] helo=stenn.ntp.org)
	by stenn.ntp.org with esmtp (Exim 4.80 (FreeBSD))
	(envelope-from <stenn@stenn.ntp.org>)
	id 1TSHDn-0009Kp-83; Sat, 27 Oct 2012 17:59:23 -0700
To: Adrian Bunk <bunk@stusta.de>
Subject: Re: Selecting a C++ standard
In-reply-to: <20121028005145.GE25162@bunk.dyndns.info>
References: <20121027203803.GZ18133@codelibre.net>
	<508C4A5E.3090905@cs.ucla.edu> <E1TSDYz-00098M-Cp@stenn.ntp.org>
	<20121027234432.GC25162@bunk.dyndns.info>
	<E1TSGGX-0009HB-Vh@stenn.ntp.org>
	<20121028005145.GE25162@bunk.dyndns.info>
Comments: In-reply-to Adrian Bunk <bunk@stusta.de>
	message dated "Sun, 28 Oct 2012 03:51:48 +0300."
X-Mailer: MH-E 7.4.2; nmh 1.4; XEmacs 21.4 (patch 22)
Mime-Version: 1.0 (generated by tm-edit 1.8)
Content-Type: text/plain; charset=US-ASCII
Date: Sat, 27 Oct 2012 17:59:23 -0700
From: Harlan Stenn <stenn@ntp.org>
Message-Id: <E1TSHDn-0009Kp-83@stenn.ntp.org>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 149.20.68.30
Cc: Harlan Stenn <stenn@ntp.org>, Paul Eggert <eggert@cs.ucla.edu>,
	autoconf@gnu.org, Roger Leigh <rleigh@codelibre.net>
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 28 Oct 2012 00:59:27 -0000

Adrian,

I don't think either one of us will convince the other.

I'm done.

H


From MAILER-DAEMON Sat Oct 27 21:12:19 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TSHQJ-0001Bj-5U
	for mharc-autoconf@gnu.org; Sat, 27 Oct 2012 21:12:19 -0400
Received: from eggs.gnu.org ([208.118.235.92]:55702)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TSHQH-00019L-A1
	for autoconf@gnu.org; Sat, 27 Oct 2012 21:12:18 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TSHQG-00047m-De
	for autoconf@gnu.org; Sat, 27 Oct 2012 21:12:17 -0400
Received: from filtteri6.pp.htv.fi ([213.243.153.189]:38907)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TSHQG-00047e-6i
	for autoconf@gnu.org; Sat, 27 Oct 2012 21:12:16 -0400
Received: from localhost (localhost [127.0.0.1])
	by filtteri6.pp.htv.fi (Postfix) with ESMTP id 1D96E56E5ED;
	Sun, 28 Oct 2012 03:12:15 +0200 (EET)
X-Virus-Scanned: Debian amavisd-new at pp.htv.fi
Received: from smtp6.welho.com ([213.243.153.40])
	by localhost (filtteri6.pp.htv.fi [213.243.153.189]) (amavisd-new,
	port 10024)
	with ESMTP id aTcq++PUMMN9; Sun, 28 Oct 2012 03:12:14 +0200 (EET)
Received: from bunk.dyndns.info (cs185055.pp.htv.fi [213.243.185.55])
	by smtp6.welho.com (Postfix) with ESMTP id B5D195BC003;
	Sun, 28 Oct 2012 03:12:14 +0200 (EET)
Date: Sun, 28 Oct 2012 03:11:50 +0200
From: Adrian Bunk <bunk@stusta.de>
To: Harlan Stenn <stenn@ntp.org>
Subject: Re: Selecting a C++ standard
Message-ID: <20121028011150.GF25162@bunk.dyndns.info>
References: <20121027203803.GZ18133@codelibre.net>
	<508C4A5E.3090905@cs.ucla.edu>
	<20121027214750.GB18133@codelibre.net>
	<20121028000000.GD25162@bunk.dyndns.info>
	<E1TSGPA-0009IO-V6@stenn.ntp.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <E1TSGPA-0009IO-V6@stenn.ntp.org>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 213.243.153.189
Cc: Roger Leigh <rleigh@codelibre.net>, autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 28 Oct 2012 01:12:18 -0000

On Sat, Oct 27, 2012 at 05:07:04PM -0700, Harlan Stenn wrote:
> Adrian Bunk writes:
> > On Sat, Oct 27, 2012 at 10:47:50PM +0100, Roger Leigh wrote:
>...
> > > I originally wrote AC_PROC_CC_C99 because it was several years
> > > since GCC supported C99, but there was no portable way to use
> > > C99 features with projects using autoconf unless you added
> > > horrible hacks.  We still have this situation for C++, and it
> > > would be nice to solve it in a similar way to C.  I'm happy to
> > > go with the new approach of a single macro, but I would be
> > > interested to understand how the issues I outlined above square
> > > with this.
> > 
> > The main worry would actually be whether a compiler in C++11 mode might 
> > reject any existing C++03 code.
> 
> I submit you are still ignoring the other side of the problem, which
> says "Make sure I am using a C++03 compiler so I can be sure that the
> package builds with a C++03 compiler if that is all *somebody else* has."

Assuming all C++03 compilers support the complete standard is a quite
unrealistic assumption.

E.g. gcc does not support the complete C++98 or C++03 standards, and 
AFAIK there are no plans that it ever will.

> H

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed



From MAILER-DAEMON Sat Oct 27 21:16:44 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TSHUa-00025l-La
	for mharc-autoconf@gnu.org; Sat, 27 Oct 2012 21:16:44 -0400
Received: from eggs.gnu.org ([208.118.235.92]:41895)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TSHUY-00025W-IK
	for autoconf@gnu.org; Sat, 27 Oct 2012 21:16:43 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TSHUX-0005Kq-K6
	for autoconf@gnu.org; Sat, 27 Oct 2012 21:16:42 -0400
Received: from filtteri6.pp.htv.fi ([213.243.153.189]:38995)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TSHUX-0005Kl-DJ
	for autoconf@gnu.org; Sat, 27 Oct 2012 21:16:41 -0400
Received: from localhost (localhost [127.0.0.1])
	by filtteri6.pp.htv.fi (Postfix) with ESMTP id E930256E5F2;
	Sun, 28 Oct 2012 03:16:40 +0200 (EET)
X-Virus-Scanned: Debian amavisd-new at pp.htv.fi
Received: from smtp5.welho.com ([213.243.153.39])
	by localhost (filtteri6.pp.htv.fi [213.243.153.189]) (amavisd-new,
	port 10024)
	with ESMTP id 3Ni8LLWafoHm; Sun, 28 Oct 2012 03:16:40 +0200 (EET)
Received: from bunk.dyndns.info (cs185055.pp.htv.fi [213.243.185.55])
	by smtp5.welho.com (Postfix) with ESMTP id ACCB05BC004;
	Sun, 28 Oct 2012 03:16:40 +0200 (EET)
Date: Sun, 28 Oct 2012 03:16:16 +0200
From: Adrian Bunk <bunk@stusta.de>
To: Harlan Stenn <stenn@ntp.org>
Subject: Re: Selecting a C++ standard
Message-ID: <20121028011616.GG25162@bunk.dyndns.info>
References: <20121027203803.GZ18133@codelibre.net>
	<508C4A5E.3090905@cs.ucla.edu> <E1TSDYz-00098M-Cp@stenn.ntp.org>
	<20121027234432.GC25162@bunk.dyndns.info>
	<E1TSGGX-0009HB-Vh@stenn.ntp.org>
	<20121028005145.GE25162@bunk.dyndns.info>
	<E1TSHDn-0009Kp-83@stenn.ntp.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <E1TSHDn-0009Kp-83@stenn.ntp.org>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 213.243.153.189
Cc: Roger Leigh <rleigh@codelibre.net>, Paul Eggert <eggert@cs.ucla.edu>,
	autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 28 Oct 2012 01:16:43 -0000

On Sat, Oct 27, 2012 at 05:59:23PM -0700, Harlan Stenn wrote:
> Adrian,

Hi Harlan,

> I don't think either one of us will convince the other.
> 
> I'm done.

I'm surprised getting that as an answer to an email where I suggested a 
possible solution for your use cases.

> H

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed



From MAILER-DAEMON Sat Oct 27 21:25:07 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TSHch-0003Cu-0G
	for mharc-autoconf@gnu.org; Sat, 27 Oct 2012 21:25:07 -0400
Received: from eggs.gnu.org ([208.118.235.92]:43381)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <stenn@stenn.ntp.org>) id 1TSHcf-0003AR-3x
	for autoconf@gnu.org; Sat, 27 Oct 2012 21:25:06 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <stenn@stenn.ntp.org>) id 1TSHce-0007Oz-2g
	for autoconf@gnu.org; Sat, 27 Oct 2012 21:25:05 -0400
Received: from stenn.ntp.org ([149.20.68.30]:42572)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <stenn@stenn.ntp.org>) id 1TSHcd-0007NB-Sx
	for autoconf@gnu.org; Sat, 27 Oct 2012 21:25:04 -0400
Received: from localhost.ntp.org ([::1] helo=stenn.ntp.org)
	by stenn.ntp.org with esmtp (Exim 4.80 (FreeBSD))
	(envelope-from <stenn@stenn.ntp.org>)
	id 1TSHcc-0009N8-If; Sat, 27 Oct 2012 18:25:02 -0700
To: Adrian Bunk <bunk@stusta.de>
Subject: Re: Selecting a C++ standard
In-reply-to: <20121028011616.GG25162@bunk.dyndns.info>
References: <20121027203803.GZ18133@codelibre.net>
	<508C4A5E.3090905@cs.ucla.edu> <E1TSDYz-00098M-Cp@stenn.ntp.org>
	<20121027234432.GC25162@bunk.dyndns.info>
	<E1TSGGX-0009HB-Vh@stenn.ntp.org>
	<20121028005145.GE25162@bunk.dyndns.info>
	<E1TSHDn-0009Kp-83@stenn.ntp.org>
	<20121028011616.GG25162@bunk.dyndns.info>
Comments: In-reply-to Adrian Bunk <bunk@stusta.de>
	message dated "Sun, 28 Oct 2012 03:16:16 +0200."
X-Mailer: MH-E 7.4.2; nmh 1.4; XEmacs 21.4 (patch 22)
Mime-Version: 1.0 (generated by tm-edit 1.8)
Content-Type: text/plain; charset=US-ASCII
Date: Sat, 27 Oct 2012 18:25:02 -0700
From: Harlan Stenn <stenn@ntp.org>
Message-Id: <E1TSHcc-0009N8-If@stenn.ntp.org>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 149.20.68.30
Cc: Harlan Stenn <stenn@ntp.org>, Paul Eggert <eggert@cs.ucla.edu>,
	autoconf@gnu.org, Roger Leigh <rleigh@codelibre.net>
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 28 Oct 2012 01:25:06 -0000

Adrian Bunk writes:
> On Sat, Oct 27, 2012 at 05:59:23PM -0700, Harlan Stenn wrote:
> > Adrian,
> 
> Hi Harlan,
> 
> > I don't think either one of us will convince the other.
> > 
> > I'm done.
> 
> I'm surprised getting that as an answer to an email where I suggested a 
> possible solution for your use cases.

We appear to live in different worlds, with different goals and
different ideas about "spheres of influence".

H


From MAILER-DAEMON Sat Oct 27 21:45:08 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TSHw4-0006eF-Mc
	for mharc-autoconf@gnu.org; Sat, 27 Oct 2012 21:45:08 -0400
Received: from eggs.gnu.org ([208.118.235.92]:60421)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rra@stanford.edu>) id 1TSHw1-0006bX-Oi
	for autoconf@gnu.org; Sat, 27 Oct 2012 21:45:06 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rra@stanford.edu>) id 1TSHvz-0004hA-TI
	for autoconf@gnu.org; Sat, 27 Oct 2012 21:45:05 -0400
Received: from smtp1.stanford.edu ([171.67.219.81]:32875
	helo=smtp.stanford.edu) by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rra@stanford.edu>) id 1TSHvz-0004du-Na
	for autoconf@gnu.org; Sat, 27 Oct 2012 21:45:03 -0400
Received: from smtp.stanford.edu (localhost.localdomain [127.0.0.1])
	by localhost (Postfix) with SMTP id C7E6712D434
	for <autoconf@gnu.org>; Sat, 27 Oct 2012 18:45:01 -0700 (PDT)
Received: from windlord.stanford.edu (windlord.Stanford.EDU [171.67.225.134])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.stanford.edu (Postfix) with ESMTPS id A051F12D3B7
	for <autoconf@gnu.org>; Sat, 27 Oct 2012 18:45:01 -0700 (PDT)
Received: by windlord.stanford.edu (Postfix, from userid 1000)
	id 6D0102F4E8; Sat, 27 Oct 2012 18:45:01 -0700 (PDT)
From: Russ Allbery <rra@stanford.edu>
To: autoconf@gnu.org
Subject: Re: Selecting a C++ standard
In-Reply-To: <20121028005145.GE25162@bunk.dyndns.info> (Adrian Bunk's message
	of "Sun, 28 Oct 2012 03:51:48 +0300")
Organization: The Eyrie
References: <20121027203803.GZ18133@codelibre.net>
	<508C4A5E.3090905@cs.ucla.edu> <E1TSDYz-00098M-Cp@stenn.ntp.org>
	<20121027234432.GC25162@bunk.dyndns.info>
	<E1TSGGX-0009HB-Vh@stenn.ntp.org>
	<20121028005145.GE25162@bunk.dyndns.info>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)
Date: Sat, 27 Oct 2012 18:45:01 -0700
Message-ID: <87sj8zjroi.fsf@windlord.stanford.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 171.67.219.81
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 28 Oct 2012 01:45:07 -0000

Adrian Bunk <bunk@stusta.de> writes:

> Real "buildable by C89 or later" is rarely used, since due to lack of 
> long long you have no guaranteed 64bit integer type in C89.

Almost none of the software that I work on requires a 64-bit integer type.
(C89 or later is also my default target for the software I write.)

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>


From MAILER-DAEMON Sat Oct 27 22:06:12 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TSIGS-0001IV-Pb
	for mharc-autoconf@gnu.org; Sat, 27 Oct 2012 22:06:12 -0400
Received: from eggs.gnu.org ([208.118.235.92]:45096)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TSIGQ-0001IN-AT
	for autoconf@gnu.org; Sat, 27 Oct 2012 22:06:11 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TSIGO-0003Am-Vf
	for autoconf@gnu.org; Sat, 27 Oct 2012 22:06:10 -0400
Received: from filtteri5.pp.htv.fi ([213.243.153.188]:59288)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TSIGO-0003Ai-Os
	for autoconf@gnu.org; Sat, 27 Oct 2012 22:06:08 -0400
Received: from localhost (localhost [127.0.0.1])
	by filtteri5.pp.htv.fi (Postfix) with ESMTP id CA3845A661D;
	Sun, 28 Oct 2012 04:00:09 +0200 (EET)
X-Virus-Scanned: Debian amavisd-new at pp.htv.fi
Received: from smtp4.welho.com ([213.243.153.38])
	by localhost (filtteri5.pp.htv.fi [213.243.153.188]) (amavisd-new,
	port 10024)
	with ESMTP id 3ssVzrGbeyFp; Sun, 28 Oct 2012 04:00:07 +0200 (EET)
Received: from bunk.dyndns.info (cs185055.pp.htv.fi [213.243.185.55])
	by smtp4.welho.com (Postfix) with ESMTP id 5F8975BC005;
	Sun, 28 Oct 2012 04:00:07 +0200 (EET)
Date: Sun, 28 Oct 2012 03:59:43 +0200
From: Adrian Bunk <bunk@stusta.de>
To: Harlan Stenn <stenn@ntp.org>
Subject: Re: Selecting a C++ standard
Message-ID: <20121028015942.GH25162@bunk.dyndns.info>
References: <20121027203803.GZ18133@codelibre.net>
	<508C4A5E.3090905@cs.ucla.edu> <E1TSDYz-00098M-Cp@stenn.ntp.org>
	<20121027234432.GC25162@bunk.dyndns.info>
	<E1TSGGX-0009HB-Vh@stenn.ntp.org>
	<20121028005145.GE25162@bunk.dyndns.info>
	<E1TSHDn-0009Kp-83@stenn.ntp.org>
	<20121028011616.GG25162@bunk.dyndns.info>
	<E1TSHcc-0009N8-If@stenn.ntp.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <E1TSHcc-0009N8-If@stenn.ntp.org>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 213.243.153.188
Cc: Roger Leigh <rleigh@codelibre.net>, Paul Eggert <eggert@cs.ucla.edu>,
	autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 28 Oct 2012 02:06:11 -0000

On Sat, Oct 27, 2012 at 06:25:02PM -0700, Harlan Stenn wrote:
> Adrian Bunk writes:
> > On Sat, Oct 27, 2012 at 05:59:23PM -0700, Harlan Stenn wrote:
> > > Adrian,
> > 
> > Hi Harlan,
> > 
> > > I don't think either one of us will convince the other.
> > > 
> > > I'm done.
> > 
> > I'm surprised getting that as an answer to an email where I suggested a 
> > possible solution for your use cases.
> 
> We appear to live in different worlds, with different goals and
> different ideas about "spheres of influence".

I (only speaking for myself) have no goals in that area, and anyway 
nothing to decide here.

Perhaps I'm wrong on that, but at the moment my impression is that much 
of what you want is based on wrong assumptions, like that gcc in it's 
default gnu89 mode would reject non-C89 code, or that all C++03 
compilers would support the same subset of the C++03 standard.

And even if I'd be wrong on that, my impression is that what you have 
are quite unusual use cases.

I'm completely open to change my opinion based on arguments that 
convince me that I missed some problem so far, but you seem to run
away instead of properly explaining your problem.

> H

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed



From MAILER-DAEMON Sat Oct 27 22:50:24 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TSIxE-000705-KV
	for mharc-autoconf@gnu.org; Sat, 27 Oct 2012 22:50:24 -0400
Received: from eggs.gnu.org ([208.118.235.92]:34502)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TSIxC-0006zW-Bj
	for autoconf@gnu.org; Sat, 27 Oct 2012 22:50:23 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TSIxB-0005qm-7z
	for autoconf@gnu.org; Sat, 27 Oct 2012 22:50:22 -0400
Received: from filtteri5.pp.htv.fi ([213.243.153.188]:35613)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TSIxB-0005qO-0e
	for autoconf@gnu.org; Sat, 27 Oct 2012 22:50:21 -0400
Received: from localhost (localhost [127.0.0.1])
	by filtteri5.pp.htv.fi (Postfix) with ESMTP id 0F6385A6620;
	Sun, 28 Oct 2012 04:50:18 +0200 (EET)
X-Virus-Scanned: Debian amavisd-new at pp.htv.fi
Received: from smtp6.welho.com ([213.243.153.40])
	by localhost (filtteri5.pp.htv.fi [213.243.153.188]) (amavisd-new,
	port 10024)
	with ESMTP id 2JtxFfQdEK5s; Sun, 28 Oct 2012 04:50:17 +0200 (EET)
Received: from bunk.dyndns.info (cs185055.pp.htv.fi [213.243.185.55])
	by smtp6.welho.com (Postfix) with ESMTP id 5C0AD5BC003;
	Sun, 28 Oct 2012 04:50:17 +0200 (EET)
Date: Sun, 28 Oct 2012 04:49:53 +0200
From: Adrian Bunk <bunk@stusta.de>
To: Russ Allbery <rra@stanford.edu>
Subject: Re: Selecting a C++ standard
Message-ID: <20121028024952.GI25162@bunk.dyndns.info>
References: <20121027203803.GZ18133@codelibre.net>
	<508C4A5E.3090905@cs.ucla.edu> <E1TSDYz-00098M-Cp@stenn.ntp.org>
	<20121027234432.GC25162@bunk.dyndns.info>
	<E1TSGGX-0009HB-Vh@stenn.ntp.org>
	<20121028005145.GE25162@bunk.dyndns.info>
	<87sj8zjroi.fsf@windlord.stanford.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <87sj8zjroi.fsf@windlord.stanford.edu>
User-Agent: Mutt/1.5.21 (2010-09-15)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 213.243.153.188
Cc: autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 28 Oct 2012 02:50:23 -0000

On Sat, Oct 27, 2012 at 06:45:01PM -0700, Russ Allbery wrote:
> Adrian Bunk <bunk@stusta.de> writes:
>=20
> > Real "buildable by C89 or later" is rarely used, since due to lack of=
=20
> > long long you have no guaranteed 64bit integer type in C89.
>=20
> Almost none of the software that I work on requires a 64-bit integer ty=
pe.
> (C89 or later is also my default target for the software I write.)

I just tried to build remctl and lbcd with CC=3D"gcc -pedantic-errors",=20
and both failed due to them not being pure C89 (some errors are at the=20
bottom of this email).

I get the point that a --disable-compiler-mode-setting flag to=20
configure would be useful for such "use the strictest C89 mode
in the compiler" compiles.

Are there any other use cases or problems I miss?

> Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagl=
e/>

cu
Adrian


<--  snip  -->


server/remctld.c:53:1: error: string length =E2=80=98610=E2=80=99 is grea=
ter than the length =E2=80=98509=E2=80=99 ISO C90 compilers are required =
to support [-Woverlength-strings]

protocol.h:21:34: error: comma at end of enumerator list [-pedantic]
protocol.h:30:34: error: comma at end of enumerator list [-pedantic]

./check_reply.c:28:10: error: initializer element is not computable at lo=
ad time
./http.c:35:12: error: initializer element is not computable at load time
./monlist.c:86:10: error: initializer element is not computable at load t=
ime




From MAILER-DAEMON Sat Oct 27 23:08:19 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TSJEZ-0002Th-64
	for mharc-autoconf@gnu.org; Sat, 27 Oct 2012 23:08:19 -0400
Received: from eggs.gnu.org ([208.118.235.92]:54367)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rra@stanford.edu>) id 1TSJEW-0002Qo-Dw
	for autoconf@gnu.org; Sat, 27 Oct 2012 23:08:17 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rra@stanford.edu>) id 1TSJEV-0001NZ-4K
	for autoconf@gnu.org; Sat, 27 Oct 2012 23:08:16 -0400
Received: from smtp3.stanford.edu ([171.67.219.83]:35003
	helo=smtp.stanford.edu) by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rra@stanford.edu>) id 1TSJEU-0001NN-Uo
	for autoconf@gnu.org; Sat, 27 Oct 2012 23:08:15 -0400
Received: from smtp.stanford.edu (localhost.localdomain [127.0.0.1])
	by localhost (Postfix) with SMTP id 0AFEA45CAED
	for <autoconf@gnu.org>; Sat, 27 Oct 2012 20:08:14 -0700 (PDT)
Received: from windlord.stanford.edu (windlord.Stanford.EDU [171.67.225.134])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.stanford.edu (Postfix) with ESMTPS id C897645CAF0
	for <autoconf@gnu.org>; Sat, 27 Oct 2012 20:08:13 -0700 (PDT)
Received: by windlord.stanford.edu (Postfix, from userid 1000)
	id 948342F4E8; Sat, 27 Oct 2012 20:08:13 -0700 (PDT)
From: Russ Allbery <rra@stanford.edu>
To: autoconf@gnu.org
Subject: Re: Selecting a C++ standard
In-Reply-To: <20121028024952.GI25162@bunk.dyndns.info> (Adrian Bunk's message
	of "Sun, 28 Oct 2012 04:49:53 +0200")
Organization: The Eyrie
Message-ID: <87390z5mpk.fsf@windlord.stanford.edu>
References: <20121027203803.GZ18133@codelibre.net>
	<508C4A5E.3090905@cs.ucla.edu> <E1TSDYz-00098M-Cp@stenn.ntp.org>
	<20121027234432.GC25162@bunk.dyndns.info>
	<E1TSGGX-0009HB-Vh@stenn.ntp.org>
	<20121028005145.GE25162@bunk.dyndns.info>
	<87sj8zjroi.fsf@windlord.stanford.edu>
	<20121028024952.GI25162@bunk.dyndns.info>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)
Date: Sat, 27 Oct 2012 20:08:13 -0700
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 171.67.219.83
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 28 Oct 2012 03:08:17 -0000

Adrian Bunk <bunk@stusta.de> writes:
> On Sat, Oct 27, 2012 at 06:45:01PM -0700, Russ Allbery wrote:

>> Almost none of the software that I work on requires a 64-bit integer typ=
e.
>> (C89 or later is also my default target for the software I write.)

> I just tried to build remctl and lbcd with CC=3D"gcc -pedantic-errors",
> and both failed due to them not being pure C89 (some errors are at the
> bottom of this email).

Which version of remctl was this?  The trailing comma in enums was a bug,
but it was already fixed in both 3.3 and in the current master.  I checked
just now with that flag, and remctl builds apart from the string length
issue (once one undoes Autoconf's detection of C99 variadic macro
support).

This:

> server/remctld.c:53:1: error: string length =E2=80=98610=E2=80=99 is grea=
ter than the length =E2=80=98509=E2=80=99 ISO C90 compilers are required to=
 support [-Woverlength-strings]

I do indeed intentionally ignore since I've never seen a system (including
otherwise C89 systems, and even older systems) that actually failed to
compile long string constants.  This limit was in the standard mostly
for microcontroller and other free-standing platforms th

These:

> ./check_reply.c:28:10: error: initializer element is not computable at lo=
ad time
> ./http.c:35:12: error: initializer element is not computable at load time
> ./monlist.c:86:10: error: initializer element is not computable at load t=
ime

are indeed all bugs.  lbcd is software that I didn't originally write and
just finished adopting, and I hadn't done a -pedantic-errors pass on it
yet.  I appreciate the note; I'll go and fix those now.

--=20
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>


From MAILER-DAEMON Sun Oct 28 07:07:29 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TSQiH-0004fA-OL
	for mharc-autoconf@gnu.org; Sun, 28 Oct 2012 07:07:29 -0400
Received: from eggs.gnu.org ([208.118.235.92]:54620)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rleigh@codelibre.net>) id 1TSQiE-0004eA-Oe
	for autoconf@gnu.org; Sun, 28 Oct 2012 07:07:27 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rleigh@codelibre.net>) id 1TSQiD-0008J6-36
	for autoconf@gnu.org; Sun, 28 Oct 2012 07:07:26 -0400
Received: from nagini.codelibre.net ([80.68.93.164]:38384)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rleigh@codelibre.net>) id 1TSQiC-0008Ir-Tn
	for autoconf@gnu.org; Sun, 28 Oct 2012 07:07:25 -0400
Received: by nagini.codelibre.net (Postfix, from userid 1000)
	id B8740182FE; Sun, 28 Oct 2012 11:07:23 +0000 (GMT)
Date: Sun, 28 Oct 2012 11:07:23 +0000
From: Roger Leigh <rleigh@codelibre.net>
To: autoconf@gnu.org
Subject: Re: Selecting a C++ standard
Message-ID: <20121028110723.GA21312@codelibre.net>
References: <20121027203803.GZ18133@codelibre.net>
	<508C4A5E.3090905@cs.ucla.edu>
	<20121027214750.GB18133@codelibre.net>
	<20121028000000.GD25162@bunk.dyndns.info>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20121028000000.GD25162@bunk.dyndns.info>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1)
X-Received-From: 80.68.93.164
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 28 Oct 2012 11:07:28 -0000

On Sun, Oct 28, 2012 at 03:00:01AM +0300, Adrian Bunk wrote:
> On Sat, Oct 27, 2012 at 10:47:50PM +0100, Roger Leigh wrote:
> > On Sat, Oct 27, 2012 at 01:55:58PM -0700, Paul Eggert wrote:
> > > On 10/27/2012 01:38 PM, Roger Leigh wrote:
> > > > Is anyone working on such a thing?
> > > 
> > > Not that I know of.
> > > 
> > > For C, we're deprecating the "I want version X"
> > > macros in favor of just AC_PROG_CC_STDC, which says
> > > "I want the latest version".  You might want to do
> > > that for C++ to, as it's more the Autoconf Way.
> > 
> > I agree that having AC_PROG_CC_STDC select the latest version is a
> > sensible default.
> > 
> > However, what do I do if I am making use of C99 features?  It
> > will probably fail if I'm using a feature that's not in a
> > traditional or C89 compiler.  But what if it's more subtle, if I'm
> > relying on a behaviour change in C99, and it compiles (but
> > incorrectly with C89)?  In this case, I would much rather tell
> > autoconf that I require a C99 compiler, and have it fail with
> > a useful error message during configure, rather than fail
> > during compilation or runtime with some unpredicable/obscure
> > error.
> 
> Testing for features is a problem separate from compiler mode setting.

Yes, but we aren't really talking about testing strict standards
conformance here.  We just want the compiler put in a *specific*
mode.  If I want C11, I certainly won't find the C99 or C89
fallbacks useful at all.  I want it to fail there and then.

If I need specific feature tests for that mode, I'll then
proceed to do them.  All I want here is that it identify the
correct -std= option (or equivalent for other compilers).

> > Maybe have an optional argument to AC_PROG_CC_STDC to select
> > the standard e.g.
> >   AC_PROG_CC_STDC([C99])
> > ?
> 
> Latest discussion result was that there is no downside of setting the 
> compiler to the highest mode possible.

There isn't any downside I'm aware of.  But that's somewhat
different than saying, "I need at least this version of the
standard".  If I say I want C99, then C11 or C99 are both
acceptable results.  But C89 is totally useless.

As described in this thread, the AC_PROG_CC fallbacks are
useless (for me).  If I want C11, it can't guarantee it.  If I
want C99, it can't guarantee it.  I need to be able to specify
the minimum standard conformance required, and have autoconf
try to satisfy that.  If it can't do that, then what exactly
is the point of it?

[...]
> The main worry would actually be whether a compiler in C++11 mode might 
> reject any existing C++03 code.

If it does, it's a compiler bug, since both the C and C++ standards
committees went to great lengths to ensure complete backward
compatiblity.  It's not, IMO, something that autoconf need be
concerned with when implementing this.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux    http://people.debian.org/~rleigh/
 `. `'   schroot and sbuild  http://alioth.debian.org/projects/buildd-tools
   `-    GPG Public Key      F33D 281D 470A B443 6756 147C 07B3 C8BC 4083 E800


From MAILER-DAEMON Sun Oct 28 11:25:30 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TSUjy-0002Fx-Db
	for mharc-autoconf@gnu.org; Sun, 28 Oct 2012 11:25:30 -0400
Received: from eggs.gnu.org ([208.118.235.92]:43401)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@deneb.enyo.de>) id 1TSUjw-0002Ep-G7
	for autoconf@gnu.org; Sun, 28 Oct 2012 11:25:29 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fw@deneb.enyo.de>) id 1TSUjv-0003kh-MO
	for autoconf@gnu.org; Sun, 28 Oct 2012 11:25:28 -0400
Received: from ka.mail.enyo.de ([87.106.162.201]:58455)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@deneb.enyo.de>) id 1TSUjv-0003kR-EV
	for autoconf@gnu.org; Sun, 28 Oct 2012 11:25:27 -0400
Received: from [172.17.135.4] (helo=deneb.enyo.de)
	by ka.mail.enyo.de with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	id 1TSUjs-0007Dx-P9; Sun, 28 Oct 2012 16:25:24 +0100
Received: from fw by deneb.enyo.de with local (Exim 4.80)
	(envelope-from <fw@deneb.enyo.de>)
	id 1TSUjs-0003Mn-OL; Sun, 28 Oct 2012 16:25:24 +0100
From: Florian Weimer <fw@deneb.enyo.de>
To: Roger Leigh <rleigh@codelibre.net>
Subject: Re: Selecting a C++ standard
References: <20121027203803.GZ18133@codelibre.net>
Date: Sun, 28 Oct 2012 16:25:24 +0100
In-Reply-To: <20121027203803.GZ18133@codelibre.net> (Roger Leigh's message of
	"Sat, 27 Oct 2012 21:38:03 +0100")
Message-ID: <87mwz6fwkb.fsf@mid.deneb.enyo.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 87.106.162.201
Cc: autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 28 Oct 2012 15:25:29 -0000

* Roger Leigh:

> I would propose to add:
>
> AC_PROG_CXX_STDCXX
> AC_PROG_CXX_CXX98
> AC_PROG_CXX_CXXTR1 [CXX98 with additional checks for TR1 headers]
> AC_PROG_CXX_CXX11
>
> With behaviour the same as the existing C macros.

This would be unwise because picking the most recent
compiler-supported standard will likely break programs on GNU/Linux.
Switching from C++98 to C++11 changes the ABI of standard library
templates, so it's basically an all-or-nothing choice for the entire
system.  (Other language changes can break compilation, but these are
less obnoxious and easier to work around.)


From MAILER-DAEMON Sun Oct 28 12:47:08 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TSW0y-0007nh-1i
	for mharc-autoconf@gnu.org; Sun, 28 Oct 2012 12:47:08 -0400
Received: from eggs.gnu.org ([208.118.235.92]:51063)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bfriesen@simple.dallas.tx.us>) id 1TSW0v-0007nY-IW
	for autoconf@gnu.org; Sun, 28 Oct 2012 12:47:06 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bfriesen@simple.dallas.tx.us>) id 1TSW0u-0003e7-9B
	for autoconf@gnu.org; Sun, 28 Oct 2012 12:47:05 -0400
Received: from blade.simplesystems.org ([65.66.246.74]:51714)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bfriesen@simple.dallas.tx.us>) id 1TSW0u-0003by-1N
	for autoconf@gnu.org; Sun, 28 Oct 2012 12:47:04 -0400
Received: from freddy.simplesystems.org (freddy.simplesystems.org
	[65.66.246.65])
	by blade.simplesystems.org (8.14.4+Sun/8.14.4) with ESMTP id
	q9SGkpBU001518; Sun, 28 Oct 2012 11:46:51 -0500 (CDT)
Date: Sun, 28 Oct 2012 11:46:51 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@freddy.simplesystems.org
To: Roger Leigh <rleigh@codelibre.net>
Subject: Re: Selecting a C++ standard
In-Reply-To: <20121028110723.GA21312@codelibre.net>
Message-ID: <alpine.GSO.2.01.1210281139300.27589@freddy.simplesystems.org>
References: <20121027203803.GZ18133@codelibre.net>
	<508C4A5E.3090905@cs.ucla.edu>
	<20121027214750.GB18133@codelibre.net>
	<20121028000000.GD25162@bunk.dyndns.info>
	<20121028110723.GA21312@codelibre.net>
User-Agent: Alpine 2.01 (GSO 1266 2009-07-14)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2
	(blade.simplesystems.org [65.66.246.90]);
	Sun, 28 Oct 2012 11:46:51 -0500 (CDT)
X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta)
X-Received-From: 65.66.246.74
Cc: autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 28 Oct 2012 16:47:06 -0000

On Sun, 28 Oct 2012, Roger Leigh wrote:
>>
>> Testing for features is a problem separate from compiler mode setting.
>
> Yes, but we aren't really talking about testing strict standards
> conformance here.  We just want the compiler put in a *specific*
> mode.  If I want C11, I certainly won't find the C99 or C89
> fallbacks useful at all.  I want it to fail there and then.

This is making the grave assumption that all compilers support options 
to support multiple explicit language modes and that system headers 
follow suit.  Total failure is not usually acceptable behavior.

If the code was written for C89 then I am likely to want to continue 
compiling it for C89 if possible but also allow "best effort" if the 
compiler does not have a C89 mode.  If the code is updated to also 
work properly for C99, then C99 can be requested.

Those of us who updated C89 code to work with C99 compilers realize 
that it is not necessarily a trivial task (e.g. changes to aliasing 
rules).  C99 code can be written in a way that it will work with C89 
compilers, but C89-originated code may malfunction when compiled with 
C99 compilers.

Bob
-- 
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/


From MAILER-DAEMON Sun Oct 28 13:40:49 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TSWqv-0000ab-8b
	for mharc-autoconf@gnu.org; Sun, 28 Oct 2012 13:40:49 -0400
Received: from eggs.gnu.org ([208.118.235.92]:47490)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <andrew.w.nosenko@gmail.com>) id 1TSWqs-0000XJ-U9
	for autoconf@gnu.org; Sun, 28 Oct 2012 13:40:47 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <andrew.w.nosenko@gmail.com>) id 1TSWqr-0001rq-Fk
	for autoconf@gnu.org; Sun, 28 Oct 2012 13:40:46 -0400
Received: from mail-vc0-f169.google.com ([209.85.220.169]:39415)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <andrew.w.nosenko@gmail.com>) id 1TSWqr-0001rb-Ap
	for autoconf@gnu.org; Sun, 28 Oct 2012 13:40:45 -0400
Received: by mail-vc0-f169.google.com with SMTP id fl17so5159328vcb.0
	for <autoconf@gnu.org>; Sun, 28 Oct 2012 10:40:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=9JDo1OJm97J22NN4Ti5kMS14VC9N2T0Lpg5hBmy7Ww8=;
	b=Xp6W/rYEwMTsqMqN8DF7wNLlKZ5MgfR2eczS4LzyZNhDSxqVKyL5PrbES0agK19CZo
	xUN1OnhiJapXNNB3uR0D2smIgl3HikzAyOq3tuaYAf9qEmiOq69eU+Ro7TQ8P54tD8RG
	+ZqqjltvEZw+X9VDx4nax+K4JrJtJVr1wnsbnGT3U9E4Zh2d5b+ytDfPuYb61j+c4Y7z
	KKlczezamWTj3qtkxnG9/XtTzlcuhvDccxv7WDzuhw4YKN7M1Kah9F+uDvGvQIeXc6ru
	KN3pJhj3VGr/BDZqy3HT24PQ0BYuefHECSQh2e1C5GWSb6YdeakImEm9eHBTdKMMBLot
	Uatw==
MIME-Version: 1.0
Received: by 10.52.71.44 with SMTP id r12mr36654356vdu.41.1351446044438; Sun,
	28 Oct 2012 10:40:44 -0700 (PDT)
Received: by 10.58.1.103 with HTTP; Sun, 28 Oct 2012 10:40:44 -0700 (PDT)
In-Reply-To: <87mwz6fwkb.fsf@mid.deneb.enyo.de>
References: <20121027203803.GZ18133@codelibre.net>
	<87mwz6fwkb.fsf@mid.deneb.enyo.de>
Date: Sun, 28 Oct 2012 19:40:44 +0200
Message-ID: <CALa-7vwVPxob3gFKQmwKOiwMqk-=EyAzWBBBpe_Lj5mkiAZofg@mail.gmail.com>
Subject: Re: Selecting a C++ standard
From: "Andrew W. Nosenko" <andrew.w.nosenko@gmail.com>
To: Florian Weimer <fw@deneb.enyo.de>
Content-Type: text/plain; charset=ISO-8859-1
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.220.169
Cc: Roger Leigh <rleigh@codelibre.net>, autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 28 Oct 2012 17:40:48 -0000

On Sun, Oct 28, 2012 at 5:25 PM, Florian Weimer <fw@deneb.enyo.de> wrote:
> * Roger Leigh:
>
>> I would propose to add:
>>
>> AC_PROG_CXX_STDCXX
>> AC_PROG_CXX_CXX98
>> AC_PROG_CXX_CXXTR1 [CXX98 with additional checks for TR1 headers]
>> AC_PROG_CXX_CXX11
>>
>> With behaviour the same as the existing C macros.
>
> This would be unwise because picking the most recent
> compiler-supported standard will likely break programs on GNU/Linux.
> Switching from C++98 to C++11 changes the ABI of standard library
> templates, so it's basically an all-or-nothing choice for the entire
> system.  (Other language changes can break compilation, but these are
> less obnoxious and easier to work around.)

ABI break by gcc-4.7.0 and 4.7.1 in c++11 mode was a bug (or
misfeature, call it as you want).  Fixed in gcc-4.7.2.
>From http://gcc.gnu.org/gcc-4.7/changes.html :

    o  GCC versions 4.7.0 and 4.7.1 had changes to the C++ standard
       library which affected the ABI in C++11 mode: a data member was
       added to std::list changing its size and altering the
       definitions of some member functions, and std::pair's move
       constructor was non-trivial which altered the calling
       convention for functions with std::pair arguments or return
       types. The ABI incompatibilities have been fixed for GCC
       version 4.7.2 but as a result C++11 code compiled with GCC
       4.7.0 or 4.7.1 may be incompatible with C++11 code compiled
       with different GCC versions and with C++98/C++03 code compiled
       with any version.

-- 
Andrew W. Nosenko <andrew.w.nosenko@gmail.com>


From MAILER-DAEMON Sun Oct 28 13:49:06 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TSWyw-0003Hd-P9
	for mharc-autoconf@gnu.org; Sun, 28 Oct 2012 13:49:06 -0400
Received: from eggs.gnu.org ([208.118.235.92]:41966)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@deneb.enyo.de>) id 1TSWyu-0003GK-5Z
	for autoconf@gnu.org; Sun, 28 Oct 2012 13:49:04 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fw@deneb.enyo.de>) id 1TSWyt-0004G2-4Y
	for autoconf@gnu.org; Sun, 28 Oct 2012 13:49:04 -0400
Received: from ka.mail.enyo.de ([87.106.162.201]:54531)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fw@deneb.enyo.de>) id 1TSWys-0004Ef-C0
	for autoconf@gnu.org; Sun, 28 Oct 2012 13:49:03 -0400
Received: from [172.17.135.4] (helo=deneb.enyo.de)
	by ka.mail.enyo.de with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	id 1TSWyp-0007hs-NS; Sun, 28 Oct 2012 18:48:59 +0100
Received: from fw by deneb.enyo.de with local (Exim 4.80)
	(envelope-from <fw@deneb.enyo.de>)
	id 1TSWyp-0004FM-Md; Sun, 28 Oct 2012 18:48:59 +0100
From: Florian Weimer <fw@deneb.enyo.de>
To: "Andrew W. Nosenko" <andrew.w.nosenko@gmail.com>
Subject: Re: Selecting a C++ standard
References: <20121027203803.GZ18133@codelibre.net>
	<87mwz6fwkb.fsf@mid.deneb.enyo.de>
	<CALa-7vwVPxob3gFKQmwKOiwMqk-=EyAzWBBBpe_Lj5mkiAZofg@mail.gmail.com>
Date: Sun, 28 Oct 2012 18:48:59 +0100
In-Reply-To: <CALa-7vwVPxob3gFKQmwKOiwMqk-=EyAzWBBBpe_Lj5mkiAZofg@mail.gmail.com>
	(Andrew W. Nosenko's message of "Sun, 28 Oct 2012 19:40:44 +0200")
Message-ID: <87mwz6ebck.fsf@mid.deneb.enyo.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 87.106.162.201
Cc: Roger Leigh <rleigh@codelibre.net>, autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 28 Oct 2012 17:49:05 -0000

* Andrew W. Nosenko:

> ABI break by gcc-4.7.0 and 4.7.1 in c++11 mode was a bug (or
> misfeature, call it as you want).  Fixed in gcc-4.7.2.
> From http://gcc.gnu.org/gcc-4.7/changes.html :

I've seen similar issues with GCC 4.7.2.  I thought that this was
expected, so I didn't report it as a bug.

It might be a third-party library which changes ABI when compiled as
C++11 instead of C++98, though.  But that would be an argument against
automatically defaulting to the latest supported C++ standard as well,
wouldn't it?


From MAILER-DAEMON Sun Oct 28 14:25:10 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TSXXq-0001fy-RZ
	for mharc-autoconf@gnu.org; Sun, 28 Oct 2012 14:25:10 -0400
Received: from eggs.gnu.org ([208.118.235.92]:37124)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1TSXXn-0001dB-MX
	for autoconf@gnu.org; Sun, 28 Oct 2012 14:25:08 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1TSXXm-0006Zu-CM
	for autoconf@gnu.org; Sun, 28 Oct 2012 14:25:07 -0400
Received: from smtp.cs.ucla.edu ([131.179.128.62]:38253)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1TSXXm-0006X0-5J
	for autoconf@gnu.org; Sun, 28 Oct 2012 14:25:06 -0400
Received: from localhost (localhost.localdomain [127.0.0.1])
	by smtp.cs.ucla.edu (Postfix) with ESMTP id 59A4939E8105;
	Sun, 28 Oct 2012 11:25:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu
Received: from smtp.cs.ucla.edu ([127.0.0.1])
	by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id lhOgXUuMjSGf; Sun, 28 Oct 2012 11:25:05 -0700 (PDT)
Received: from [192.168.1.3] (pool-108-23-119-2.lsanca.fios.verizon.net
	[108.23.119.2])
	by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 101E439E8100;
	Sun, 28 Oct 2012 11:25:05 -0700 (PDT)
Message-ID: <508D7881.9010804@cs.ucla.edu>
Date: Sun, 28 Oct 2012 11:25:05 -0700
From: Paul Eggert <eggert@cs.ucla.edu>
Organization: UCLA Computer Science Department
User-Agent: Mozilla/5.0 (X11; Linux i686;
	rv:16.0) Gecko/20121011 Thunderbird/16.0.1
MIME-Version: 1.0
To: Roger Leigh <rleigh@codelibre.net>
Subject: Re: Selecting a C++ standard
References: <20121027203803.GZ18133@codelibre.net>
	<508C4A5E.3090905@cs.ucla.edu>
	<20121027214750.GB18133@codelibre.net>
	<20121028000000.GD25162@bunk.dyndns.info>
	<20121028110723.GA21312@codelibre.net>
In-Reply-To: <20121028110723.GA21312@codelibre.net>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 131.179.128.62
Cc: autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 28 Oct 2012 18:25:08 -0000

On 10/28/2012 04:07 AM, Roger Leigh wrote:
> If I want C11, I certainly won't find the C99 or C89
> fallbacks useful at all.  I want it to fail there and then.

I'm afraid that if you want C11, then the only reasonable
implementation right now is something like this:

  AC_MSG_ERROR([C11 is not supported on this platform])

because there are no C11 implementations yet.

Eventually something better may turn up.  But in the
meantime, packages using C11 features (such as Emacs)
are typically doing it in the Autoconf Way, namely,
by testing for the specific feature and using it if available.
This philosophy permeates Autoconf pretty thoroughly.



From MAILER-DAEMON Sun Oct 28 17:00:51 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TSZyV-0004Nq-Ol
	for mharc-autoconf@gnu.org; Sun, 28 Oct 2012 17:00:51 -0400
Received: from eggs.gnu.org ([208.118.235.92]:52521)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TSZyL-0004Kb-KB
	for autoconf@gnu.org; Sun, 28 Oct 2012 17:00:49 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TSZy3-0004TV-B5
	for autoconf@gnu.org; Sun, 28 Oct 2012 17:00:41 -0400
Received: from filtteri5.pp.htv.fi ([213.243.153.188]:55515)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TSZy3-0004Pa-3W
	for autoconf@gnu.org; Sun, 28 Oct 2012 17:00:23 -0400
Received: from localhost (localhost [127.0.0.1])
	by filtteri5.pp.htv.fi (Postfix) with ESMTP id 18F7F5A6687;
	Sun, 28 Oct 2012 23:00:17 +0200 (EET)
X-Virus-Scanned: Debian amavisd-new at pp.htv.fi
Received: from smtp6.welho.com ([213.243.153.40])
	by localhost (filtteri5.pp.htv.fi [213.243.153.188]) (amavisd-new,
	port 10024)
	with ESMTP id vfTABbIZbRgZ; Sun, 28 Oct 2012 23:00:16 +0200 (EET)
Received: from bunk.dyndns.info (cs185055.pp.htv.fi [213.243.185.55])
	by smtp6.welho.com (Postfix) with ESMTP id 5E1F05BC003;
	Sun, 28 Oct 2012 23:00:16 +0200 (EET)
Date: Sun, 28 Oct 2012 22:59:47 +0200
From: Adrian Bunk <bunk@stusta.de>
To: Russ Allbery <rra@stanford.edu>
Subject: Re: Selecting a C++ standard
Message-ID: <20121028205947.GJ25162@bunk.dyndns.info>
References: <20121027203803.GZ18133@codelibre.net>
	<508C4A5E.3090905@cs.ucla.edu> <E1TSDYz-00098M-Cp@stenn.ntp.org>
	<20121027234432.GC25162@bunk.dyndns.info>
	<E1TSGGX-0009HB-Vh@stenn.ntp.org>
	<20121028005145.GE25162@bunk.dyndns.info>
	<87sj8zjroi.fsf@windlord.stanford.edu>
	<20121028024952.GI25162@bunk.dyndns.info>
	<87390z5mpk.fsf@windlord.stanford.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <87390z5mpk.fsf@windlord.stanford.edu>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 213.243.153.188
Cc: autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 28 Oct 2012 21:00:50 -0000

On Sat, Oct 27, 2012 at 08:08:13PM -0700, Russ Allbery wrote:
> Adrian Bunk <bunk@stusta.de> writes:
> > On Sat, Oct 27, 2012 at 06:45:01PM -0700, Russ Allbery wrote:
> 
> >> Almost none of the software that I work on requires a 64-bit integer type.
> >> (C89 or later is also my default target for the software I write.)
> 
> > I just tried to build remctl and lbcd with CC="gcc -pedantic-errors",
> > and both failed due to them not being pure C89 (some errors are at the
> > bottom of this email).
> 
> Which version of remctl was this?  The trailing comma in enums was a bug,
> but it was already fixed in both 3.3 and in the current master.  I checked
> just now with that flag, and remctl builds apart from the string length
> issue (once one undoes Autoconf's detection of C99 variadic macro
> support).
>...

That was 3.2 from Debian unstable.

cu
Adrian

BTW: Please Cc me on replies.

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed



From MAILER-DAEMON Sun Oct 28 17:46:09 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TSagL-0005WN-6J
	for mharc-autoconf@gnu.org; Sun, 28 Oct 2012 17:46:09 -0400
Received: from eggs.gnu.org ([208.118.235.92]:44923)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TSagI-0005WH-E4
	for autoconf@gnu.org; Sun, 28 Oct 2012 17:46:07 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TSagH-0007hK-9G
	for autoconf@gnu.org; Sun, 28 Oct 2012 17:46:06 -0400
Received: from filtteri6.pp.htv.fi ([213.243.153.189]:51725)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TSagH-0007hA-2W
	for autoconf@gnu.org; Sun, 28 Oct 2012 17:46:05 -0400
Received: from localhost (localhost [127.0.0.1])
	by filtteri6.pp.htv.fi (Postfix) with ESMTP id C8C0E56E613;
	Sun, 28 Oct 2012 23:46:01 +0200 (EET)
X-Virus-Scanned: Debian amavisd-new at pp.htv.fi
Received: from smtp5.welho.com ([213.243.153.39])
	by localhost (filtteri6.pp.htv.fi [213.243.153.189]) (amavisd-new,
	port 10024)
	with ESMTP id m7b6Z23IiigP; Sun, 28 Oct 2012 23:46:00 +0200 (EET)
Received: from bunk.dyndns.info (cs185055.pp.htv.fi [213.243.185.55])
	by smtp5.welho.com (Postfix) with ESMTP id 76D9F5BC002;
	Sun, 28 Oct 2012 23:46:00 +0200 (EET)
Date: Sun, 28 Oct 2012 23:45:35 +0200
From: Adrian Bunk <bunk@stusta.de>
To: Roger Leigh <rleigh@codelibre.net>
Subject: Re: Selecting a C++ standard
Message-ID: <20121028214535.GK25162@bunk.dyndns.info>
References: <20121027203803.GZ18133@codelibre.net>
	<508C4A5E.3090905@cs.ucla.edu>
	<20121027214750.GB18133@codelibre.net>
	<20121028000000.GD25162@bunk.dyndns.info>
	<20121028110723.GA21312@codelibre.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <20121028110723.GA21312@codelibre.net>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 213.243.153.189
Cc: autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 28 Oct 2012 21:46:07 -0000

On Sun, Oct 28, 2012 at 11:07:23AM +0000, Roger Leigh wrote:
> On Sun, Oct 28, 2012 at 03:00:01AM +0300, Adrian Bunk wrote:
> > On Sat, Oct 27, 2012 at 10:47:50PM +0100, Roger Leigh wrote:
>...
> > > Maybe have an optional argument to AC_PROG_CC_STDC to select
> > > the standard e.g.
> > >   AC_PROG_CC_STDC([C99])
> > > ?
> > 
> > Latest discussion result was that there is no downside of setting the 
> > compiler to the highest mode possible.
> 
> There isn't any downside I'm aware of.  But that's somewhat
> different than saying, "I need at least this version of the
> standard".  If I say I want C99, then C11 or C99 are both
> acceptable results.  But C89 is totally useless.
> 
> As described in this thread, the AC_PROG_CC fallbacks are
> useless (for me).  If I want C11, it can't guarantee it.  If I
> want C99, it can't guarantee it.  I need to be able to specify
> the minimum standard conformance required, and have autoconf
> try to satisfy that.  If it can't do that, then what exactly
> is the point of it?

The general problem is that your "If I want C99" only makes sense in
a theoretical world where all compilers implement exactly the complete 
standard, not any subset or superset.

In the real world, what a compiler supports in C99 mode can be a subset 
of C99 plus several C11 features (plus compiler specific features).
gcc 4.7 in it's gnu99 mode is an example for that. 

And that might or might not cover all features your code uses.

Let's make an example.

Facts:
- "long long" is not in C89, but is in C99
- gcc in it's default C89 mode supports "long long"
- gcc in it's strictest C89 setting gives a compile error on "long long"
- gcc does not fully support C99

When the only non-C89 feature you use in your code is "long long", 
then you are not interested in
- whether the compiler is in C89 or in C99 mode, or
- whether the compiler supports all other parts of the C99 standard

What you want is that:
1. if the compiler supports "long long" in some mode, it should be set
   into a mode where it supports that and
2. test whether the compiler supports "long long"

As of autoconf master, AC_PROG_CC does 1. automatically for you.

>...
> Regards,
> Roger

cu
Adrian

BTW: Please Cc me on replies.

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed



From MAILER-DAEMON Tue Oct 30 10:34:01 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TTCtF-0005bJ-7Z
	for mharc-autoconf@gnu.org; Tue, 30 Oct 2012 10:34:01 -0400
Received: from eggs.gnu.org ([208.118.235.92]:60194)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TTCt4-0005au-GM
	for autoconf@gnu.org; Tue, 30 Oct 2012 10:33:59 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TTCsr-0007Ju-5y
	for autoconf@gnu.org; Tue, 30 Oct 2012 10:33:50 -0400
Received: from filtteri1.pp.htv.fi ([213.243.153.184]:34655)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TTCsq-0007FY-Qu
	for autoconf@gnu.org; Tue, 30 Oct 2012 10:33:37 -0400
Received: from localhost (localhost [127.0.0.1])
	by filtteri1.pp.htv.fi (Postfix) with ESMTP id 17B5721B336;
	Tue, 30 Oct 2012 16:33:05 +0200 (EET)
X-Virus-Scanned: Debian amavisd-new at pp.htv.fi
Received: from smtp5.welho.com ([213.243.153.39])
	by localhost (filtteri1.pp.htv.fi [213.243.153.184]) (amavisd-new,
	port 10024)
	with ESMTP id vYp3RPEbJZ4V; Tue, 30 Oct 2012 16:33:04 +0200 (EET)
Received: from bunk.dyndns.info (cs185055.pp.htv.fi [213.243.185.55])
	by smtp5.welho.com (Postfix) with ESMTP id 8A5AB5BC003;
	Tue, 30 Oct 2012 16:33:04 +0200 (EET)
Date: Tue, 30 Oct 2012 16:32:38 +0200
From: Adrian Bunk <bunk@stusta.de>
To: Trent Nelson <trent@snakebite.org>
Subject: Re: Selecting a C++ standard
Message-ID: <20121030143237.GB4008@bunk.dyndns.info>
References: <20121027203803.GZ18133@codelibre.net>
	<508C4A5E.3090905@cs.ucla.edu>
	<20121027214750.GB18133@codelibre.net>
	<20121028000000.GD25162@bunk.dyndns.info>
	<E1TSGPA-0009IO-V6@stenn.ntp.org>
	<20121030025009.GA27000@snakebite.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <20121030025009.GA27000@snakebite.org>
User-Agent: Mutt/1.5.21 (2010-09-15)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 213.243.153.184
Cc: Harlan Stenn <stenn@ntp.org>, "autoconf@gnu.org" <autoconf@gnu.org>,
	Roger Leigh <rleigh@codelibre.net>
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 30 Oct 2012 14:33:59 -0000

On Mon, Oct 29, 2012 at 10:50:10PM -0400, Trent Nelson wrote:
> On Sat, Oct 27, 2012 at 05:07:04PM -0700, Harlan Stenn wrote:
> > Adrian Bunk writes:
> > > On Sat, Oct 27, 2012 at 10:47:50PM +0100, Roger Leigh wrote:
> > > > Maybe have an optional argument to AC_PROG_CC_STDC to select
> > > > the standard e.g.
> > > >   AC_PROG_CC_STDC([C99])
> > > > ?
> >=20
> > I like this idea.
> >=20
> > > Latest discussion result was that there is no downside of setting t=
he
> > > compiler to the highest mode possible.
> >=20
> > Then that discussion was incomplete.
> >=20
> > If I must ensure that a package requires a given "level" of STDC, the=
n
> > configure MUST NOT decide any other "level" is OK.
> >=20
> > > And as said above, feature testing is a separate issue.
> >=20
> > that doesn't mean it is by definition OK to ignore this point.
> >=20
> > > > I originally wrote AC_PROC_CC_C99 because it was several years
> > > > since GCC supported C99, but there was no portable way to use
> > > > C99 features with projects using autoconf unless you added
> > > > horrible hacks.  We still have this situation for C++, and it
> > > > would be nice to solve it in a similar way to C.  I'm happy to
> > > > go with the new approach of a single macro, but I would be
> > > > interested to understand how the issues I outlined above square
> > > > with this.
> > >=20
> > > The main worry would actually be whether a compiler in C++11 mode m=
ight=20
> > > reject any existing C++03 code.
> >=20
> > I submit you are still ignoring the other side of the problem, which
> > says "Make sure I am using a C++03 compiler so I can be sure that the
> > package builds with a C++03 compiler if that is all *somebody else* h=
as."
>=20
>     I think this applies to us in the Python camp.  We use C89,
>     basically because that's the lowest common supported standard
>     across the board.  This is important to us for Windows and
>     MSVC support, as that will regularly balk on non-C89 code.
>=20
>     So, in our case, we're not really in the position to use the
>     autoconf approach of test-for-the-feature-not-the-std-compliance;
>     we simply want to balk on non-C89 code on UNIX platforms, so it
>     can be fixed before it gets into the tree and breaks on Windows.


Python 2.7.3 and 3.3.0 have the following test for a C99 feature in=20
configure.in:

  AC_MSG_CHECKING(for long long support)

If you would set the compiler into a mode where it balks on non-C89
code (-pedantic-errors with gcc), that test would always fail.

Large File Support (handling files > 2 GB on 32bit systems) is=20
obviously also not possible when a compiler barks on non-C89 code.


Python 2.7.3 and 3.3.0 also have the following test in configure.in:

  AC_MSG_CHECKING(for _Bool support)
  have_c99_bool=3Dno

Another test-for-the-feature-not-the-std-compliance for a C99 feature.


The first compile error I get with
  CC=3D"gcc -pedantic-errors" ./configure && make
in Python 3.3.0 is:

Objects/bytearrayobject.c:2898:1: error: string length =E2=80=98513=E2=80=
=99 is greater than the length =E2=80=98509=E2=80=99 ISO C90 compilers ar=
e required to support [-Woverlength-strings]



>         Trent.

cu
Adrian

--=20

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed



From MAILER-DAEMON Tue Oct 30 10:36:28 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TTCvc-0007PF-OP
	for mharc-autoconf@gnu.org; Tue, 30 Oct 2012 10:36:28 -0400
Received: from eggs.gnu.org ([208.118.235.92]:51811)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TTCvS-0007O6-R3
	for autoconf@gnu.org; Tue, 30 Oct 2012 10:36:28 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TTCvM-0008Sr-VB
	for autoconf@gnu.org; Tue, 30 Oct 2012 10:36:18 -0400
Received: from filtteri6.pp.htv.fi ([213.243.153.189]:59616)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TTCvM-0008Sk-NZ
	for autoconf@gnu.org; Tue, 30 Oct 2012 10:36:12 -0400
Received: from localhost (localhost [127.0.0.1])
	by filtteri6.pp.htv.fi (Postfix) with ESMTP id BC4CE56E585;
	Tue, 30 Oct 2012 16:36:11 +0200 (EET)
X-Virus-Scanned: Debian amavisd-new at pp.htv.fi
Received: from smtp4.welho.com ([213.243.153.38])
	by localhost (filtteri6.pp.htv.fi [213.243.153.189]) (amavisd-new,
	port 10024)
	with ESMTP id ThAJGi1fLtAQ; Tue, 30 Oct 2012 16:36:11 +0200 (EET)
Received: from bunk.dyndns.info (cs185055.pp.htv.fi [213.243.185.55])
	by smtp4.welho.com (Postfix) with ESMTP id 64A155BC011;
	Tue, 30 Oct 2012 16:36:11 +0200 (EET)
Date: Tue, 30 Oct 2012 16:35:44 +0200
From: Adrian Bunk <bunk@stusta.de>
To: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
Subject: Re: Selecting a C++ standard
Message-ID: <20121030143544.GC4008@bunk.dyndns.info>
References: <20121027203803.GZ18133@codelibre.net>
	<508C4A5E.3090905@cs.ucla.edu>
	<20121027214750.GB18133@codelibre.net>
	<20121028000000.GD25162@bunk.dyndns.info>
	<20121028110723.GA21312@codelibre.net>
	<alpine.GSO.2.01.1210281139300.27589@freddy.simplesystems.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <alpine.GSO.2.01.1210281139300.27589@freddy.simplesystems.org>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 213.243.153.189
Cc: Roger Leigh <rleigh@codelibre.net>, autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 30 Oct 2012 14:36:28 -0000

On Sun, Oct 28, 2012 at 11:46:51AM -0500, Bob Friesenhahn wrote:
>...
> If the code was written for C89 then I am likely to want to continue
> compiling it for C89 if possible but also allow "best effort" if the
> compiler does not have a C89 mode.  If the code is updated to also
> work properly for C99, then C99 can be requested.
> 
> Those of us who updated C89 code to work with C99 compilers realize
> that it is not necessarily a trivial task (e.g. changes to aliasing
> rules).  C99 code can be written in a way that it will work with C89
> compilers, but C89-originated code may malfunction when compiled
> with C99 compilers.

If that is be true, then we have a serious problem with the current 
autoconf master.

Can you provide an example C89 program that does malfunction with
a C99 compiler?

> Bob

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed



From MAILER-DAEMON Tue Oct 30 11:44:28 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TTDzQ-0005mR-SI
	for mharc-autoconf@gnu.org; Tue, 30 Oct 2012 11:44:28 -0400
Received: from eggs.gnu.org ([208.118.235.92]:39225)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <prvs=nbowler=64349b3d9@elliptictech.com>)
	id 1TTDzJ-0005jj-Q4
	for autoconf@gnu.org; Tue, 30 Oct 2012 11:44:28 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <prvs=nbowler=64349b3d9@elliptictech.com>)
	id 1TTDzD-00046l-2z
	for autoconf@gnu.org; Tue, 30 Oct 2012 11:44:21 -0400
Received: from mx.scalarmail.ca ([98.158.95.75]:37176
	helo=ironport-01.sms.scalar.ca)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <prvs=nbowler=64349b3d9@elliptictech.com>)
	id 1TTDzC-00046F-Uq
	for autoconf@gnu.org; Tue, 30 Oct 2012 11:44:15 -0400
Received: from unknown (HELO sms-zimbra-mta-01.sms.scalar.ca) ([192.168.32.56])
	by ironport-01.sms.scalar.ca with ESMTP; 30 Oct 2012 11:44:01 -0400
Received: from localhost (localhost.localdomain [127.0.0.1])
	by sms-zimbra-mta-01.sms.scalar.ca (Postfix) with ESMTP id D4C9917F48; 
	Tue, 30 Oct 2012 11:44:00 -0400 (EDT)
Received: from sms-zimbra-mta-01.sms.scalar.ca ([127.0.0.1])
	by localhost (sms-zimbra-mta-01.sms.scalar.ca [127.0.0.1]) (amavisd-new,
	port 10024)
	with ESMTP id HhwTyM+jguy0; Tue, 30 Oct 2012 11:44:00 -0400 (EDT)
Received: from mail.ellipticsemi.com (mail.elliptictech.com [209.217.122.41])
	(Authenticated sender: nbowler@elliptictech.com)
	by sms-zimbra-mta-01.sms.scalar.ca (Postfix) with ESMTPSA id 124A317F45;
	Tue, 30 Oct 2012 11:44:00 -0400 (EDT)
Date: Tue, 30 Oct 2012 11:43:59 -0400
From: Nick Bowler <nbowler@elliptictech.com>
To: Adrian Bunk <bunk@stusta.de>
Subject: Re: Selecting a C++ standard
Message-ID: <20121030154359.GA6501@elliptictech.com>
References: <20121027203803.GZ18133@codelibre.net>
	<508C4A5E.3090905@cs.ucla.edu>
	<20121027214750.GB18133@codelibre.net>
	<20121028000000.GD25162@bunk.dyndns.info>
	<20121028110723.GA21312@codelibre.net>
	<alpine.GSO.2.01.1210281139300.27589@freddy.simplesystems.org>
	<20121030143544.GC4008@bunk.dyndns.info>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20121030143544.GC4008@bunk.dyndns.info>
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-Received-From: 98.158.95.75
Cc: Roger Leigh <rleigh@codelibre.net>, autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 30 Oct 2012 15:44:28 -0000

On 2012-10-30 16:35 +0200, Adrian Bunk wrote:
> On Sun, Oct 28, 2012 at 11:46:51AM -0500, Bob Friesenhahn wrote:
> >...
> > If the code was written for C89 then I am likely to want to continue
> > compiling it for C89 if possible but also allow "best effort" if the
> > compiler does not have a C89 mode.  If the code is updated to also
> > work properly for C99, then C99 can be requested.
> > 
> > Those of us who updated C89 code to work with C99 compilers realize
> > that it is not necessarily a trivial task (e.g. changes to aliasing
> > rules).  C99 code can be written in a way that it will work with C89
> > compilers, but C89-originated code may malfunction when compiled
> > with C99 compilers.
> 
> If that is be true, then we have a serious problem with the current 
> autoconf master.
> 
> Can you provide an example C89 program that does malfunction with
> a C99 compiler?

The semantic changes in C99 were mostly conservative, and probably don't
break many "real" applications, but there are certainly some subtle
semantic differences.  One of my favourite examples is a change to the
block scoping which can be observed with a program such as the
following, which is strictly conforming in both C89 and C99:

  #include <stdio.h>

  enum {A, B} has_c99_scoping_rules(void)
  {
    if ((enum {B, A})0)
      ;
    return B;
  }

  int main(void)
  {
    if (has_c99_scoping_rules())
      puts("Compiler uses C99 block scoping");
    else
      puts("Compiler uses C89 block scoping");
    return 0;
  }

GCC in its default mode (gnu89) uses C89 scoping rules.  Of course,
this behaviour is clearly possible to write a specific test for, as
I just did.

I can't think offhand of a program which is well-defined in C89 that
would violate the C99 aliasing restrictions (and therefore have
undefined behaviour in C99).  Regardless, AFAIK GCC implements the
same restrictions in C89 mode too, so switching to C89 mode wouldn't
actually help in this case.

Cheers,
-- 
Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/)


From MAILER-DAEMON Tue Oct 30 12:12:43 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TTEQl-0002Z8-Q8
	for mharc-autoconf@gnu.org; Tue, 30 Oct 2012 12:12:43 -0400
Received: from eggs.gnu.org ([208.118.235.92]:53216)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TTEQe-0002YA-97
	for autoconf@gnu.org; Tue, 30 Oct 2012 12:12:42 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TTEQY-0004Su-9A
	for autoconf@gnu.org; Tue, 30 Oct 2012 12:12:36 -0400
Received: from filtteri6.pp.htv.fi ([213.243.153.189]:54945)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bunk@stusta.de>) id 1TTEQX-0004SQ-Uh
	for autoconf@gnu.org; Tue, 30 Oct 2012 12:12:30 -0400
Received: from localhost (localhost [127.0.0.1])
	by filtteri6.pp.htv.fi (Postfix) with ESMTP id CD67956E532;
	Tue, 30 Oct 2012 18:12:25 +0200 (EET)
X-Virus-Scanned: Debian amavisd-new at pp.htv.fi
Received: from smtp4.welho.com ([213.243.153.38])
	by localhost (filtteri6.pp.htv.fi [213.243.153.189]) (amavisd-new,
	port 10024)
	with ESMTP id axALwIU5XfhS; Tue, 30 Oct 2012 18:12:25 +0200 (EET)
Received: from bunk.dyndns.info (cs185055.pp.htv.fi [213.243.185.55])
	by smtp4.welho.com (Postfix) with ESMTP id 492165BC011;
	Tue, 30 Oct 2012 18:12:25 +0200 (EET)
Date: Tue, 30 Oct 2012 18:11:58 +0200
From: Adrian Bunk <bunk@stusta.de>
To: Nick Bowler <nbowler@elliptictech.com>
Subject: Re: Selecting a C++ standard
Message-ID: <20121030161157.GD4008@bunk.dyndns.info>
References: <20121027203803.GZ18133@codelibre.net>
	<508C4A5E.3090905@cs.ucla.edu>
	<20121027214750.GB18133@codelibre.net>
	<20121028000000.GD25162@bunk.dyndns.info>
	<20121028110723.GA21312@codelibre.net>
	<alpine.GSO.2.01.1210281139300.27589@freddy.simplesystems.org>
	<20121030143544.GC4008@bunk.dyndns.info>
	<20121030154359.GA6501@elliptictech.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <20121030154359.GA6501@elliptictech.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 213.243.153.189
Cc: Roger Leigh <rleigh@codelibre.net>, autoconf@gnu.org,
	Paul Eggert <eggert@cs.ucla.edu>
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 30 Oct 2012 16:12:42 -0000

On Tue, Oct 30, 2012 at 11:43:59AM -0400, Nick Bowler wrote:
> On 2012-10-30 16:35 +0200, Adrian Bunk wrote:
> > On Sun, Oct 28, 2012 at 11:46:51AM -0500, Bob Friesenhahn wrote:
> > >...
> > > If the code was written for C89 then I am likely to want to continue
> > > compiling it for C89 if possible but also allow "best effort" if the
> > > compiler does not have a C89 mode.  If the code is updated to also
> > > work properly for C99, then C99 can be requested.
> > > 
> > > Those of us who updated C89 code to work with C99 compilers realize
> > > that it is not necessarily a trivial task (e.g. changes to aliasing
> > > rules).  C99 code can be written in a way that it will work with C89
> > > compilers, but C89-originated code may malfunction when compiled
> > > with C99 compilers.
> > 
> > If that is be true, then we have a serious problem with the current 
> > autoconf master.
> > 
> > Can you provide an example C89 program that does malfunction with
> > a C99 compiler?
> 
> The semantic changes in C99 were mostly conservative, and probably don't
> break many "real" applications, but there are certainly some subtle
> semantic differences.  One of my favourite examples is a change to the
> block scoping which can be observed with a program such as the
> following, which is strictly conforming in both C89 and C99:
> 
>   #include <stdio.h>
> 
>   enum {A, B} has_c99_scoping_rules(void)
>   {
>     if ((enum {B, A})0)
>       ;
>     return B;
>   }
> 
>   int main(void)
>   {
>     if (has_c99_scoping_rules())
>       puts("Compiler uses C99 block scoping");
>     else
>       puts("Compiler uses C89 block scoping");
>     return 0;
>   }
> 
> GCC in its default mode (gnu89) uses C89 scoping rules.  Of course,
> this behaviour is clearly possible to write a specific test for, as
> I just did.


Thanks for this example, it shows that there is actually a risk 
associated with the change currently in autoconf git.

As of today, typical software using AC_PROG_CC will:
- be compiled in C89 mode with autoconf <= 2.69
- be compiled in C11 mode with autoconf >= 2.70

So if your example program would be built using autoconf, it would 
behave differently depending on the autoconf version used.


> I can't think offhand of a program which is well-defined in C89 that
> would violate the C99 aliasing restrictions (and therefore have
> undefined behaviour in C99).  Regardless, AFAIK GCC implements the
> same restrictions in C89 mode too, so switching to C89 mode wouldn't
> actually help in this case.
> 
> Cheers,

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed



From MAILER-DAEMON Tue Oct 30 13:33:57 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TTFhN-0007BC-4O
	for mharc-autoconf@gnu.org; Tue, 30 Oct 2012 13:33:57 -0400
Received: from eggs.gnu.org ([208.118.235.92]:43273)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <trent@snakebite.org>) id 1TT4sv-0007Kc-C6
	for autoconf@gnu.org; Tue, 30 Oct 2012 02:01:13 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <trent@snakebite.org>) id 1TT4sl-0004Qm-KC
	for autoconf@gnu.org; Tue, 30 Oct 2012 02:01:09 -0400
Received: from exchla3.liveoffice.com ([64.70.67.188]:20238
	helo=exchange.liveoffice.com) by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <trent@snakebite.org>) id 1TT4sl-0004QN-B9
	for autoconf@gnu.org; Tue, 30 Oct 2012 02:00:59 -0400
Received: from exhub13.exchhosting.com (192.168.11.122) by
	exhub08.exchhosting.com (192.168.11.106) with Microsoft SMTP Server
	(TLS) id 8.3.213.0; Mon, 29 Oct 2012 19:50:13 -0700
Received: from localhost (35.8.247.10) by exchange.liveoffice.com
	(192.168.11.122) with Microsoft SMTP Server id 8.3.213.0;
	Mon, 29 Oct 2012 19:50:12 -0700
Date: Mon, 29 Oct 2012 22:50:10 -0400
From: Trent Nelson <trent@snakebite.org>
To: Harlan Stenn <stenn@ntp.org>
Subject: Re: Selecting a C++ standard
Message-ID: <20121030025009.GA27000@snakebite.org>
References: <20121027203803.GZ18133@codelibre.net>
	<508C4A5E.3090905@cs.ucla.edu>
	<20121027214750.GB18133@codelibre.net>
	<20121028000000.GD25162@bunk.dyndns.info>
	<E1TSGPA-0009IO-V6@stenn.ntp.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <E1TSGPA-0009IO-V6@stenn.ntp.org>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Windows 2000 SP2+,
	XP SP1+ (seldom 98)
X-Received-From: 64.70.67.188
X-Mailman-Approved-At: Tue, 30 Oct 2012 13:33:55 -0400
Cc: Roger Leigh <rleigh@codelibre.net>, "autoconf@gnu.org" <autoconf@gnu.org>,
	Adrian Bunk <bunk@stusta.de>
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 30 Oct 2012 06:01:13 -0000

On Sat, Oct 27, 2012 at 05:07:04PM -0700, Harlan Stenn wrote:
> Adrian Bunk writes:
> > On Sat, Oct 27, 2012 at 10:47:50PM +0100, Roger Leigh wrote:
> > > Maybe have an optional argument to AC_PROG_CC_STDC to select
> > > the standard e.g.
> > >   AC_PROG_CC_STDC([C99])
> > > ?
> 
> I like this idea.
> 
> > Latest discussion result was that there is no downside of setting the
> > compiler to the highest mode possible.
> 
> Then that discussion was incomplete.
> 
> If I must ensure that a package requires a given "level" of STDC, then
> configure MUST NOT decide any other "level" is OK.
> 
> > And as said above, feature testing is a separate issue.
> 
> that doesn't mean it is by definition OK to ignore this point.
> 
> > > I originally wrote AC_PROC_CC_C99 because it was several years
> > > since GCC supported C99, but there was no portable way to use
> > > C99 features with projects using autoconf unless you added
> > > horrible hacks.  We still have this situation for C++, and it
> > > would be nice to solve it in a similar way to C.  I'm happy to
> > > go with the new approach of a single macro, but I would be
> > > interested to understand how the issues I outlined above square
> > > with this.
> > 
> > The main worry would actually be whether a compiler in C++11 mode might 
> > reject any existing C++03 code.
> 
> I submit you are still ignoring the other side of the problem, which
> says "Make sure I am using a C++03 compiler so I can be sure that the
> package builds with a C++03 compiler if that is all *somebody else* has."

    I think this applies to us in the Python camp.  We use C89,
    basically because that's the lowest common supported standard
    across the board.  This is important to us for Windows and
    MSVC support, as that will regularly balk on non-C89 code.

    So, in our case, we're not really in the position to use the
    autoconf approach of test-for-the-feature-not-the-std-compliance;
    we simply want to balk on non-C89 code on UNIX platforms, so it
    can be fixed before it gets into the tree and breaks on Windows.

        Trent.


From MAILER-DAEMON Tue Oct 30 13:34:56 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TTFiK-0008AK-3E
	for mharc-autoconf@gnu.org; Tue, 30 Oct 2012 13:34:56 -0400
Received: from eggs.gnu.org ([208.118.235.92]:47940)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1TTFiB-00089N-GP
	for autoconf@gnu.org; Tue, 30 Oct 2012 13:34:54 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1TTFi5-0003ew-NM
	for autoconf@gnu.org; Tue, 30 Oct 2012 13:34:47 -0400
Received: from smtp.cs.ucla.edu ([131.179.128.62]:37216)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1TTFi5-0003ci-I8
	for autoconf@gnu.org; Tue, 30 Oct 2012 13:34:41 -0400
Received: from localhost (localhost.localdomain [127.0.0.1])
	by smtp.cs.ucla.edu (Postfix) with ESMTP id 4EC22A6000F;
	Tue, 30 Oct 2012 10:34:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu
Received: from smtp.cs.ucla.edu ([127.0.0.1])
	by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 8CqQLTwIbyEe; Tue, 30 Oct 2012 10:34:32 -0700 (PDT)
Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200])
	by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 9D344A60008;
	Tue, 30 Oct 2012 10:34:32 -0700 (PDT)
Message-ID: <50900FA3.5070106@cs.ucla.edu>
Date: Tue, 30 Oct 2012 10:34:27 -0700
From: Paul Eggert <eggert@cs.ucla.edu>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:16.0) Gecko/20121016 Thunderbird/16.0.1
MIME-Version: 1.0
To: Adrian Bunk <bunk@stusta.de>
Subject: Re: Selecting a C++ standard
References: <20121027203803.GZ18133@codelibre.net>
	<508C4A5E.3090905@cs.ucla.edu>
	<20121027214750.GB18133@codelibre.net>
	<20121028000000.GD25162@bunk.dyndns.info>
	<20121028110723.GA21312@codelibre.net>
	<alpine.GSO.2.01.1210281139300.27589@freddy.simplesystems.org>
	<20121030143544.GC4008@bunk.dyndns.info>
	<20121030154359.GA6501@elliptictech.com>
	<20121030161157.GD4008@bunk.dyndns.info>
In-Reply-To: <20121030161157.GD4008@bunk.dyndns.info>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 131.179.128.62
Cc: Roger Leigh <rleigh@codelibre.net>, Nick Bowler <nbowler@elliptictech.com>,
	autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 30 Oct 2012 17:34:54 -0000

On 10/30/2012 09:11 AM, Adrian Bunk wrote:
> if your example program would be built using autoconf, it would 
> behave differently depending on the autoconf version used.

Yes, it's possible to write C89 programs that silently
change meaning if compiled with C99.  Here's an other example,
which I gave in September:

    int N = (1//* this sets N to 1 in C99, and to 0 in C89.  Ouch?^!#*/-2
             + (INT_MAX < INT_MIN));

But these examples are contrived, and are not likely to happen
in real code.  If these are all we have to worry about, there's
no significant risk in defaulting to the latest standard.

Things were much riskier 20 years ago, because C89 *did*
introduce incompatible changes that broke existing apps.
But back then Autoconf was already in the "let's use the latest
version" camp: its AC_PROG_CC macro defaulted to C89, even though
this was risky.  It makes sense to continue to default to the
latest version, especially since it's less risky now.


From MAILER-DAEMON Wed Oct 31 16:25:34 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TTer0-0006pm-3d
	for mharc-autoconf@gnu.org; Wed, 31 Oct 2012 16:25:34 -0400
Received: from eggs.gnu.org ([208.118.235.92]:44130)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <george.mccollister@gmail.com>) id 1TTenF-0005gz-9s
	for autoconf@gnu.org; Wed, 31 Oct 2012 16:21:42 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <george.mccollister@gmail.com>) id 1TTenB-0001zi-25
	for autoconf@gnu.org; Wed, 31 Oct 2012 16:21:41 -0400
Received: from mail-ea0-f169.google.com ([209.85.215.169]:52032)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <george.mccollister@gmail.com>) id 1TTenA-0001zN-Rr
	for autoconf@gnu.org; Wed, 31 Oct 2012 16:21:36 -0400
Received: by mail-ea0-f169.google.com with SMTP id k11so858284eaa.0
	for <autoconf@gnu.org>; Wed, 31 Oct 2012 13:21:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:date:message-id:subject:from:to:content-type;
	bh=6uOrMaMcgRBjIuj3jPJjJGTH344DBC4O3NxCBGmlRok=;
	b=FIGdAHAzT/838ZGsJKwtZtqJycNf3P8NoWdXPJct/Jnzmw8nJzzAog9EeuAMJu3Qdj
	johd/iLxsElfmZYpJYqGGIV7d+jX+jPkjNJw7rPlH+QspG/38yF0hjeUr7/I2jAhpwXC
	tnLjes7wCrAsTJaeATTYXspEHB6v8LeW/rKlxp95iUG+ztvlD55s71LdlR6tf2y3scBN
	RfZciZ5sh/16QaFYwwS5y/lOyzR+hetab2YhgcgMnnaq3qsedJW1DZiuUHG9b3yikt53
	GUv09t3Hg9rbXH02UEglGMnOTPL05s+r0DMevG2f56twCR6CA6Hv+3vP/ghLLgP4mYvW
	Te1w==
MIME-Version: 1.0
Received: by 10.14.179.6 with SMTP id g6mr88680526eem.46.1351714895314; Wed,
	31 Oct 2012 13:21:35 -0700 (PDT)
Received: by 10.223.132.203 with HTTP; Wed, 31 Oct 2012 13:21:35 -0700 (PDT)
Date: Wed, 31 Oct 2012 15:21:35 -0500
Message-ID: <CAFSKS=NwWWV1irb05-J9r7LPq9ZiBOc6eO1jiDkV-00UaY=kJQ@mail.gmail.com>
Subject: cross-compiling difficulties caused by running compiled programs
	during build
From: George McCollister <george.mccollister@gmail.com>
To: autoconf@gnu.org
Content-Type: text/plain; charset=ISO-8859-1
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 209.85.215.169
X-Mailman-Approved-At: Wed, 31 Oct 2012 16:25:33 -0400
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 31 Oct 2012 20:21:42 -0000

Anyone who has cross-compiled very many packages using autotools can
tell you that one major source of problems is when packages use $(CC)
to build a utility which is then executed to generate a file (often a
header) which is required for the build to proceed. Running an arm
binary on an x86_64 doesn't usually work unless you've tricked your
operating system into executing such files with an emulator :) From
what I've seen there seems to be several non-standard approaches to
dealing with this issue.

The first and most obvious solution is to do nothing and just try to
execute the host binary on the build machine.
Example:
https://fedorahosted.org/audit/browser/trunk/lib/Makefile.am lines 61-64

Another approach I've found is to use ac_prog_cc_for_build or
ax_prog_cc_for_build as described here:
http://www.gnu.org/software/autoconf-archive/ax_prog_cc_for_build.html
an example of this can be found in libgpg-error:
http://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgpg-error.git;a=blob;f=m4/ac_prog_cc_for_build.m4;h=42c91ce355271d614fde1ddb876302e28918272e;hb=HEAD
http://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgpg-error.git;a=blob;f=configure.ac;h=ee42f9e43a63606d10cf86f09a41d0ff8ec0fe61;hb=HEAD
(lines: 74-85)
http://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgpg-error.git;a=blob;f=src/Makefile.am;h=a84e3f0a65a99c7b6df6631cdca6b3043b3db6f7;hb=HEAD
(lines: 168-177)

The final approach seems to be accepting a configure switch or
environment variable to override the path of the program used so a
native version can be supplied instead.

Is there a correct approach to dealing with this issue? Is there
anything the authors of autotools could and should do to address this
going forward?

Cheers,
George McCollister


