From mortene@sim.no Mon Oct 02 13:27:47 2000
Received: from trh.sim.no ([195.1.220.136] helo=sim.no)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13g9NS-0003QW-00
	for <autoconf@gnu.org>; Mon, 02 Oct 2000 13:27:46 -0400
Received: (qmail 31037 invoked by uid 1114); 2 Oct 2000 17:27:44 -0000
To: autoconf-patches@gnu.org
Cc: autoconf@gnu.org
Subject: [PATCH] Serious problem with Autoconf on RedHat 7
From: Morten Eriksen <mortene@sim.no>
Date: 02 Oct 2000 19:27:43 +0200
Message-ID: <51k8brgnlc.fsf@trh.sim.no>
Lines: 113
User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.3
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

--=-=-=

Hi,

I don't know if this mail got through without losing a few electrons
due to the recent mailinglist hickups, so I'm resending it. With a
patch this time, so it might be easier to get it applied.  :^}

2000-10-02 Morten Eriksen <mortene@sim.no>

	* aclang.m4 (AC_LANG_SOURCE(C++)): don't define exit(), it'll
	mismatch with the native exit() definition on some platforms
	(happens at least with g++ 2.96 and glibc 2.1.92 on Red Hat Linux
	v7).


Regards,
Morten


--=-=-=
Content-Disposition: attachment; filename=try_compile_cpp.diff

Index: ChangeLog
===================================================================
RCS file: /cvs/autoconf/ChangeLog,v
retrieving revision 1.895
diff -u -r1.895 ChangeLog
--- ChangeLog	2000/10/02 13:11:27	1.895
+++ ChangeLog	2000/10/02 17:24:17
@@ -1,3 +1,10 @@
+2000-10-02 Morten Eriksen <mortene@sim.no>
+
+	* aclang.m4 (AC_LANG_SOURCE(C++)): don't define exit(), it'll
+	mismatch with the native exit() definition on some platforms
+	(happens at least with g++ 2.96 and glibc 2.1.92 on Red Hat Linux
+	v7).
+
 2000-10-02  Akim Demaille  <akim@epita.fr>
 
 	* aclang.m4 (_AC_LANG_ABBREV, _AC_LANG_ABBREV(C))
Index: aclang.m4
===================================================================
RCS file: /cvs/autoconf/aclang.m4,v
retrieving revision 1.68
diff -u -r1.68 aclang.m4
--- aclang.m4	2000/10/02 13:11:28	1.68
+++ aclang.m4	2000/10/02 17:19:28
@@ -412,9 +412,6 @@
 define([AC_LANG_SOURCE(C++)],
 [#line __oline__ "configure"
 #include "confdefs.h"
-#ifdef __cplusplus
-extern "C" void exit (int);
-#endif
 $1])
 
 

--=-=-=





--=-=-=
Content-Type: message/rfc822
Content-Disposition: inline

X-From-Line: autoconf-admin@gnu.org Fri Sep 29 16:18:43 2000
Return-Path: <autoconf-admin@gnu.org>
Delivered-To: mortene@sim.no
Received: (qmail 22021 invoked from network); 29 Sep 2000 16:18:43 -0000
Received: from unknown (HELO fencepost.gnu.org) (unknown)
  by unknown with SMTP; 29 Sep 2000 16:18:43 -0000
Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13f2rL-0000KX-00; Fri, 29 Sep 2000 12:18:03 -0400
Received: from trh.sim.no ([195.1.220.136] helo=sim.no)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13f2qV-0000K4-00
	for <autoconf@gnu.org>; Fri, 29 Sep 2000 12:17:12 -0400
Received: (qmail 22002 invoked by uid 1114); 29 Sep 2000 16:17:10 -0000
To: autoconf@gnu.org
Subject: Serious problem with Autoconf on RedHat 7
From: Morten Eriksen <mortene@sim.no>
X-Gnus-Mail-Source: file:/var/spool/mail/mortene
Message-ID: <51aecrxjei.fsf@trh.sim.no>
User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.3
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/
Date: 29 Sep 2000 18:17:09 +0200
Lines: 52
Xref: trh.sim.no swmgt:9818

Hi,

I just discovered a nasty problem with the latest CVS Autoconf on Red
Hat Linux v7 (default setup, i.e. with g++ 2.96). In short, the
AC_TRY_COMPILE in the configure.in script below will fail:

->8-->8--->8-->8--->8-->8--->8-->8--->8-->8--->8-->8--->8-->8--

AC_INIT(configure.in)
AC_LANG_CPLUSPLUS
AC_TRY_COMPILE([#include <stdlib.h>], [], , AC_MSG_ERROR(sorr-ee))
AC_OUTPUT()

->8-->8--->8-->8--->8-->8--->8-->8--->8-->8--->8-->8--->8-->8--

Here's the relevant part of config.log:

->8-->8--->8-->8--->8-->8--->8-->8--->8-->8--->8-->8--->8-->8--

[...]
configure:1141: g++ -c -g -O2  conftest.cpp >&5
In file included from configure:1135:
/usr/include/stdlib.h:578: declaration of `void exit (int) throw ()' 
throws different exceptions
configure:1132: than previous declaration `void exit (int)'
configure: failed program was:
#line 1130 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif
#include <stdlib.h>
int
main ()
{

  ;
  return 0;
}

->8-->8--->8-->8--->8-->8--->8-->8--->8-->8--->8-->8--->8-->8--

Now, this is obviously due to the "extern" forward declaration of
exit() not matching the exit() defined by the stdlib.h of GCC 2.96
when run as a C++ compiler.

Why is the explicit exit() declaration there anyway? Removing it will
of course make the configure script run correctly.

Regards,
Morten


--=-=-=--


From hyc@highlandsun.com Mon Oct 02 16:57:03 2000
Received: from lsmls01.we.mediaone.net ([24.130.1.20])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13gCdz-0005xw-00
	for <autoconf@gnu.org>; Mon, 02 Oct 2000 16:57:03 -0400
Received: from fiddle (we-24-30-125-98.we.mediaone.net [24.30.125.98])
	by lsmls01.we.mediaone.net (8.8.7/8.8.7) with SMTP id NAA03475;
	Mon, 2 Oct 2000 13:56:47 -0700 (PDT)
From: "Howard Chu" <hyc@highlandsun.com>
To: "Kurt D. Zeilenga" <Kurt@OpenLDAP.org>, <openldap-core@OpenLDAP.org>
Cc: <autoconf@gnu.org>
Subject: RE: libtool update likely breaks modules...
Date: Mon, 2 Oct 2000 13:54:29 -0700
Message-ID: <006501c02cb2$f4edcd40$0c01a8c0@fiddle.symas.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook 8.5, Build 4.71.2377.0
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0
In-Reply-To: <5.0.0.25.0.20001002133100.00a9e360@router.boolean.net>
Importance: Normal
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

It appears that the options to build only static libraries or only shared
libraries are still not in the 1.3 branch of libtool. They exist in the
multi-language/tagged branch.
This is going to be a problem for NT and AIX, unless they've fixed them to
use different library names for static and shared libraries. On both NT and
AIX, the same suffix is used for both static and shared libraries. The
normal libtool behavior is to build both static and shared when a platform
supports both. On NT and AIX this will result in unusable libraries because
the static and shared code will overwrite each other as compilation and
linking progress.

> -----Original Message-----
> From: owner-openldap-core@OpenLDAP.org
> [mailto:owner-openldap-core@OpenLDAP.org]On Behalf Of Kurt D. Zeilenga
> Sent: Monday, October 02, 2000 1:32 PM
> To: Howard Chu
> Cc: openldap-core@OpenLDAP.org
> Subject: RE: libtool update likely breaks modules...
>
>
> At 01:13 PM 10/2/00 -0700, Howard Chu wrote:
> >Yuck. You're probably right, I'll have to see what's changed in libtool
> >1.3.5.
> >I believe the "--only-static" flag has been renamed in 1.3.5, we have to
> >find
> >out what they're calling it now.
>
> Did you hack 1.3.3?  CVSweb seems to indicate you did...
>
>
> >> -----Original Message-----
> >> From: owner-openldap-core@OpenLDAP.org
> >> [mailto:owner-openldap-core@OpenLDAP.org]On Behalf Of Kurt D. Zeilenga
> >> Sent: Monday, October 02, 2000 1:02 PM
> >> To: openldap-core@OpenLDAP.org
> >> Subject: libtool update likely breaks modules...
> >>
> >>
> >> I assume the libtool update will breaks modules...
> >> Those desiring module support likely should sort
> >> out necessary changes...
> >>
> >> Kurt
> >>
>



From hyc@highlandsun.com Mon Oct 02 16:58:13 2000
Received: from lsmls01.we.mediaone.net ([24.130.1.20])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13gCf7-0005zM-00
	for <autoconf@gnu.org>; Mon, 02 Oct 2000 16:58:13 -0400
Received: from fiddle (we-24-30-125-98.we.mediaone.net [24.30.125.98])
	by lsmls01.we.mediaone.net (8.8.7/8.8.7) with SMTP id NAA04418;
	Mon, 2 Oct 2000 13:58:11 -0700 (PDT)
From: "Howard Chu" <hyc@highlandsun.com>
To: "Kurt D. Zeilenga" <Kurt@OpenLDAP.org>, <openldap-core@OpenLDAP.org>
Cc: <autoconf@gnu.org>
Subject: RE: libtool update likely breaks modules...
Date: Mon, 2 Oct 2000 13:55:53 -0700
Message-ID: <006601c02cb3$277ac7e0$0c01a8c0@fiddle.symas.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook 8.5, Build 4.71.2377.0
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0
Importance: Normal
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Sorry, this message was not intended for the autoconf list. Meant to copy to
the libtool list.

> -----Original Message-----
> From: Howard Chu [mailto:hyc@highlandsun.com]
> Sent: Monday, October 02, 2000 1:54 PM
> To: Kurt D. Zeilenga; openldap-core@OpenLDAP.org
> Cc: autoconf@gnu.org
> Subject: RE: libtool update likely breaks modules...
> >



From akim@epita.fr Tue Oct 03 04:07:52 2000
Received: from [194.98.116.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13gN7A-0004Lx-00; Tue, 03 Oct 2000 04:07:52 -0400
Received: from goa.lrde.epita.fr (goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id KAA11133
	Tue, 3 Oct 2000 10:08:40 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13gNDv-0002he-00; Tue, 03 Oct 2000 10:14:51 +0200
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13gNDr-00058G-00; Tue, 03 Oct 2000 10:14:47 +0200
To: Morten Eriksen <mortene@sim.no>
Cc: autoconf-patches@gnu.org, autoconf@gnu.org
Subject: Re: [PATCH] Serious problem with Autoconf on RedHat 7
References: <51k8brgnlc.fsf@trh.sim.no>
From: Akim Demaille <akim@epita.fr>
Date: 03 Oct 2000 10:14:47 +0200
In-Reply-To: Morten Eriksen's message of "02 Oct 2000 19:27:43 +0200"
Message-ID: <mv4itrafiiw.fsf@nostromo.lrde.epita.fr>
Lines: 45
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

| 2000-10-02 Morten Eriksen <mortene@sim.no>
| 
|         * aclang.m4 (AC_LANG_SOURCE(C++)): don't define exit(), it'll
|         mismatch with the native exit() definition on some platforms
|         (happens at least with g++ 2.96 and glibc 2.1.92 on Red Hat Linux
|         v7).
| 
| Index: ChangeLog
| ===================================================================
| RCS file: /cvs/autoconf/ChangeLog,v
| retrieving revision 1.895
| diff -u -r1.895 ChangeLog
| --- ChangeLog	2000/10/02 13:11:27	1.895
| +++ ChangeLog	2000/10/02 17:24:17
| @@ -1,3 +1,10 @@
| +2000-10-02 Morten Eriksen <mortene@sim.no>
| +
| +	* aclang.m4 (AC_LANG_SOURCE(C++)): don't define exit(), it'll
| +	mismatch with the native exit() definition on some platforms
| +	(happens at least with g++ 2.96 and glibc 2.1.92 on Red Hat Linux
| +	v7).
| +
|  2000-10-02  Akim Demaille  <akim@epita.fr>
|  
|         * aclang.m4 (_AC_LANG_ABBREV, _AC_LANG_ABBREV(C))
| Index: aclang.m4
| ===================================================================
| RCS file: /cvs/autoconf/aclang.m4,v
| retrieving revision 1.68
| diff -u -r1.68 aclang.m4
| --- aclang.m4	2000/10/02 13:11:28	1.68
| +++ aclang.m4	2000/10/02 17:19:28
| @@ -412,9 +412,6 @@
|  define([AC_LANG_SOURCE(C++)],
|  [#line __oline__ "configure"
|  #include "confdefs.h"
| -#ifdef __cplusplus
| -extern "C" void exit (int);
| -#endif
|  $1])

I'm in favor of this patch given that it applies only to C++.  Note
however, that it does not solve the problem for people who use CC=g++.



From mortene@sim.no Tue Oct 03 07:33:54 2000
Received: from trh.sim.no ([195.1.220.136] helo=sim.no)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13gQKX-0002Bu-00
	for <autoconf@gnu.org>; Tue, 03 Oct 2000 07:33:53 -0400
Received: (qmail 1485 invoked by uid 1114); 3 Oct 2000 11:04:13 -0000
To: Akim Demaille <akim@epita.fr>
Cc: autoconf-patches@gnu.org, autoconf@gnu.org
Subject: Re: [PATCH] Serious problem with Autoconf on RedHat 7
References: <51k8brgnlc.fsf@trh.sim.no> <mv4itrafiiw.fsf@nostromo.lrde.epita.fr>
From: Morten Eriksen <mortene@sim.no>
Date: 03 Oct 2000 13:04:12 +0200
In-Reply-To: Akim Demaille's message of "03 Oct 2000 10:14:47 +0200"
Message-ID: <51lmw6w5hv.fsf@trh.sim.no>
Lines: 46
User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.3
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Akim Demaille <akim@epita.fr> writes:

> | Index: aclang.m4
> | ===================================================================
> | RCS file: /cvs/autoconf/aclang.m4,v
> | retrieving revision 1.68
> | diff -u -r1.68 aclang.m4
> | --- aclang.m4	2000/10/02 13:11:28	1.68
> | +++ aclang.m4	2000/10/02 17:19:28
> | @@ -412,9 +412,6 @@
> |  define([AC_LANG_SOURCE(C++)],
> |  [#line __oline__ "configure"
> |  #include "confdefs.h"
> | -#ifdef __cplusplus
> | -extern "C" void exit (int);
> | -#endif
> |  $1])
> 
> I'm in favor of this patch given that it applies only to C++.  Note
> however, that it does not solve the problem for people who use
> CC=g++.

Are you sure there _is_ a problem when using CC=g++? I'm at least not
seeing any with this configure.in:

AC_INIT(configure.in)
AC_LANG_C
AC_TRY_COMPILE([#include <stdlib.h>], [], , AC_MSG_ERROR(sorr-ee))
AC_OUTPUT()

..and configure run like this:

  $ ./configure CC=g++

Which shouldn't be any surprise, as AC_LANG_SOURCE(C) does not add any
explicit exit() declaration, like AC_LANG_SOURCE(C++) does.

It'd be interesting to know what the ``extern "C" void exit (int);''
was doing there in the first place..?

BTW, the ``#ifdef __cplusplus'' also looks strange, given that the
macro name AC_LANG_SOURCE(C++) seems to assert that we are always
using a C++ compiler to compile the generated source file?

Regards,
Morten


From larsa@sim.no Tue Oct 03 07:42:02 2000
Received: from trh.sim.no ([195.1.220.136] helo=sim.no)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13gQSQ-0002JK-00
	for <autoconf@gnu.org>; Tue, 03 Oct 2000 07:42:02 -0400
Received: (qmail 1766 invoked by uid 2000); 3 Oct 2000 11:42:00 -0000
Message-ID: <20001003134200.A1762@sim.no>
Date: Tue, 3 Oct 2000 13:42:00 +0200
From: "Lars J. Aas" <larsa@sim.no>
To: autoconf@gnu.org
Subject: Re: [PATCH] Serious problem with Autoconf on RedHat 7
References: <51k8brgnlc.fsf@trh.sim.no> <mv4itrafiiw.fsf@nostromo.lrde.epita.fr> <51lmw6w5hv.fsf@trh.sim.no>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 0.93.2
In-Reply-To: <51lmw6w5hv.fsf@trh.sim.no>; from Morten Eriksen on Tue, Oct 03, 2000 at 01:04:12PM +0200
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On Tue, Oct 03, 2000 at 01:04:12PM +0200, Morten Eriksen wrote:
: Akim Demaille <akim@epita.fr> writes:
: > |  define([AC_LANG_SOURCE(C++)],
: > |  [#line __oline__ "configure"
: > |  #include "confdefs.h"
: > | -#ifdef __cplusplus
: > | -extern "C" void exit (int);
: > | -#endif
: > |  $1])
:
: BTW, the ``#ifdef __cplusplus'' also looks strange, given that the
: macro name AC_LANG_SOURCE(C++) seems to assert that we are always
: using a C++ compiler to compile the generated source file?

I agree.  I'd see more point in

  #ifndef __cplusplus
  #error something
  #endif

  Lars J


From akim@epita.fr Tue Oct 03 07:53:34 2000
Received: from [194.98.116.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13gQda-0002RJ-00
	for <autoconf@gnu.org>; Tue, 03 Oct 2000 07:53:34 -0400
Received: from goa.lrde.epita.fr (goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id NAA26740
	Tue, 3 Oct 2000 13:54:22 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13gQkO-0002xA-00; Tue, 03 Oct 2000 14:00:36 +0200
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13gQkM-0005aG-00; Tue, 03 Oct 2000 14:00:34 +0200
To: "Lars J. Aas" <larsa@sim.no>
Cc: autoconf@gnu.org
Subject: Re: [PATCH] Serious problem with Autoconf on RedHat 7
References: <51k8brgnlc.fsf@trh.sim.no>
	<mv4itrafiiw.fsf@nostromo.lrde.epita.fr> <51lmw6w5hv.fsf@trh.sim.no>
	<20001003134200.A1762@sim.no>
From: Akim Demaille <akim@epita.fr>
Date: 03 Oct 2000 14:00:33 +0200
In-Reply-To: "Lars J. Aas"'s message of "Tue, 3 Oct 2000 13:42:00 +0200"
Message-ID: <mv4aecmdti6.fsf@nostromo.lrde.epita.fr>
Lines: 23
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

| On Tue, Oct 03, 2000 at 01:04:12PM +0200, Morten Eriksen wrote:
| : Akim Demaille <akim@epita.fr> writes:
| : > |  define([AC_LANG_SOURCE(C++)],
| : > |  [#line __oline__ "configure"
| : > |  #include "confdefs.h"
| : > | -#ifdef __cplusplus
| : > | -extern "C" void exit (int);
| : > | -#endif
| : > |  $1])
| :
| : BTW, the ``#ifdef __cplusplus'' also looks strange, given that the
| : macro name AC_LANG_SOURCE(C++) seems to assert that we are always
| : using a C++ compiler to compile the generated source file?
| 
| I agree.  I'd see more point in
| 
|   #ifndef __cplusplus
|   #error something
|   #endif

This condition are the remains of the period where C and C++ shared
the same code.  But I don't think we need to check __cplusplus.


From akim@epita.fr Tue Oct 03 07:56:24 2000
Received: from [194.98.116.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13gQgJ-0002Tc-00; Tue, 03 Oct 2000 07:56:23 -0400
Received: from goa.lrde.epita.fr (goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id NAA26919
	Tue, 3 Oct 2000 13:57:12 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13gQn9-0002xx-00; Tue, 03 Oct 2000 14:03:27 +0200
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13gQn5-0005b0-00; Tue, 03 Oct 2000 14:03:23 +0200
To: Morten Eriksen <mortene@sim.no>
Cc: autoconf-patches@gnu.org, autoconf@gnu.org
Subject: Re: [PATCH] Serious problem with Autoconf on RedHat 7
References: <51k8brgnlc.fsf@trh.sim.no>
	<mv4itrafiiw.fsf@nostromo.lrde.epita.fr> <51lmw6w5hv.fsf@trh.sim.no>
From: Akim Demaille <akim@epita.fr>
Date: 03 Oct 2000 14:03:23 +0200
In-Reply-To: Morten Eriksen's message of "03 Oct 2000 13:04:12 +0200"
Message-ID: <mv466nadtdg.fsf@nostromo.lrde.epita.fr>
Lines: 50
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

| Akim Demaille <akim@epita.fr> writes:
| > | Index: aclang.m4
| > | ===================================================================
| > | RCS file: /cvs/autoconf/aclang.m4,v
| > | retrieving revision 1.68
| > | diff -u -r1.68 aclang.m4
| > | --- aclang.m4	2000/10/02 13:11:28	1.68
| > | +++ aclang.m4	2000/10/02 17:19:28
| > | @@ -412,9 +412,6 @@
| > |  define([AC_LANG_SOURCE(C++)],
| > |  [#line __oline__ "configure"
| > |  #include "confdefs.h"
| > | -#ifdef __cplusplus
| > | -extern "C" void exit (int);
| > | -#endif
| > |  $1])
| > 
| > I'm in favor of this patch given that it applies only to C++.  Note
| > however, that it does not solve the problem for people who use
| > CC=g++.
| 
| Are you sure there _is_ a problem when using CC=g++? I'm at least not
| seeing any with this configure.in:
| 
| AC_INIT(configure.in)
| AC_LANG_C
| AC_TRY_COMPILE([#include <stdlib.h>], [], , AC_MSG_ERROR(sorr-ee))

PLeeeeeeeeeeeeeeeeeeease, quote, especially when you pass macros as
arguments to macros:

AC_TRY_COMPILE([#include <stdlib.h>], [], , [AC_MSG_ERROR(sorr-ee)])

| AC_OUTPUT()
| 
| ..and configure run like this:
| 
|   $ ./configure CC=g++
| 
| Which shouldn't be any surprise, as AC_LANG_SOURCE(C) does not add any
| explicit exit() declaration, like AC_LANG_SOURCE(C++) does.

Ah.  Sorry, I thought there was one.

| It'd be interesting to know what the ``extern "C" void exit (int);''
| was doing there in the first place..?

In ancient times the same code was used for both languages.



From oliva@lsd.ic.unicamp.br Tue Oct 03 08:36:52 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13gRJO-00030K-00; Tue, 03 Oct 2000 08:36:49 -0400
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id e93CYRP25314;
	Tue, 3 Oct 2000 10:34:27 -0200
To: Morten Eriksen <mortene@sim.no>
Cc: autoconf-patches@gnu.org, autoconf@gnu.org
Subject: Re: [PATCH] Serious problem with Autoconf on RedHat 7
References: <51k8brgnlc.fsf@trh.sim.no>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 03 Oct 2000 10:34:27 -0200
In-Reply-To: Morten Eriksen's message of "02 Oct 2000 19:27:43 +0200"
Message-ID: <ork8bq85nw.fsf@guarana.lsd.ic.unicamp.br>
Lines: 39
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On Oct  2, 2000, Morten Eriksen <mortene@sim.no> wrote:

> 	* aclang.m4 (AC_LANG_SOURCE(C++)): don't define exit(), it'll
> 	mismatch with the native exit() definition on some platforms
> 	(happens at least with g++ 2.96 and glibc 2.1.92 on Red Hat Linux
> 	v7).

The problem is that, if we don't define it, we risk getting the tests
rejected due to the lack of a declaration of exit().  IIRC, the
declaration was put in because some C++ compiler wouldn't declare
exit(int) in stdlib.h and would reject translation units that called
exit() without declaring it.  Even though your particular example
doesn't call exit(int), some other tests do, and they don't take the
trouble of declaring exit(int) themselves.

I'm not sure what is the best way to go here.  Another potential
source of trouble is if a compiler only declares exit(int) in
namespace std.

Maybe AC_PROG_CXX should automatically check whether a translation
unit that #includes <stdlib.h> and calls exit() fails to compile, and
attempt to declare exit() otherwise.  Our Standard C++ template would
become:

#include "confdefs.h"
#if CXX_NEEDS_EXIT_DECL
extern "C" void exit (int);
#endif
#include <stdlib.h>

The first program we'd attempt to compile would determine wehther
CXX_NEEDS_EXIT_DECL, and #define it in confdefs.h, so that further
compilations would be able to tell whether to declare it or not.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From Wolfgang.Glas@hfm.tu-graz.ac.at Tue Oct 03 09:13:39 2000
Received: from ns1.tu-graz.ac.at ([129.27.2.3])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13gRt4-0003Pc-00
	for <autoconf@gnu.org>; Tue, 03 Oct 2000 09:13:39 -0400
Received: from fhysmsg01.tu-graz.ac.at (fhysmsg01.tu-graz.ac.at [129.27.111.13])
	by ns1.tu-graz.ac.at (8.9.3/8.9.3) with ESMTP id PAA18512
	for <autoconf@gnu.org>; Tue, 3 Oct 2000 15:13:30 +0200 (MET DST)
Received: from hfm.tu-graz.ac.at (localhost [127.0.0.1])
	by fhysmsg01.tu-graz.ac.at (SGI-SGI-8.9.3/8.9.3) with ESMTP id PAA10740
	for <autoconf@gnu.org>; Tue, 3 Oct 2000 15:13:10 +0200 (METDST)
Message-ID: <39D9DB66.4C5AB76F@hfm.tu-graz.ac.at>
Date: Tue, 03 Oct 2000 15:13:10 +0200
From: Wolfgang Glas <Wolfgang.Glas@hfm.tu-graz.ac.at>
Organization: TU-Graz
X-Mailer: Mozilla 4.7C-SGI [en] (X11; I; IRIX64 6.5 IP30)
X-Accept-Language: en
MIME-Version: 1.0
To: autoconf@gnu.org
Subject: Patch for autoconfig-2.13: AC_TRY_COMPILE plus F77.
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

I'm using autoconfig-2.13 at an IRIX6.5 workstation using gcc-2.95.2.
I recognized, that AC_TRY_COMPILE doesn't run with f77 programs, because the
conftest.f program, which is implicitly created by the shell script with

cat > conftest.f << EOF
      program main
....
      endEOF

contains mor than the above snipped lines, because my shell does not stop at
EOF.
The following small patch solves my problem by introducing an additional newline
in
acgeneral.m4:

----------output of diff -c acgeneral.m4.orig acgeneral.m4 ----------------
*** acgeneral.m4.orig   Tue Jan  5 14:27:37 1999
--- acgeneral.m4        Tue Oct  3 14:53:55 2000
***************
*** 1727,1733 ****
  ifelse(AC_LANG, [FORTRAN77],
  [      program main
  [$2]
!       end],
  [dnl This sometimes fails to find confdefs.h, for some reason.
  dnl [#]line __oline__ "[$]0"
  [#]line __oline__ "configure"
--- 1727,1734 ----
  ifelse(AC_LANG, [FORTRAN77],
  [      program main
  [$2]
!       end
! ],
  [dnl This sometimes fails to find confdefs.h, for some reason.
  dnl [#]line __oline__ "[$]0"
  [#]line __oline__ "configure"
--------------------------------------------------------------------------

I'd appreciate, if you checked in my patch for availability in later versions of
autoconfig.


Sincerely,

    Wolfgang Glas

--
Mag. Wolfgang Glas                       Tel:    ++43-316-873-7578
Institute for Hydraulic Fluidmachinery   Fax:    ++43-316-873-7577
Kopernikusgasse 24/IV                    e-mail: Wolfgang.Glas@hfm.tu-graz.ac.at
A-8010 Graz


From Dautrevaux@microprocess.com Tue Oct 03 09:44:23 2000
Received: from [194.206.157.151] (helo=iis000.microdata.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13gSMo-0003un-00; Tue, 03 Oct 2000 09:44:23 -0400
Received: by IIS000 with Internet Mail Service (5.5.2650.21)
	id <SYHTBBV3>; Tue, 3 Oct 2000 15:34:40 +0200
Message-ID: <17B78BDF120BD411B70100500422FC6309E117@IIS000>
From: Bernard Dautrevaux <Dautrevaux@microprocess.com>
To: 'Alexandre Oliva' <oliva@lsd.ic.unicamp.br>, Morten Eriksen
	 <mortene@sim.no>
Cc: autoconf-patches@gnu.org, autoconf@gnu.org
Subject: RE: [PATCH] Serious problem with Autoconf on RedHat 7
Date: Tue, 3 Oct 2000 15:34:35 +0200 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

> -----Original Message-----
> From: Alexandre Oliva [mailto:oliva@lsd.ic.unicamp.br]
> Sent: Tuesday, October 03, 2000 2:34 PM
> To: Morten Eriksen
> Cc: autoconf-patches@gnu.org; autoconf@gnu.org
> Subject: Re: [PATCH] Serious problem with Autoconf on RedHat 7
> 
> 
> On Oct  2, 2000, Morten Eriksen <mortene@sim.no> wrote:
> 
> > 	* aclang.m4 (AC_LANG_SOURCE(C++)): don't define exit(), it'll
> > 	mismatch with the native exit() definition on some platforms
> > 	(happens at least with g++ 2.96 and glibc 2.1.92 on Red 
> Hat Linux
> > 	v7).
> 
> The problem is that, if we don't define it, we risk getting the tests
> rejected due to the lack of a declaration of exit().  IIRC, the
> declaration was put in because some C++ compiler wouldn't declare
> exit(int) in stdlib.h and would reject translation units that called
> exit() without declaring it.  Even though your particular example
> doesn't call exit(int), some other tests do, and they don't take the
> trouble of declaring exit(int) themselves.
> 
> I'm not sure what is the best way to go here.  Another potential
> source of trouble is if a compiler only declares exit(int) in
> namespace std.
> 
> Maybe AC_PROG_CXX should automatically check whether a translation
> unit that #includes <stdlib.h> and calls exit() fails to compile, and
> attempt to declare exit() otherwise.  Our Standard C++ template would
> become:
> 
> #include "confdefs.h"
> #if CXX_NEEDS_EXIT_DECL
> extern "C" void exit (int);
> #endif
> #include <stdlib.h>
> 
> The first program we'd attempt to compile would determine wehther
> CXX_NEEDS_EXIT_DECL, and #define it in confdefs.h, so that further
> compilations would be able to tell whether to declare it or not.
> 

Anyway, this test should be a standard C++ test, defining
CXX_NEEDS_EXIT_DECL in config.h, so that I can test it in my own programs;
for now I've always assumed "exit()" to be available after #including
<stdlib.h> and if you're right I w'll get in trouble some day :-)

Regards,

	Bernard

--------------------------------------------
Bernard Dautrevaux
Microprocess Ingenierie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel:	+33 (0) 1 47 68 80 80
Fax:	+33 (0) 1 47 88 97 85
e-mail:	dautrevaux@microprocess.com
		b.dautrevaux@usa.net
-------------------------------------------- 


From akim@epita.fr Tue Oct 03 09:55:50 2000
Received: from [194.98.116.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13gSXs-00041y-00; Tue, 03 Oct 2000 09:55:49 -0400
Received: from goa.lrde.epita.fr (goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id PAA04017
	Tue, 3 Oct 2000 15:55:33 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13gSdh-00038I-00; Tue, 03 Oct 2000 16:01:49 +0200
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13gSdc-0005kw-00; Tue, 03 Oct 2000 16:01:44 +0200
To: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Cc: Morten Eriksen <mortene@sim.no>, autoconf-patches@gnu.org,
        autoconf@gnu.org
Subject: Re: [PATCH] Serious problem with Autoconf on RedHat 7
References: <51k8brgnlc.fsf@trh.sim.no>
	<ork8bq85nw.fsf@guarana.lsd.ic.unicamp.br>
From: Akim Demaille <akim@epita.fr>
Date: 03 Oct 2000 16:01:44 +0200
In-Reply-To: Alexandre Oliva's message of "03 Oct 2000 10:34:27 -0200"
Message-ID: <mv4n1gmc9br.fsf@nostromo.lrde.epita.fr>
Lines: 49
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "Alexandre" == Alexandre Oliva <oliva@lsd.ic.unicamp.br> writes:

Alexandre> On Oct 2, 2000, Morten Eriksen <mortene@sim.no> wrote:
>> * aclang.m4 (AC_LANG_SOURCE(C++)): don't define exit(), it'll
>> mismatch with the native exit() definition on some platforms
>> (happens at least with g++ 2.96 and glibc 2.1.92 on Red Hat Linux
>> v7).

Alexandre> The problem is that, if we don't define it, we risk getting
Alexandre> the tests rejected due to the lack of a declaration of
Alexandre> exit().  IIRC, the declaration was put in because some C++
Alexandre> compiler wouldn't declare exit(int) in stdlib.h and would
Alexandre> reject translation units that called exit() without
Alexandre> declaring it.  Even though your particular example doesn't
Alexandre> call exit(int), some other tests do, and they don't take
Alexandre> the trouble of declaring exit(int) themselves.

Alexandre> I'm not sure what is the best way to go here.  Another
Alexandre> potential source of trouble is if a compiler only declares
Alexandre> exit(int) in namespace std.

Alexandre> Maybe AC_PROG_CXX should automatically check whether a
Alexandre> translation unit that #includes <stdlib.h> and calls exit()
Alexandre> fails to compile, and attempt to declare exit() otherwise.
Alexandre> Our Standard C++ template would become:

Alexandre> #include "confdefs.h" #if CXX_NEEDS_EXIT_DECL extern "C"
Alexandre> void exit (int); #endif #include <stdlib.h>

Alexandre> The first program we'd attempt to compile would determine
Alexandre> wehther CXX_NEEDS_EXIT_DECL, and #define it in confdefs.h,
Alexandre> so that further compilations would be able to tell whether
Alexandre> to declare it or not.

This is again a lot of deep work that should be delayed til we
completely revamp some aspects of Autoconf (as we intend to do that
catch up with C99).

My personal preference is not to use exit, and to encourage the use of
return in main.

Nevertheless, I don't have your experience, so if you think this is
not the way to go, if you think we will face such C++ compilers, then
yes, using AC_CHECK_DECL seems required.

But again, we're going onto a slippery road with lots of problems of
interdependency between macros.

        Akim


From oliva@lsd.ic.unicamp.br Tue Oct 03 09:58:31 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13gSaT-00043u-00; Tue, 03 Oct 2000 09:58:30 -0400
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id e93DvVn27385;
	Tue, 3 Oct 2000 11:57:31 -0200
To: Bernard Dautrevaux <Dautrevaux@microprocess.com>
Cc: Morten Eriksen <mortene@sim.no>, autoconf-patches@gnu.org,
   autoconf@gnu.org
Subject: Re: [PATCH] Serious problem with Autoconf on RedHat 7
References: <17B78BDF120BD411B70100500422FC6309E117@IIS000>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 03 Oct 2000 11:57:30 -0200
In-Reply-To: Bernard Dautrevaux's message of "Tue, 3 Oct 2000 15:34:35 +0200"
Message-ID: <orya066n91.fsf@guarana.lsd.ic.unicamp.br>
Lines: 17
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On Oct  3, 2000, Bernard Dautrevaux <Dautrevaux@microprocess.com> wrote:

> Anyway, this test should be a standard C++ test, defining
> CXX_NEEDS_EXIT_DECL in config.h, so that I can test it in my own programs;
> for now I've always assumed "exit()" to be available after #including
> <stdlib.h> and if you're right I w'll get in trouble some day :-)

Well, maybe I'm just being too paranoid.  The C++ Standard requires
`#include <stdlib.h>' to work just like in C.  But what if some OS
didn't provide a declaration of exit(int) in stdlib.h, and the C++
compiler happens to just use the stdlib.h offered by the OS?

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From proski@gnu.org Tue Oct 03 15:43:26 2000
Received: from rokslava.transcept.com ([208.151.20.130])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13gXyI-0000fG-00
	for <autoconf@gnu.org>; Tue, 03 Oct 2000 15:43:26 -0400
Received: from sunapee.transcept.com by rokslava.transcept.com
          via smtpd (for fencepost.GNU.org [199.232.76.164]) with SMTP; 3 Oct 2000 19:19:01 UT
Received: from sunapee.transcept.com (sunapee.transcept.com [129.86.50.245])
	by sunapee.transcept.com (8.9.3/8.9.3) with ESMTP id PAA25528;
	Tue, 3 Oct 2000 15:42:39 -0400
Date: Tue, 3 Oct 2000 15:42:39 -0400 (EDT)
From: Pavel Roskin <proski@gnu.org>
X-Sender: proskin@sunapee.transcept.com
To: Wolfgang Glas <Wolfgang.Glas@hfm.tu-graz.ac.at>
cc: autoconf@gnu.org
Subject: Re: Patch for autoconfig-2.13: AC_TRY_COMPILE plus F77.
In-Reply-To: <39D9DB66.4C5AB76F@hfm.tu-graz.ac.at>
Message-ID: <Pine.LNX.4.21.0010031537060.22957-100000@sunapee.transcept.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hello, Wolfgang!

> cat > conftest.f << EOF
>       program main
> ....
>       endEOF

The Fortran 77 support has been rewritten in the CVS version of Autoconf.
I couldn't reproduce your problem. "end" is always followed by a newline
in the configure scripts.

> I'd appreciate, if you checked in my patch for availability in later
> versions of autoconfig.

It's not applicable.

You are encouraged to test the current version of Autoconf. It is
considered as quite stable, but the Fortran 77 support still requires
work.

Regards,
Pavel Roskin



From peter_e@gmx.net Tue Oct 03 19:37:11 2000
Received: from mailout04.sul.t-online.com ([194.25.134.18])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13gbcV-0003rm-00
	for <autoconf@gnu.org>; Tue, 03 Oct 2000 19:37:11 -0400
Received: from fmrl02.sul.t-online.de 
	by mailout04.sul.t-online.com with smtp 
	id 13gbcT-0001OI-00; Wed, 04 Oct 2000 01:37:09 +0200
Received: from peter.localdomain (520083510237-0001@[212.185.245.57]) by fmrl02.sul.t-online.com
	with esmtp id 13gbcS-0hZQSuC; Wed, 4 Oct 2000 01:37:08 +0200
Date: Wed, 4 Oct 2000 01:40:58 +0200 (CEST)
From: Peter Eisentraut <peter_e@gmx.net>
To: autoconf@gnu.org
Subject: AC_CHECK_FILE and cross-compilation
Message-ID: <Pine.LNX.4.21.0010040138300.1057-100000@peter.localdomain>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sender: 520083510237-0001@t-dialin.net
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Why can't I use AC_CHECK_FILE when cross-compiling?  If I need to look for
a file that is used during the build then that has nothing to do with what
the compiler does.

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/



From akim@epita.fr Wed Oct 04 04:23:32 2000
Received: from [194.98.116.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13gjpr-0000Iq-00
	for <autoconf@gnu.org>; Wed, 04 Oct 2000 04:23:32 -0400
Received: from goa.lrde.epita.fr (goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id KAA18085
	Wed, 4 Oct 2000 10:24:20 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13gjwz-0004QK-00; Wed, 04 Oct 2000 10:30:53 +0200
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13gjww-0003tC-00; Wed, 04 Oct 2000 10:30:50 +0200
To: Peter Eisentraut <peter_e@gmx.net>
Cc: autoconf@gnu.org
Subject: Re: AC_CHECK_FILE and cross-compilation
References: <Pine.LNX.4.21.0010040138300.1057-100000@peter.localdomain>
From: Akim Demaille <akim@epita.fr>
Date: 04 Oct 2000 10:30:49 +0200
In-Reply-To: Peter Eisentraut's message of "Wed, 4 Oct 2000 01:40:58 +0200 (CEST)"
Message-ID: <mv4bsx19feu.fsf@nostromo.lrde.epita.fr>
Lines: 9
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "Peter" == Peter Eisentraut <peter_e@gmx.net> writes:

Peter> Why can't I use AC_CHECK_FILE when cross-compiling?  If I need
Peter> to look for a file that is used during the build then that has
Peter> nothing to do with what the compiler does.

Then just don't use it :)  I don't understand the existence of this
macro, it seems an error to me.  If you're looking for some files,
you'd better do that at runtime.


From peter_e@gmx.net Wed Oct 04 06:57:44 2000
Received: from mailout03.sul.t-online.com ([194.25.134.81])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13gmF6-0005bq-00
	for <autoconf@gnu.org>; Wed, 04 Oct 2000 06:57:44 -0400
Received: from fmrl03.sul.t-online.de 
	by mailout03.sul.t-online.com with smtp 
	id 13gmF1-0008Il-03; Wed, 04 Oct 2000 12:57:40 +0200
Received: from peter.localdomain (520083510237-0001@[212.185.245.82]) by fmrl03.sul.t-online.com
	with esmtp id 13gmEp-0yra9gC; Wed, 4 Oct 2000 12:57:27 +0200
Date: Wed, 4 Oct 2000 13:01:18 +0200 (CEST)
From: Peter Eisentraut <peter_e@gmx.net>
To: Akim Demaille <akim@epita.fr>
cc: autoconf@gnu.org
Subject: Re: AC_CHECK_FILE and cross-compilation
In-Reply-To: <mv4bsx19feu.fsf@nostromo.lrde.epita.fr>
Message-ID: <Pine.LNX.4.21.0010041256240.934-100000@peter.localdomain>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sender: 520083510237-0001@t-dialin.net
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Akim Demaille writes:

> Peter> Why can't I use AC_CHECK_FILE when cross-compiling?  If I need
> Peter> to look for a file that is used during the build then that has
> Peter> nothing to do with what the compiler does.
> 
> Then just don't use it :)  I don't understand the existence of this
> macro, it seems an error to me.  If you're looking for some files,
> you'd better do that at runtime.

The macro seems fine in concept, there's nothing wrong with looking for a
file while building.  (Heck, header files and programs are just files,
no?)

For example, I need to find the modular DocBook stylesheets to build the
documentation of a package.  The found file will be passed on the command
line to jade.  Now this macros tells me that I can't build my
documentation when I'm cross-compiling?  I don't think so.

I think you should just remove the cross check from the macro and perhaps
make a point in the documentation to remind users to check for build
system not host system features.  I'd be happy to write this up.

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/



From proski@gnu.org Wed Oct 04 13:23:25 2000
Received: from rokslava.transcept.com ([208.151.20.130])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13gsGL-0001KT-00
	for <autoconf@gnu.org>; Wed, 04 Oct 2000 13:23:25 -0400
Received: from sunapee.transcept.com by rokslava.transcept.com
          via smtpd (for fencepost.gnu.org [199.232.76.164]) with SMTP; 4 Oct 2000 16:58:56 UT
Received: from sunapee.transcept.com (sunapee.transcept.com [129.86.50.245])
	by sunapee.transcept.com (8.9.3/8.9.3) with ESMTP id NAA22911;
	Wed, 4 Oct 2000 13:22:44 -0400
Date: Wed, 4 Oct 2000 13:22:44 -0400 (EDT)
From: Pavel Roskin <proski@gnu.org>
X-Sender: proskin@sunapee.transcept.com
To: Akim Demaille <akim@epita.fr>
cc: Peter Eisentraut <peter_e@gmx.net>, autoconf@gnu.org
Subject: Re: AC_CHECK_FILE and cross-compilation
In-Reply-To: <mv4bsx19feu.fsf@nostromo.lrde.epita.fr>
Message-ID: <Pine.LNX.4.21.0010041314210.22905-100000@sunapee.transcept.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hello, Akim!

> Peter> Why can't I use AC_CHECK_FILE when cross-compiling?  If I need
> Peter> to look for a file that is used during the build then that has
> Peter> nothing to do with what the compiler does.

I agree, this limitation seems ridiculous. But it's documented: "Check
whether file FILE exists on the native system."

> Then just don't use it :)  I don't understand the existence of this
> macro, it seems an error to me.  If you're looking for some files,
> you'd better do that at runtime.

We could change the autoconf-time warning type from "cross" to "obsolete"
to prepare ground for removal AC_CHECK_FILE[S] after 2.50.

Regards,
Pavel Roskin



From akim@epita.fr Wed Oct 04 13:30:01 2000
Received: from [194.98.116.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13gsMi-0001OZ-00; Wed, 04 Oct 2000 13:30:00 -0400
Received: from goa.lrde.epita.fr (goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id TAA27799
	Wed, 4 Oct 2000 19:30:50 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13gsTz-0005Ex-00; Wed, 04 Oct 2000 19:37:31 +0200
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13gsTv-00043j-00; Wed, 04 Oct 2000 19:37:27 +0200
To: Pavel Roskin <proski@gnu.org>
Cc: Peter Eisentraut <peter_e@gmx.net>, autoconf@gnu.org
Subject: Re: AC_CHECK_FILE and cross-compilation
References: <Pine.LNX.4.21.0010041314210.22905-100000@sunapee.transcept.com>
From: Akim Demaille <akim@epita.fr>
Date: 04 Oct 2000 19:37:27 +0200
In-Reply-To: Pavel Roskin's message of "Wed, 4 Oct 2000 13:22:44 -0400 (EDT)"
Message-ID: <mv48zs44ieg.fsf@nostromo.lrde.epita.fr>
Lines: 35
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "Pavel" == Pavel Roskin <proski@gnu.org> writes:

Pavel> Hello, Akim!

Hi there!

> Why can't I use AC_CHECK_FILE when cross-compiling?  If I need
> to look for a file that is used during the build then that has
> nothing to do with what the compiler does.

Pavel> I agree, this limitation seems ridiculous. But it's documented:
Pavel> "Check whether file FILE exists on the native system."

Well, if people agree this is reasonable, then I certainly won't fight
against this.  The point was that Ken (IIRC he is the one who wrote
this macro) was using it for checking for the existence of
/dev/... and things like /etc/passwd...

These files, of course, are related to the host, certainly not the
build machine.  That's why he decided to die when cross compiling.

I'm not in favor of removing this ``limitation'' because this macro
addresses well its point.  If you want to check for the presence of a
DTD etc., then sorry, but it seems to me that it's a runtime issue.

If you really need to check for the existence of a file for the
*build* process, then AC_CHECK_FILE is just overkill: enjoy test -f!

And yes, AC_CHECK_FUNC checks for the presence of files, but *build*
files, not host files, so it is right.


I'm not *against* releasing the limitations, but it makes perfect
sense to me.  I'm not convinced yet it's wrong.  You have to convince
me you need AC_CHECK_FILE and not just test -f.


From akim@epita.fr Wed Oct 04 13:33:07 2000
Received: from [194.98.116.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13gsPj-0001Qi-00
	for <autoconf@gnu.org>; Wed, 04 Oct 2000 13:33:07 -0400
Received: from goa.lrde.epita.fr (goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id TAA28014
	Wed, 4 Oct 2000 19:33:57 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13gsX0-0005FL-00; Wed, 04 Oct 2000 19:40:38 +0200
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13gsWx-00044r-00; Wed, 04 Oct 2000 19:40:35 +0200
To: Peter Eisentraut <peter_e@gmx.net>
Cc: autoconf@gnu.org
Subject: Re: AC_CHECK_FILE and cross-compilation
References: <Pine.LNX.4.21.0010041256240.934-100000@peter.localdomain>
From: Akim Demaille <akim@epita.fr>
Date: 04 Oct 2000 19:40:35 +0200
In-Reply-To: Peter Eisentraut's message of "Wed, 4 Oct 2000 13:01:18 +0200 (CEST)"
Message-ID: <mv44s2s4i98.fsf@nostromo.lrde.epita.fr>
Lines: 14
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "Peter" == Peter Eisentraut <peter_e@gmx.net> writes:

Peter> For example, I need to find the modular DocBook stylesheets to
Peter> build the documentation of a package.  The found file will be
Peter> passed on the command line to jade.  Now this macros tells me
Peter> that I can't build my documentation when I'm cross-compiling?
Peter> I don't think so.

Hm, I just realize I misunderstood your DTD example, sorry.

Well, I think your use does not fall into the purpose of
AC_CHECK_FILE.  Maybe we need two macros.

Hm... I don't know...  Sorry for the noise :)


From proski@gnu.org Wed Oct 04 13:56:34 2000
Received: from rokslava.transcept.com ([208.151.20.130])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13gsmQ-0001lH-00
	for <autoconf@gnu.org>; Wed, 04 Oct 2000 13:56:34 -0400
Received: from sunapee.transcept.com by rokslava.transcept.com
          via smtpd (for fencepost.gnu.org [199.232.76.164]) with SMTP; 4 Oct 2000 17:32:05 UT
Received: from sunapee.transcept.com (sunapee.transcept.com [129.86.50.245])
	by sunapee.transcept.com (8.9.3/8.9.3) with ESMTP id NAA23019;
	Wed, 4 Oct 2000 13:55:58 -0400
Date: Wed, 4 Oct 2000 13:55:58 -0400 (EDT)
From: Pavel Roskin <proski@gnu.org>
X-Sender: proskin@sunapee.transcept.com
To: Akim Demaille <akim@epita.fr>
cc: Peter Eisentraut <peter_e@gmx.net>, autoconf@gnu.org
Subject: Re: AC_CHECK_FILE and cross-compilation
In-Reply-To: <mv48zs44ieg.fsf@nostromo.lrde.epita.fr>
Message-ID: <Pine.LNX.4.21.0010041342320.22998-100000@sunapee.transcept.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hello, Akim!

> I'm not in favor of removing this ``limitation'' because this macro
> addresses well its point.  If you want to check for the presence of a
> DTD etc., then sorry, but it seems to me that it's a runtime issue.

The message about DTD didn't reach me (mail problems again?) but I could
read it on the web.

The Autoconf's way is to create conftest.sgml that is the minimal file
allowed by the DTD and test whether it can be successfuly processed.

The Automake's way is to make "missing" emulate jade or whatever you want.

What I recently did in the Midnight Commander was protecting all that
stuff with AM_MAINTAINER_MODE, but I realize that it's not the ideal
solution.

> If you really need to check for the existence of a file for the
> *build* process, then AC_CHECK_FILE is just overkill: enjoy test -f!

I fully agree.

> And yes, AC_CHECK_FUNC checks for the presence of files, but *build*
> files, not host files, so it is right.

I don't know any programming language except sed (with its clueless
"r") that cannot check the existance of files at the runtime and act
differently dependent on whether the file in question exists.

> I'm not *against* releasing the limitations, but it makes perfect
> sense to me.  I'm not convinced yet it's wrong.  You have to convince
> me you need AC_CHECK_FILE and not just test -f.

The end of my message that you didn't quote suggested _removing_ (not
relaxing!) AC_CHECK_FILE after Autoconf-2.50 is released.

Regards,
Pavel Roskin



From oliva@lsd.ic.unicamp.br Wed Oct 04 15:49:47 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13guXx-0003Av-00; Wed, 04 Oct 2000 15:49:46 -0400
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id e94Jmtw23324;
	Wed, 4 Oct 2000 17:48:55 -0200
To: Akim Demaille <akim@epita.fr>
Cc: Pavel Roskin <proski@gnu.org>, Peter Eisentraut <peter_e@gmx.net>,
   autoconf@gnu.org
Subject: Re: AC_CHECK_FILE and cross-compilation
References: <Pine.LNX.4.21.0010041314210.22905-100000@sunapee.transcept.com>
	<mv48zs44ieg.fsf@nostromo.lrde.epita.fr>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 04 Oct 2000 17:48:54 -0200
In-Reply-To: Akim Demaille's message of "04 Oct 2000 19:37:27 +0200"
Message-ID: <ork8bopeu1.fsf@guarana.lsd.ic.unicamp.br>
Lines: 22
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On Oct  4, 2000, Akim Demaille <akim@epita.fr> wrote:

> I'm not in favor of removing this ``limitation'' because this macro
> addresses well its point.  If you want to check for the presence of a
> DTD etc., then sorry, but it seems to me that it's a runtime issue.

The good thing about AC_CHECK_FILE is that, when doing a cross build,
it will tell the user building the program that he's got to figure out
by himself whether a certain file will be available on the host system
and tell `configure' so.  When not cross building, `test -f' can ease
the users' life.  When testing for properties of the build system, one
shouldn't use this macro.  This should be better documented.  But I
don't think we should have a macro to test for files in the build
platform, since that might lead people to just use it instead of
AC_CHECK_FILE to get rid of the warning, without understanding the
real consequences of doing it.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From peter_e@gmx.net Wed Oct 04 16:30:32 2000
Received: from mailout03.sul.t-online.com ([194.25.134.81])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13gvBP-0003n1-00
	for <autoconf@gnu.org>; Wed, 04 Oct 2000 16:30:32 -0400
Received: from fmrl03.sul.t-online.de 
	by mailout03.sul.t-online.com with smtp 
	id 13gvBO-0000b1-00; Wed, 04 Oct 2000 22:30:30 +0200
Received: from peter.localdomain (520083510237-0001@[212.185.245.107]) by fmrl03.sul.t-online.com
	with esmtp id 13gvBF-21kZfcC; Wed, 4 Oct 2000 22:30:21 +0200
Date: Wed, 4 Oct 2000 22:34:14 +0200 (CEST)
From: Peter Eisentraut <peter_e@gmx.net>
To: autoconf@gnu.org
Subject: Files on host vs build
Message-ID: <Pine.LNX.4.21.0010042224490.934-100000@peter.localdomain>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sender: 520083510237-0001@t-dialin.net
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

With all this talk about files on host and build systems, I have another
issue on my mind, and it is Autoconf itself that is the culprit (amongst
countless other packages).

The Autoconf configure script looks for Perl and substitutes the found
program into autoscan.pl.  Similarly, it takes the value of SHELL that it
gets in puts it into various *.sh programs.  Isn't that a violation of the
host vs build principle?  The Perl interpreter on the host machine could
be somewhere else.  The shell might be different.  With Shell and Perl
this might not be such a large problem, but other packages do this with
Tcl, Python, ipcs, echo(!), etc.

The purist would answer "You need to check for XXX at run time."  Should
this be done here?

(How this comes back to AC_CHECK_FILE:  It can be perfectly valid to check
for a file on the build system, if you use it right.  It can also be
perfectly *invalid* to check for a program on the build system, if you use
it wrong.  Autoconf shouldn't lay traps if it doesn't have all the
details.)

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/



From peter_e@gmx.net Wed Oct 04 16:35:18 2000
Received: from mailout03.sul.t-online.com ([194.25.134.81])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13gvG1-0003pe-00; Wed, 04 Oct 2000 16:35:18 -0400
Received: from fmrl01.sul.t-online.de 
	by mailout03.sul.t-online.com with smtp 
	id 13gvFy-0005k5-00; Wed, 04 Oct 2000 22:35:14 +0200
Received: from peter.localdomain (520083510237-0001@[212.185.245.107]) by fmrl01.sul.t-online.com
	with esmtp id 13gvFs-1JC6LYC; Wed, 4 Oct 2000 22:35:08 +0200
Date: Wed, 4 Oct 2000 22:39:01 +0200 (CEST)
From: Peter Eisentraut <peter_e@gmx.net>
To: Akim Demaille <akim@epita.fr>
cc: Pavel Roskin <proski@gnu.org>, autoconf@gnu.org
Subject: Re: AC_CHECK_FILE and cross-compilation
In-Reply-To: <mv48zs44ieg.fsf@nostromo.lrde.epita.fr>
Message-ID: <Pine.LNX.4.21.0010042234430.934-100000@peter.localdomain>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sender: 520083510237-0001@t-dialin.net
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Akim Demaille writes:

> I'm not *against* releasing the limitations, but it makes perfect
> sense to me.  I'm not convinced yet it's wrong.  You have to convince
> me you need AC_CHECK_FILE and not just test -f.

What happened to the initiative to replace all shell constructs with AC_*
macros?  (AC_SHELL_IFELSE, etc.)  That's actually how I came across this.  
Sure I can use test -f, but I can also use if/elif/fi myself.  Consider my
question one of coding style.

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/



From oliva@lsd.ic.unicamp.br Wed Oct 04 16:42:36 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13gvN4-0003wy-00
	for <autoconf@gnu.org>; Wed, 04 Oct 2000 16:42:35 -0400
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id e94KgGA23911;
	Wed, 4 Oct 2000 18:42:16 -0200
To: Peter Eisentraut <peter_e@gmx.net>
Cc: autoconf@gnu.org
Subject: Re: Files on host vs build
References: <Pine.LNX.4.21.0010042224490.934-100000@peter.localdomain>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 04 Oct 2000 18:42:16 -0200
In-Reply-To: Peter Eisentraut's message of "Wed, 4 Oct 2000 22:34:14 +0200 (CEST)"
Message-ID: <orya04mj87.fsf@guarana.lsd.ic.unicamp.br>
Lines: 19
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On Oct  4, 2000, Peter Eisentraut <peter_e@gmx.net> wrote:

> Similarly, it takes the value of SHELL that it gets in puts it into
> various *.sh programs.  Isn't that a violation of the host vs build
> principle?

You have a very good point.

The only solution I can see for this problem is to have both
VAR_FOR_HOST and VAR_FOR_BUILD, instead of just VAR.  When
not cross-compiling, both would default from just VAR, if VAR is set,
but for programs that support cross-compilation, this distinction is
important, and AC_PATH_PROG just isn't enough :-(

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From peter_e@gmx.net Thu Oct 05 12:13:48 2000
Received: from mailout01.sul.t-online.com ([194.25.134.80])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13hDeV-0003fS-00
	for <autoconf@gnu.org>; Thu, 05 Oct 2000 12:13:47 -0400
Received: from fmrl00.sul.t-online.de 
	by mailout01.sul.t-online.com with smtp 
	id 13hDeR-000101-01; Thu, 05 Oct 2000 18:13:43 +0200
Received: from peter.localdomain (520083510237-0001@[212.185.245.78]) by fmrl00.sul.t-online.com
	with esmtp id 13hDeQ-0CLH6mC; Thu, 5 Oct 2000 18:13:42 +0200
Date: Thu, 5 Oct 2000 18:17:36 +0200 (CEST)
From: Peter Eisentraut <peter_e@gmx.net>
To: autoconf@gnu.org
Subject: Checking for global variables
Message-ID: <Pine.LNX.4.21.0010051811430.936-100000@peter.localdomain>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sender: 520083510237-0001@t-dialin.net
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

I've noticed that you can use AC_CHECK_FUNC to check for the existence of
global variables.  Is it portable to do that?  Does someone have a better
idea (short of writing AC_TRY_LINK, etc. for each)?

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/



From oliva@lsd.ic.unicamp.br Thu Oct 05 13:21:04 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13hEhZ-0004e9-00
	for <autoconf@gnu.org>; Thu, 05 Oct 2000 13:21:02 -0400
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id e95HJWK01687;
	Thu, 5 Oct 2000 14:19:32 -0300
To: Peter Eisentraut <peter_e@gmx.net>
Cc: autoconf@gnu.org
Subject: Re: Checking for global variables
References: <Pine.LNX.4.21.0010051811430.936-100000@peter.localdomain>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 05 Oct 2000 14:19:32 -0300
In-Reply-To: Peter Eisentraut's message of "Thu, 5 Oct 2000 18:17:36 +0200 (CEST)"
Message-ID: <org0mb434r.fsf@guarana.lsd.ic.unicamp.br>
Lines: 20
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On Oct  5, 2000, Peter Eisentraut <peter_e@gmx.net> wrote:

> Is it portable to do that?

I don't think so.  IIRC, HP-UX's linker distinguishes data symbols
from code symbols.

> Does someone have a better idea (short of writing AC_TRY_LINK,
> etc. for each)?

There might be a macro able to do what you want.  The problem is that
you'd have to supply the right type for the variable, and any headers
required to declare the types (and maybe the variable itself), so it's
not too much different from using AC_TRY_LINK directly.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From ebeffara@ens-lyon.fr Thu Oct 05 13:22:38 2000
Received: from buffalo.ens-lyon.fr ([140.77.1.8])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13hEj7-0004f6-00
	for <autoconf@gnu.org>; Thu, 05 Oct 2000 13:22:37 -0400
Received: from woodstock.ens-lyon.fr (woodstock [140.77.11.50])
	by buffalo.ens-lyon.fr (8.9.1a/8.9.1) with ESMTP id TAA09970
	for <autoconf@gnu.org>; Thu, 5 Oct 2000 19:22:35 +0200 (MET DST)
Received: (from ebeffara@localhost)
	by woodstock.ens-lyon.fr (8.9.1a/8.9.1) id TAA23259
	for autoconf@gnu.org; Thu, 5 Oct 2000 19:22:34 +0200 (MET DST)
Date: Thu, 5 Oct 2000 19:22:34 +0200
From: Emmanuel Beffara <ebeffara@ens-lyon.fr>
To: autoconf@gnu.org
Subject: bug report
Message-ID: <20001005192233.K24225@woodstock.ens-lyon.fr>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
X-Mailer: Mutt 1.0i
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by buffalo.ens-lyon.fr id TAA09970
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hello.

This is a report for a bug I confess I don't understand well...

The bug started when I added an `acinclude.m4' to my configuration
script. In fact it comes from a mistake: I wrote "AC_DEFINE" instead
of "AC_DEFUN" in the auxiliary macro file. Here is a minimized version
of the bug:

configure.in:

	AC_INIT(src/toto.c)
	AC_CHECK_TOTO
	AC_OUTPUT(Makefile)

acinclude.m4:

	AC_DEFINE(AC_CHECK_TOTO,
	  AC_TRY_COMPILE([#include <toto.h>], [toto()],
	    TOTO=3Dtrue, TOTO=3Dfalse))

aclocal doesn't complain, but autoconf outputs:

	autoconf: Undefined macros:
	***BUG in Autoconf--please report*** AC_FD_CC
	***BUG in Autoconf--please report*** AC_FD_CC
	***BUG in Autoconf--please report*** AC_FD_CC
	configure.in:2:AC_CHECK_TOTO

For information, I am using Autoconf version 2.13 (on a Debian Linux
system).

--=20
  //V\\      Emmanuel Beffara
 /// \\\   =C9cole Normale Sup=E9rieure de Lyon
 //@_@\\   46 all=E9e d'Italie, 69364 Lyon, France
 /\,,,/\   t=E9l: +33 4 72 72 82 81
   '=3D'


From oliva@lsd.ic.unicamp.br Thu Oct 05 13:32:56 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13hEt1-0004kr-00
	for <autoconf@gnu.org>; Thu, 05 Oct 2000 13:32:54 -0400
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id e95HWMf01838;
	Thu, 5 Oct 2000 14:32:22 -0300
To: Emmanuel Beffara <ebeffara@ens-lyon.fr>
Cc: autoconf@gnu.org
Subject: Re: bug report
References: <20001005192233.K24225@woodstock.ens-lyon.fr>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 05 Oct 2000 14:32:21 -0300
In-Reply-To: Emmanuel Beffara's message of "Thu, 5 Oct 2000 19:22:34 +0200"
Message-ID: <or7l7n42je.fsf@guarana.lsd.ic.unicamp.br>
Lines: 18
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On Oct  5, 2000, Emmanuel Beffara <ebeffara@ens-lyon.fr> wrote:

> 	AC_DEFINE(AC_CHECK_TOTO,
> 	  AC_TRY_COMPILE([#include <toto.h>], [toto()],
> 	    TOTO=true, TOTO=false))

You're missing quoting.  Enclose macro arguments in `[]'s.

 	AC_DEFINE(AC_CHECK_TOTO,
 	 [AC_TRY_COMPILE([#include <toto.h>], [toto()],
            TOTO=true, TOTO=false)])
         ^                        ^

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From proski@gnu.org Thu Oct 05 13:39:09 2000
Received: from rokslava.transcept.com ([208.151.20.130])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13hEz6-0004u0-00
	for <autoconf@gnu.org>; Thu, 05 Oct 2000 13:39:09 -0400
Received: from sunapee.transcept.com by rokslava.transcept.com
          via smtpd (for fencepost.GNU.org [199.232.76.164]) with SMTP; 5 Oct 2000 17:14:35 UT
Received: from sunapee.transcept.com (sunapee.transcept.com [129.86.50.245])
	by sunapee.transcept.com (8.9.3/8.9.3) with ESMTP id NAA29849;
	Thu, 5 Oct 2000 13:38:38 -0400
Date: Thu, 5 Oct 2000 13:38:38 -0400 (EDT)
From: Pavel Roskin <proski@gnu.org>
X-Sender: proskin@sunapee.transcept.com
To: Emmanuel Beffara <ebeffara@ens-lyon.fr>
cc: autoconf@gnu.org
Subject: Re: bug report
In-Reply-To: <20001005192233.K24225@woodstock.ens-lyon.fr>
Message-ID: <Pine.LNX.4.21.0010051333020.29846-100000@sunapee.transcept.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hello, Emmanuel!

> 	AC_DEFINE(AC_CHECK_TOTO,
> 	  AC_TRY_COMPILE([#include <toto.h>], [toto()],
> 	    TOTO=true, TOTO=false))

You should always quote the arguments, especially when you expect
expansion of the arguments, otherwise it happens in a wrong order!

> 	autoconf: Undefined macros:
> 	***BUG in Autoconf--please report*** AC_FD_CC
> 	***BUG in Autoconf--please report*** AC_FD_CC
> 	***BUG in Autoconf--please report*** AC_FD_CC
> 	configure.in:2:AC_CHECK_TOTO

That's not really helpful, I know. Maybe future versions of Autoconf will
be able to remind you to quote the arguments.

> For information, I am using Autoconf version 2.13 (on a Debian Linux
> system).

Autoconf-2.49a is the current version. It comes with better documentation
that also explains why the argument should be quoted and how to use
AC_DEFUN properly.

Regards,
Pavel Roskin



From dickey@his.com Thu Oct 05 13:57:25 2000
Received: from herndon4.his.com ([209.67.207.7])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13hFGn-000545-00
	for <autoconf@gnu.org>; Thu, 05 Oct 2000 13:57:25 -0400
Received: from localhost (dickey@localhost)
	by herndon4.his.com (8.9.3/8.9.3) with ESMTP id NAA15563;
	Thu, 5 Oct 2000 13:45:26 -0400 (EDT)
X-Authentication-Warning: herndon4.his.com: dickey owned process doing -bs
Date: Thu, 5 Oct 2000 13:45:26 -0400 (EDT)
From: "Thomas E. Dickey" <dickey@his.com>
Reply-To: dickey@herndon4.his.com
To: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
cc: Peter Eisentraut <peter_e@gmx.net>, autoconf@gnu.org
Subject: Re: Checking for global variables
In-Reply-To: <org0mb434r.fsf@guarana.lsd.ic.unicamp.br>
Message-ID: <Pine.BSI.4.21.0010051344240.15500-100000@herndon4.his.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On 5 Oct 2000, Alexandre Oliva wrote:

> On Oct  5, 2000, Peter Eisentraut <peter_e@gmx.net> wrote:
> 
> > Is it portable to do that?
> 
> I don't think so.  IIRC, HP-UX's linker distinguishes data symbols
> from code symbols.
> 
> > Does someone have a better idea (short of writing AC_TRY_LINK,
> > etc. for each)?
> 
> There might be a macro able to do what you want.  The problem is that
> you'd have to supply the right type for the variable, and any headers
> required to declare the types (and maybe the variable itself), so it's
> not too much different from using AC_TRY_LINK directly.

I've found that AC_TRY_LINK doesn't do enough (if I really want to know,
I'll use a test that tries to modify the data -- AC_TRY_RUN).

-- 
T.E.Dickey <dickey@herndon4.his.com>
http://dickey.his.com
ftp://dickey.his.com



From peter_e@gmx.net Thu Oct 05 15:47:46 2000
Received: from mailout00.sul.t-online.com ([194.25.134.16])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13hGza-0006fa-00
	for <autoconf@gnu.org>; Thu, 05 Oct 2000 15:47:46 -0400
Received: from fmrl00.sul.t-online.de 
	by mailout00.sul.t-online.com with smtp 
	id 13hF69-0006Ry-01; Thu, 05 Oct 2000 19:46:25 +0200
Received: from peter.localdomain (520083510237-0001@[212.185.245.78]) by fmrl00.sul.t-online.com
	with esmtp id 13hF64-0LkVqCC; Thu, 5 Oct 2000 19:46:20 +0200
Date: Thu, 5 Oct 2000 19:50:14 +0200 (CEST)
From: Peter Eisentraut <peter_e@gmx.net>
To: Emmanuel Beffara <ebeffara@ens-lyon.fr>
cc: autoconf@gnu.org
Subject: Re: bug report
In-Reply-To: <20001005192233.K24225@woodstock.ens-lyon.fr>
Message-ID: <Pine.LNX.4.21.0010051949290.936-100000@peter.localdomain>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sender: 520083510237-0001@t-dialin.net
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Emmanuel Beffara writes:

> 	AC_DEFINE(AC_CHECK_TOTO,
> 	  AC_TRY_COMPILE([#include <toto.h>], [toto()],
> 	    TOTO=true, TOTO=false))

AC_DEFUN

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/



From ben@valinux.com Thu Oct 05 22:18:54 2000
Received: from mg-20425426-172.ricochet.net ([204.254.26.172] helo=trill.valinux.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13hN63-00030a-00
	for <autoconf@gnu.org>; Thu, 05 Oct 2000 22:18:52 -0400
Received: (from ben@localhost)
	by trill.valinux.com (8.9.3/8.9.3) id TAA04269;
	Thu, 5 Oct 2000 19:11:57 -0700
Message-Id: <200010060211.TAA04269@trill.valinux.com>
To: autoconf@gnu.org
Subject: double check
Date: Thu, 05 Oct 2000 19:11:57 -0700
From: Ben <ben@valinux.com>
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Could one of you autoconf masters please take a look at the current
lpr source tree that I am working on. To make some of the advanced
printing capabilities more accessible to the masses we bundled a whole
bunch printing related software that we have been working on into one
giant tarball. This turned out to be quite a challenge for me with
regards to autoconf and automake and I had to do many things that I
had never tried before to get it working. I would just like someone to
look over the things that I have done to make sure that I did things
the "right" way and that I didn't overlook any major gotcha's.

You can check out the whole CVS repository by doing:

cvs -z3 -d:pserver:anonymous@cvs.lpr.sourceforge.net:/cvsroot/lpr login 
cvs -z3 -d:pserver:anonymous@cvs.lpr.sourceforge.net:/cvsroot/lpr co \
    -r bens_dev_branch lpr 

If you want to just look at the configure.in scripts:

http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/~checkout~/lpr/configure.in?rev=1.10.2.5&cvsroot=lpr

The thing that I am not sure about in this one is the way I deal with
tdb not being installed starting at line 24. The effect that I want to
achieve is that tdb is compiled if it is not already installed on the
system.

http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/~checkout~/lpr/libppd/Attic/configure.in?rev=1.14.2.1&content-type=text/plain&cvsroot=lpr
http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/~checkout~/lpr/gpr/Attic/configure.in?rev=1.2&content-type=text/plain&cvsroot=lpr

One thing that I need to do with gpr's configure script is make it
add logic to make it depend on libppd being installed. This is a
little different than the situation with tdb and lpr. Since lpr is the
main project and I am bundling tdb with it and so I can guarentee that
tdb will be in the subdirectory. However, libppd and gpr are both
guest projects and they are both designed to be able to be built
independantly. Therefore when I am building gpr I cannot assume that
libppd will always be in "../libppd". So how do I make this test:

if [ libppd exists on the system ] then
   use the system version
else if [ libppd is in ../libppd ] then
   use the version bundled with lpr
else
   error out

The other problem is how do I guarentee that headers and libraries are
in sync. Say for example a GNU/Linux distro vendor breaks libppd up
into two packages libppd (the shared libraries) and libppd-dev (the
header files) and someone has installed libppd but not libppd-dev. So
then I test for libppd and see that it is there. Then I check for
libppd.h and it isn't there and so I use the one that is bundled with
lpr. However, these version don't match and there are some
incompatabilities.

http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/~checkout~/lpr/snmpkit/Attic/configure.in?rev=1.3.2.1&content-type=text/plain&cvsroot=lpr
http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/~checkout~/lpr/printerconf/Attic/configure.in?rev=1.1.2.1&content-type=text/plain&cvsroot=lpr

I tried to solve some of the problems listed above in printerconf's
configure.in around line 23. Would someone please take a look at this
piece of code and make comments on it. 

One thing that I really don't like is line 32 where I embed a `pwd`
when I set a variable. There has got to be a better way to do this but
I couldn't figure it out. I fear that the "pwd" trick will not work if
someone tries to build the software outside of the source
directories.

http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/~checkout~/lpr/printfilters/Attic/configure.in?rev=1.1.2.1&content-type=text/plain&cvsroot=lpr
http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/~checkout~/lpr/printtool/Attic/configure.in?rev=1.1.2.1&content-type=text/plain&cvsroot=lpr
http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/~checkout~/lpr/tdb/Attic/configure.in?rev=1.2.2.1&content-type=text/plain&cvsroot=lpr
http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/~checkout~/lpr/npadmin/Attic/configure.in?rev=1.16&content-type=text/plain&cvsroot=lpr

The associated Makefile.am files are:

lpr
    http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/~checkout~/lpr/Makefile.am?rev=1.17.2.3&content-type=text/plain&cvsroot=lpr
    http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/~checkout~/lpr/doc/Attic/Makefile.am?rev=1.1.2.1&content-type=text/plain&cvsroot=lpr
    http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/~checkout~/lpr/src/Attic/Makefile.am?rev=1.1.2.2&content-type=text/plain&cvsroot=lpr
gpr
    http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/~checkout~/lpr/gpr/Attic/Makefile.am?rev=1.2&content-type=text/plain&cvsroot=lpr
    http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/~checkout~/lpr/gpr/src/Attic/Makefile.am?rev=1.1.1.1&content-type=text/plain&cvsroot=lpr
    http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/~checkout~/lpr/gpr/macros/Attic/Makefile.am?rev=1.1.1.1&content-type=text/plain&cvsroot=lpr
libppd
    http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/~checkout~/lpr/libppd/Attic/Makefile.am?rev=1.21&content-type=text/plain&cvsroot=lpr
    http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/~checkout~/lpr/libppd/src/Attic/Makefile.am?rev=1.6.2.1&content-type=text/plain&cvsroot=lpr
    http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/~checkout~/lpr/libppd/doc/Attic/Makefile.am?rev=1.1&content-type=text/plain&cvsroot=lpr
npadmin
    http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/~checkout~/lpr/npadmin/Attic/Makefile.am?rev=1.10&content-type=text/plain&cvsroot=lpr
printerconf
    http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/~checkout~/lpr/printerconf/Attic/Makefile.am?rev=1.1&content-type=text/plain&cvsroot=lpr
    http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/~checkout~/lpr/printerconf/common/Attic/Makefile.am?rev=1.1.1.1&content-type=text/plain&cvsroot=lpr
    http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/~checkout~/lpr/printerconf/src/Attic/Makefile.am?rev=1.1.2.1&content-type=text/plain&cvsroot=lpr
    http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/~checkout~/lpr/printerconf/src/parport/Attic/Makefile.am?rev=1.1.2.1&content-type=text/plain&cvsroot=lpr
printfilters
    http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/~checkout~/lpr/printfilters/Attic/Makefile.am?rev=1.1.2.1&content-type=text/plain&cvsroot=lpr
printtool
    http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/~checkout~/lpr/printtool/Attic/Makefile.am?rev=1.1.2.1&content-type=text/plain&cvsroot=lpr
snmpkit
    http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/~checkout~/lpr/snmpkit/Attic/Makefile.am?rev=1.12.2.1&content-type=text/plain&cvsroot=lpr
tdb
    http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/~checkout~/lpr/tdb/Attic/Makefile.am?rev=1.2.2.1&content-type=text/plain&cvsroot=lpr

-ben


From mortene@sim.no Fri Oct 06 09:48:00 2000
Received: from trh.sim.no ([195.1.220.136] helo=sim.no)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13hXqx-0006Px-00
	for <autoconf@gnu.org>; Fri, 06 Oct 2000 09:48:00 -0400
Received: (qmail 2048 invoked by uid 1114); 6 Oct 2000 13:47:56 -0000
To: autoconf@gnu.org
Subject: AC_PROG_CC not working
From: Morten Eriksen <mortene@sim.no>
Date: 06 Oct 2000 15:47:55 +0200
Message-ID: <51itr6krn8.fsf@trh.sim.no>
Lines: 47
User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.3
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hi,

I don't see the expected behavior from the AC_PROG_CC macro. This
configure.in file:

-->8---->8---->8---->8---->8---->8---->8---->8---->8--

AC_INIT(configure.in)
AC_PROG_CC(foo bar supercompiler)
AC_OUTPUT()

-->8---->8---->8---->8---->8---->8---->8---->8---->8--

..will generate this output:

-->8---->8---->8---->8---->8---->8---->8---->8---->8--

checking for gcc... gcc
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for object suffix... o
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for EMX OS/2 environment... no
checking for executable suffix... 
checking for foo... (cached) gcc
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
creating ./config.status

-->8---->8---->8---->8---->8---->8---->8---->8---->8--

(This is with the latest Autoconf sources from the head CVS branch.)

The obvious reason for this behavior is that AC_PROG_CC requires
AC_PROG_CPP to run before the AC_PROG_CC macro body. This will then
pick up the gcc compiler (if present) and then use the cached value
for CC, no matter which compilers we specify for AC_PROG_CC.

Any suggestions on how to solve this?

Regards,
Morten


From akim@epita.fr Mon Oct 09 04:47:17 2000
Received: from [194.98.116.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13iYaa-0008IF-00; Mon, 09 Oct 2000 04:47:17 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id KAA14890
	Mon, 9 Oct 2000 10:48:08 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13iabS-0000q7-00; Mon, 09 Oct 2000 10:56:18 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13iYjM-0007Wm-00; Mon, 09 Oct 2000 10:56:20 +0200
To: Pavel Roskin <proski@gnu.org>
Cc: Emmanuel Beffara <ebeffara@ens-lyon.fr>, autoconf@gnu.org
Subject: Re: bug report
References: <Pine.LNX.4.21.0010051333020.29846-100000@sunapee.transcept.com>
From: Akim Demaille <akim@epita.fr>
Date: 09 Oct 2000 10:56:20 +0200
In-Reply-To: Pavel Roskin's message of "Thu, 5 Oct 2000 13:38:38 -0400 (EDT)"
Message-ID: <mv4lmvymlzf.fsf@nostromo.lrde.epita.fr>
Lines: 19
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

| > 	autoconf: Undefined macros:
| > 	***BUG in Autoconf--please report*** AC_FD_CC
| > 	***BUG in Autoconf--please report*** AC_FD_CC
| > 	***BUG in Autoconf--please report*** AC_FD_CC
| > 	configure.in:2:AC_CHECK_TOTO
| 
| That's not really helpful, I know. 

And in fact most of the time, when this message shows up Autoconf is
not guilty.  And since the test suite guarantees that Autoconf will
never be, I removed this part of the message (BUG in Autoconf).

| Maybe future versions of Autoconf will
| be able to remind you to quote the arguments.

I can't think of a means to do that.

        Akim


From akim@epita.fr Mon Oct 09 04:50:49 2000
Received: from [194.98.116.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13iYe1-0008LY-00
	for <autoconf@gnu.org>; Mon, 09 Oct 2000 04:50:49 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id KAA15151
	Mon, 9 Oct 2000 10:51:38 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13iaeq-0000qY-00; Mon, 09 Oct 2000 10:59:48 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13iYmm-0007Xl-00; Mon, 09 Oct 2000 10:59:52 +0200
To: Morten Eriksen <mortene@sim.no>
Cc: autoconf@gnu.org
Subject: Re: AC_PROG_CC not working
References: <51itr6krn8.fsf@trh.sim.no>
From: Akim Demaille <akim@epita.fr>
Date: 09 Oct 2000 10:59:51 +0200
In-Reply-To: Morten Eriksen's message of "06 Oct 2000 15:47:55 +0200"
Message-ID: <mv4hf6mmltk.fsf@nostromo.lrde.epita.fr>
Lines: 17
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

| The obvious reason for this behavior is that AC_PROG_CC requires
| AC_PROG_CPP to run before the AC_PROG_CC macro body. This will then
| pick up the gcc compiler (if present) and then use the cached value
| for CC, no matter which compilers we specify for AC_PROG_CC.
| 
| Any suggestions on how to solve this?

Currently I can't think of any good one.  In addition, I now think it
is now feasible to merge *_CPP in *_CC as I first thought, not without
revamping a lot of code which is a big no before 2.50.

Anyway, I am still against the possibility to specify a list of
compilers for AC_PROG_CC, CXX etc.  I think we will never stop having
problem with this feature :(

        Akim


From peter_e@gmx.net Mon Oct 09 11:24:35 2000
Received: from mailout05.sul.t-online.com ([194.25.134.82])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13ien5-0001eG-00
	for <autoconf@gnu.org>; Mon, 09 Oct 2000 11:24:35 -0400
Received: from fmrl03.sul.t-online.de 
	by mailout05.sul.t-online.com with smtp 
	id 13iemO-0002zP-01; Mon, 09 Oct 2000 17:23:52 +0200
Received: from peter.localdomain (520083510237-0001@[212.185.245.81]) by fmrl03.sul.t-online.com
	with esmtp id 13iemN-02yVoeC; Mon, 9 Oct 2000 17:23:51 +0200
Date: Mon, 9 Oct 2000 17:27:51 +0200 (CEST)
From: Peter Eisentraut <peter_e@gmx.net>
To: Akim Demaille <akim@epita.fr>
cc: Morten Eriksen <mortene@sim.no>, autoconf@gnu.org
Subject: Re: AC_PROG_CC not working
In-Reply-To: <mv4hf6mmltk.fsf@nostromo.lrde.epita.fr>
Message-ID: <Pine.LNX.4.21.0010091727080.856-100000@peter.localdomain>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sender: 520083510237-0001@t-dialin.net
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Akim Demaille writes:

> Anyway, I am still against the possibility to specify a list of
> compilers for AC_PROG_CC, CXX etc.  I think we will never stop having
> problem with this feature :(

This feature is extremely useful, because the default list is pretty
useless for some platforms and packages.

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/



From proski@gnu.org Mon Oct 09 12:11:40 2000
Received: from rokslava.transcept.com ([208.151.20.130])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13ifWe-0002WJ-00
	for <autoconf@gnu.org>; Mon, 09 Oct 2000 12:11:40 -0400
Received: from sunapee.transcept.com by rokslava.transcept.com
          via smtpd (for fencepost.GNU.org [199.232.76.164]) with SMTP; 9 Oct 2000 15:46:48 UT
Received: from sunapee.transcept.com (sunapee.transcept.com [129.86.50.245])
	by sunapee.transcept.com (8.9.3/8.9.3) with ESMTP id MAA06525;
	Mon, 9 Oct 2000 12:10:52 -0400
Date: Mon, 9 Oct 2000 12:10:52 -0400 (EDT)
From: Pavel Roskin <proski@gnu.org>
X-Sender: proskin@sunapee.transcept.com
To: Akim Demaille <akim@epita.fr>
cc: Emmanuel Beffara <ebeffara@ens-lyon.fr>, autoconf@gnu.org
Subject: Re: bug report
In-Reply-To: <mv4lmvymlzf.fsf@nostromo.lrde.epita.fr>
Message-ID: <Pine.LNX.4.21.0010091157590.6504-100000@sunapee.transcept.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hello, Akim!

> | > 	autoconf: Undefined macros:
> | > 	***BUG in Autoconf--please report*** AC_FD_CC
> | > 	***BUG in Autoconf--please report*** AC_FD_CC
> | > 	***BUG in Autoconf--please report*** AC_FD_CC
> | > 	configure.in:2:AC_CHECK_TOTO
> | 
> | That's not really helpful, I know. 
> 
> And in fact most of the time, when this message shows up Autoconf is
> not guilty.  And since the test suite guarantees that Autoconf will
> never be, I removed this part of the message (BUG in Autoconf).

To be strict, the testsuite doesn't guarantee it because macros can expand
differently dependent e.g. on the number of arguments.

Anyway, I agree with your decision.

> | Maybe future versions of Autoconf will
> | be able to remind you to quote the arguments.
> 
> I can't think of a means to do that.

I can, but it may slow down Autoconf very significantly.

Every macro defined by AC_DEFUN should add some markers to the text it
expands to, e.g.

AC_FOO -> {__ac_marker}Checking foo...

Every macro defined by AC_DEFUN should also be able to check the existance
of those markers in the arguments and report an error if they are found.

This way, AC_BAR(AC_FOO) will have {__ac_marker} in $1 which can be
detected by regexp().

All those markers will be removed from the text by autoconf.sh, maybe in
finalize.awk

This can be slow, but if we receive more reports of this kind we may be
forced to impove "fool protection" at the expence of people running
Autoconf (not configure!) on i386 and Sun-3.

Regards,
Pavel Roskin



From oliva@lsd.ic.unicamp.br Tue Oct 10 01:52:44 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13isLE-0007PA-00
	for <autoconf@gnu.org>; Tue, 10 Oct 2000 01:52:44 -0400
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id e9A5qAr03103;
	Tue, 10 Oct 2000 03:52:10 -0200
To: Akim Demaille <akim@epita.fr>
Cc: Morten Eriksen <mortene@sim.no>, autoconf@gnu.org
Subject: Re: AC_PROG_CC not working
References: <51itr6krn8.fsf@trh.sim.no>
	<mv4hf6mmltk.fsf@nostromo.lrde.epita.fr>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 10 Oct 2000 03:52:10 -0200
In-Reply-To: Akim Demaille's message of "09 Oct 2000 10:59:51 +0200"
Message-ID: <ory9zxp7jp.fsf@guarana.lsd.ic.unicamp.br>
Lines: 14
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On Oct  9, 2000, Akim Demaille <akim@epita.fr> wrote:

> Currently I can't think of any good one.  In addition, I now think it
> is now feasible to merge *_CPP in *_CC as I first thought, not without
> revamping a lot of code which is a big no before 2.50.

How hard do you think it would be to allow for AC_REQUIRE to accept
arguments for the macro to be called?

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From akim@epita.fr Tue Oct 10 06:19:20 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13iwVE-0005mX-00
	for <autoconf@gnu.org>; Tue, 10 Oct 2000 06:19:20 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id MAA13964
	Tue, 10 Oct 2000 12:20:09 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13iyWI-0002HV-00; Tue, 10 Oct 2000 12:28:34 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13iweL-0000nV-00; Tue, 10 Oct 2000 12:28:45 +0200
To: Peter Eisentraut <peter_e@gmx.net>
Cc: Morten Eriksen <mortene@sim.no>, autoconf@gnu.org
Subject: Re: AC_PROG_CC not working
References: <Pine.LNX.4.21.0010091727080.856-100000@peter.localdomain>
From: Akim Demaille <akim@epita.fr>
Date: 10 Oct 2000 12:28:45 +0200
In-Reply-To: Peter Eisentraut's message of "Mon, 9 Oct 2000 17:27:51 +0200 (CEST)"
Message-ID: <mv4k8bhhtwi.fsf@nostromo.lrde.epita.fr>
Lines: 35
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "Peter" == Peter Eisentraut <peter_e@gmx.net> writes:

Peter> Akim Demaille writes:
>> Anyway, I am still against the possibility to specify a list of
>> compilers for AC_PROG_CC, CXX etc.  I think we will never stop
>> having problem with this feature :(

Peter> This feature is extremely useful, because the default list is
Peter> pretty useless for some platforms and packages.

Then it means the list is wrong.  It's Autoconf which has to be
fixed.  It's the tests that must be more accurate.

Very architecture depend issues, such as find *the* compiler, will
probably never be properly handled by Autoconf.  It is the installer
which has the best knowledge, and it is her that should pass to
configure the right values.

Again, something which is extremely important with configures is that
they must behave the same way.  Having different flavors of AC_PROG_CC
seems wrong to me because it means the installer can not depend on
some expected behavior.

IMHO, the right solution is to have a good configure in the sense that
it should check that the required features are supported, and then
*die* if it can't find a suitable compiler.  *Then* the installer can
teach it the CC to use.

I'm not saying there is no problems here, I'm saying this is not,
imho, the right answer.  We are departing from the philosophy of
Autoconf when we teach a list of names we like or dislike.

Really, giving a list of compilers seems bad to me.  It should be the
same list for everybody, i.e., let's fix the Autoconf builtin list if
its wrong, but let's not go for various flavors of configure.


From akim@epita.fr Tue Oct 10 06:26:34 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13iwcE-0005x1-00
	for <autoconf@gnu.org>; Tue, 10 Oct 2000 06:26:34 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id MAA14543
	Tue, 10 Oct 2000 12:26:58 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13iyct-0002Lx-00; Tue, 10 Oct 2000 12:35:23 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13iwkx-0000pt-00; Tue, 10 Oct 2000 12:35:35 +0200
To: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Cc: Morten Eriksen <mortene@sim.no>, autoconf@gnu.org
Subject: Re: AC_PROG_CC not working
References: <51itr6krn8.fsf@trh.sim.no>
	<mv4hf6mmltk.fsf@nostromo.lrde.epita.fr>
	<ory9zxp7jp.fsf@guarana.lsd.ic.unicamp.br>
From: Akim Demaille <akim@epita.fr>
Date: 10 Oct 2000 12:35:35 +0200
In-Reply-To: Alexandre Oliva's message of "10 Oct 2000 03:52:10 -0200"
Message-ID: <mv4g0m5htl4.fsf@nostromo.lrde.epita.fr>
Lines: 24
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "Alexandre" == Alexandre Oliva <oliva@lsd.ic.unicamp.br> writes:

Alexandre> On Oct 9, 2000, Akim Demaille <akim@epita.fr> wrote:
>> Currently I can't think of any good one.  In addition, I now think
>> it is now feasible to merge *_CPP in *_CC as I first thought, not
>> without revamping a lot of code which is a big no before 2.50.

Alexandre> How hard do you think it would be to allow for AC_REQUIRE
Alexandre> to accept arguments for the macro to be called?

I shouldn't be too hard, but it must be done very carefully because a
lot of the future of Autoconf will depend on this feature.  Hence I'm
not in favor of doing this now (2.50).

Nevertheless we can imagine a system similar to that of
AC_CONFIG_AUX_DIR and its DEFAULT partner: when AC_PROG_CC is called,
it requires _AC_PROG_CC_COMPILERS which defines the list of compilers
to check for.  Then AC_PROG_CPP could use this list.

Still, I realize I have not really understood what's going on:
AC_PROG_CC does not require AC_PROG_CPP, on the contrary, it says it
must be run before AC_PROG_CPP.

I'm trying to understand what's going on, and will call you back :)


From akim@epita.fr Tue Oct 10 06:46:47 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13iwvn-0006Q8-00
	for <autoconf@gnu.org>; Tue, 10 Oct 2000 06:46:47 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id MAA16369
	Tue, 10 Oct 2000 12:47:03 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13iywK-0002On-00; Tue, 10 Oct 2000 12:55:28 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13ix4O-00010W-00; Tue, 10 Oct 2000 12:55:40 +0200
To: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Cc: Morten Eriksen <mortene@sim.no>, autoconf@gnu.org
Subject: Re: AC_PROG_CC not working
References: <51itr6krn8.fsf@trh.sim.no>
	<mv4hf6mmltk.fsf@nostromo.lrde.epita.fr>
	<ory9zxp7jp.fsf@guarana.lsd.ic.unicamp.br>
From: Akim Demaille <akim@epita.fr>
Date: 10 Oct 2000 12:55:40 +0200
In-Reply-To: Alexandre Oliva's message of "10 Oct 2000 03:52:10 -0200"
Message-ID: <mv4bswthsnn.fsf@nostromo.lrde.epita.fr>
Lines: 68
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

The problem is that:

/tmp % ace --trace AC_PROG_CC
autoconf: warning: --macrodir is obsolete, use --autoconf-dir
configure.in:2:AC_PROG_CC:foo bar supercompiler
configure.in:2:AC_PROG_CC:

someone is requiring AC_PROG_CC *inside* the AC_PROG_CC itself.  But
since AC_PROG_CC (the first one) is in elaboration, AC_REQUIRE or
something emits it anyway, and requirements are expanded *before*.
Therefore, AC_PROG_CC is expected twice.  And it is always, this is
independent from the presence of a list of compilers.

AC_DEFUN([AC_PROG_CC],
[AC_BEFORE([$0], [AC_PROG_CPP])dnl
# Coucou
...

/tmp % cat configure.in
AC_INIT
AC_PROG_CC
/tmp % ace
/tmp % grep Coucou configure
# Coucou
# Coucou

The chain is:

          AC_DEFUN([AC_PROG_CC],
          [AC_BEFORE([$0], [AC_PROG_CPP])dnl
          AC_LANG_PUSH(C)

           ....

          AC_EXPAND_ONCE([_AC_EXEEXT])
          AC_LANG_POP   
          ])# AC_PROG_CC

and

          define([_AC_EXEEXT],
          [_AC_CYGWIN
          ...

and

          define([_AC_CYGWIN],
          [AC_CACHE_CHECK(for Cygwin environment, ac_cv_cygwin,
          [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],
          
and

          AC_DEFUN([AC_COMPILE_IFELSE],
          [AC_LANG_COMPILER_REQUIRE()dnl


So we face, again, the problem that AC_PROG_CC depends upon
AC_COMPILE_IFELSE which depends upon AC_PROG_CC.  Likewise for all the
languages, of course (we have to write a test for this one).


So I am back to something I raised some time ago: why the heck do we
have to compile to recognize Mingw etc.?  Can't we just uname?  While
anti-Autoconf (and btw, frankly, compiling __MINGW32__ makes no big
difference to me), it seems better in that, for instance, it makes it
possible to enable the support of these kind of machines without
requiring a C compiler.


From mortene@sim.no Tue Oct 10 06:50:37 2000
Received: from trh.sim.no ([195.1.220.136] helo=sim.no)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13iwzV-0006T3-00
	for <autoconf@gnu.org>; Tue, 10 Oct 2000 06:50:37 -0400
Received: (qmail 15425 invoked by uid 1114); 10 Oct 2000 10:50:33 -0000
To: Akim Demaille <akim@epita.fr>
Cc: Peter Eisentraut <peter_e@gmx.net>, autoconf@gnu.org
Subject: Re: AC_PROG_CC not working
References: <Pine.LNX.4.21.0010091727080.856-100000@peter.localdomain> <mv4k8bhhtwi.fsf@nostromo.lrde.epita.fr>
From: Morten Eriksen <mortene@sim.no>
Date: 10 Oct 2000 12:50:33 +0200
In-Reply-To: Akim Demaille's message of "10 Oct 2000 12:28:45 +0200"
Message-ID: <51n1gdgebq.fsf@trh.sim.no>
Lines: 44
User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.3
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Akim Demaille <akim@epita.fr> writes:

> Really, giving a list of compilers seems bad to me.  It should be
> the same list for everybody, i.e., let's fix the Autoconf builtin
> list if its wrong, but let's not go for various flavors of
> configure.

A few days ago I would have agreed with you on this point -- but now
I'm not so sure anymore.

The particular challenge I just bumped into is how to let Autoconf
configure know about a "self-made compiler", in the sense that I have
written a wrapper script around the MSVC++ cl.exe compiler (to let it
behave properly when run from the makefiles generated by Automake).

This wrapper is a shell script residing in some source directory of my
package, and may be viewed as a separate compiler existing only for
this project. Adding the name of my wrapper script to the beginning of
the standard list of compilers and calling AC_PROG_CC with this as an
argument seemed like the perfect way to integrate the script. But
alas, that was not to be, due to the buggy nature of this feature of
AC_PROG_CC.

So, if fixing the AC_PROG_CC bug is pointless because you think it is
wrong policy for AC_PROG_CC to take this argument, I see 2 other
options for my task at hand:

        1) notify in the INSTALL file about needing to pass on
           CC=[path/wrapperscript] when building with MSVC++. Simple
           enough, but it doesn't seem like good policy to me to "push
           complexity" on to the user.

        2) lobby to get my MSVC++ cl.exe wrapper script shipped as a
           standard part of either the Autoconf or the Automake
           distribution (and add the name of it to the list of
           compilers AC_PROG_CC looks for).

Eventually I hope to go for option 2), but this doesn't seem like
something which would go into the next version of Autoconf or
Automake, at least (it need to be properly tested, robustified, etc
etc). And I need it _now_, of course.

Regards,
Morten


From mortene@sim.no Tue Oct 10 07:02:52 2000
Received: from trh.sim.no ([195.1.220.136] helo=sim.no)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13ixBM-0006Xn-00
	for <autoconf@gnu.org>; Tue, 10 Oct 2000 07:02:52 -0400
Received: (qmail 15469 invoked by uid 1114); 10 Oct 2000 11:02:49 -0000
To: Akim Demaille <akim@epita.fr>
Cc: Alexandre Oliva <oliva@lsd.ic.unicamp.br>, autoconf@gnu.org
Subject: Re: AC_PROG_CC not working
References: <51itr6krn8.fsf@trh.sim.no> <mv4hf6mmltk.fsf@nostromo.lrde.epita.fr> <ory9zxp7jp.fsf@guarana.lsd.ic.unicamp.br> <mv4bswthsnn.fsf@nostromo.lrde.epita.fr>
From: Morten Eriksen <mortene@sim.no>
Date: 10 Oct 2000 13:02:49 +0200
In-Reply-To: Akim Demaille's message of "10 Oct 2000 12:55:40 +0200"
Message-ID: <51hf6lgdra.fsf@trh.sim.no>
Lines: 20
User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.3
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Akim Demaille <akim@epita.fr> writes:

> So I am back to something I raised some time ago: why the heck do we
> have to compile to recognize Mingw etc.?  Can't we just uname?

I'll second that notion. :^)

One argument for using the output of uname in some form instead of the
current scheme is that the Cygwin test (at least) will fail if not
using GCC as the compiler. I'm using MSVC++ cl.exe now, and the Cygwin
check gives me a false negative because it's checking for the current
compiler to define __CYGWIN__.

(BTW, isn't it bad style of Autoconf to need to check for Cygwin,
Mingw and EMX OS/2 in the first place? I can see the result is used in
the AC_EXEEXT check -- but this macro is fubar anyhow and in bad need
of a rewrite.)

Regards,
Morten


From akim@epita.fr Tue Oct 10 07:36:42 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13ixi5-0006qZ-00; Tue, 10 Oct 2000 07:36:41 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id NAA20349
	Tue, 10 Oct 2000 13:37:25 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13izj5-0002YM-00; Tue, 10 Oct 2000 13:45:51 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13ixr9-00013l-00; Tue, 10 Oct 2000 13:46:03 +0200
To: Pavel Roskin <proski@gnu.org>
Cc: Emmanuel Beffara <ebeffara@ens-lyon.fr>, autoconf@gnu.org
Subject: Re: bug report
References: <Pine.LNX.4.21.0010091157590.6504-100000@sunapee.transcept.com>
From: Akim Demaille <akim@epita.fr>
Date: 10 Oct 2000 13:46:02 +0200
In-Reply-To: Pavel Roskin's message of "Mon, 9 Oct 2000 12:10:52 -0400 (EDT)"
Message-ID: <mv47l7gj4w5.fsf@nostromo.lrde.epita.fr>
Lines: 53
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "Pavel" == Pavel Roskin <proski@gnu.org> writes:

Pavel> To be strict, the testsuite doesn't guarantee it because macros
Pavel> can expand differently dependent e.g. on the number of
Pavel> arguments.

I agree.

Pavel> Anyway, I agree with your decision.

I agree too :)



Pavel> I can, but it may slow down Autoconf very significantly.

This must not happen (by default), it's already way too slow on
significant configure.ins.

Pavel> Every macro defined by AC_DEFUN should add some markers to the
Pavel> text it expands to, e.g.

Pavel> AC_FOO -> {__ac_marker}Checking foo...

Pavel> Every macro defined by AC_DEFUN should also be able to check
Pavel> the existance of those markers in the arguments and report an
Pavel> error if they are found.

Pavel> This way, AC_BAR(AC_FOO) will have {__ac_marker} in $1 which
Pavel> can be detected by regexp().

Pavel> All those markers will be removed from the text by autoconf.sh,
Pavel> maybe in finalize.awk

I'm not sure this is a good way to go, because it is valid, and
desirable, in some case *not* to quote the argument.

I think a better scheme, although not exactly aiming at the same
problem, will be to be able to ``prototype'' the macros, i.e., state
how many and what kind of arguments are expected.

In fact, it'd be great if we could abstract this problem from
Autoconf, and implement it directly into GNU M4.

Pavel> This can be slow, but if we receive more reports of this kind
Pavel> we may be forced to impove "fool protection" at the expence of
Pavel> people running Autoconf (not configure!) on i386 and Sun-3.

I think that the problem is also due to the fact that the
documentation has never stressed enough the importance of the
quotation.  In my opinion, one of the significant changes brought by
2.50 is precisely the uniformization of the quoting style, and its
documentation.


From akim@epita.fr Tue Oct 10 07:49:09 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13ixu8-00075x-00
	for <autoconf@gnu.org>; Tue, 10 Oct 2000 07:49:08 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id NAA21315
	Tue, 10 Oct 2000 13:49:55 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13izvA-0002cQ-00; Tue, 10 Oct 2000 13:58:20 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13iy3F-00017j-00; Tue, 10 Oct 2000 13:58:33 +0200
To: Morten Eriksen <mortene@sim.no>
Cc: Peter Eisentraut <peter_e@gmx.net>, autoconf@gnu.org
Subject: Re: AC_PROG_CC not working
References: <Pine.LNX.4.21.0010091727080.856-100000@peter.localdomain>
	<mv4k8bhhtwi.fsf@nostromo.lrde.epita.fr> <51n1gdgebq.fsf@trh.sim.no>
From: Akim Demaille <akim@epita.fr>
Date: 10 Oct 2000 13:58:33 +0200
In-Reply-To: Morten Eriksen's message of "10 Oct 2000 12:50:33 +0200"
Message-ID: <mv4u2akhpqu.fsf@nostromo.lrde.epita.fr>
Lines: 42
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "Morten" == Morten Eriksen <mortene@sim.no> writes:

Morten> The particular challenge I just bumped into is how to let
Morten> Autoconf configure know about a "self-made compiler", in the
Morten> sense that I have written a wrapper script around the MSVC++
Morten> cl.exe compiler (to let it behave properly when run from the
Morten> makefiles generated by Automake).

Why don't you

configure.in:
        ...
        : ${CC-my_super_script_CC}
        AC_PROG_CC

?

or
        if under-ms; then
          : ${CC-my_super_script_CC}
        fi
        AC_PROG_CC



Morten>         1) notify in the INSTALL file about needing to pass on
Morten> CC=[path/wrapperscript] when building with MSVC++. Simple
Morten> enough, but it doesn't seem like good policy to me to "push
Morten> complexity" on to the user.

Sooner or later, we will have such scripts.  We already know we won't
be able to have all the compilers agree on the extension of Fortran
and C++ files.

Morten>         2) lobby to get my MSVC++ cl.exe wrapper script
Morten> shipped as a standard part of either the Autoconf or the
Morten> Automake distribution (and add the name of it to the list of
Morten> compilers AC_PROG_CC looks for).

Yes!

        Akim


From akim@epita.fr Tue Oct 10 07:54:30 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13ixzJ-00078o-00
	for <autoconf@gnu.org>; Tue, 10 Oct 2000 07:54:29 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id NAA21700
	Tue, 10 Oct 2000 13:54:24 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13izzW-0002dm-00; Tue, 10 Oct 2000 14:02:50 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13iy7a-00018A-00; Tue, 10 Oct 2000 14:03:02 +0200
To: Morten Eriksen <mortene@sim.no>
Cc: Alexandre Oliva <oliva@lsd.ic.unicamp.br>, autoconf@gnu.org
Subject: Re: AC_PROG_CC not working
References: <51itr6krn8.fsf@trh.sim.no>
	<mv4hf6mmltk.fsf@nostromo.lrde.epita.fr>
	<ory9zxp7jp.fsf@guarana.lsd.ic.unicamp.br>
	<mv4bswthsnn.fsf@nostromo.lrde.epita.fr> <51hf6lgdra.fsf@trh.sim.no>
From: Akim Demaille <akim@epita.fr>
Date: 10 Oct 2000 14:03:02 +0200
In-Reply-To: Morten Eriksen's message of "10 Oct 2000 13:02:49 +0200"
Message-ID: <mv4pul8hpjd.fsf@nostromo.lrde.epita.fr>
Lines: 32
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "Morten" == Morten Eriksen <mortene@sim.no> writes:

Morten> One argument for using the output of uname in some form
Morten> instead of the current scheme is that the Cygwin test (at
Morten> least) will fail if not using GCC as the compiler. I'm using
Morten> MSVC++ cl.exe now, and the Cygwin check gives me a false
Morten> negative because it's checking for the current compiler to
Morten> define __CYGWIN__.

Arg!

Morten> (BTW, isn't it bad style of Autoconf to need to check for
Morten> Cygwin, Mingw and EMX OS/2 in the first place? I can see the
Morten> result is used in the AC_EXEEXT check -- but this macro is
Morten> fubar anyhow and in bad need of a rewrite.)

I don't know.  To be honest, I'm starting to despair: there are way
too many things that need to be completely redesigned in Autoconf, but
*we can't wait*.  2.50 is already significantly superior to 2.13, and
we need to stop somewhere.  We need to stop for a while, knowing it's
far from being perfect, and then, for 2.51, address one single big
issue, and so on for the other releases.

IMHO, the major tasks for 2.51 are:
- abstracting autoconf, adhoc, autotest into autoscript or something
- redesigning the compiler testing suite.

Later:
- specializing macros (AC_CHECK_FUNCS(fnmatch) uses AC_FUNC_FNMATCH
- autorescan (checks that a configure.in is `complete')
- autosystem.h
- etc.


From akim@epita.fr Tue Oct 10 08:02:38 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13iy7C-0007Bf-00
	for <autoconf@gnu.org>; Tue, 10 Oct 2000 08:02:38 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id OAA22365
	Tue, 10 Oct 2000 14:03:15 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13j085-0002hm-00; Tue, 10 Oct 2000 14:11:41 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13iyG7-0001Ev-00; Tue, 10 Oct 2000 14:11:51 +0200
To: Morten Eriksen <mortene@sim.no>
Cc: Peter Eisentraut <peter_e@gmx.net>, autoconf@gnu.org
Subject: Re: AC_PROG_CC not working
References: <Pine.LNX.4.21.0010091727080.856-100000@peter.localdomain>
	<mv4k8bhhtwi.fsf@nostromo.lrde.epita.fr> <51n1gdgebq.fsf@trh.sim.no>
	<mv4u2akhpqu.fsf@nostromo.lrde.epita.fr>
From: Akim Demaille <akim@epita.fr>
Date: 10 Oct 2000 14:11:49 +0200
In-Reply-To: Akim Demaille's message of "10 Oct 2000 13:58:33 +0200"
Message-ID: <mv4hf6khp4q.fsf@nostromo.lrde.epita.fr>
Lines: 10
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

| configure.in:
|         ...
|         : ${CC-my_super_script_CC}

Sorry, I meant:

: ${CC=my_super_script_CC}

|         AC_PROG_CC


From dickey@herndon4.his.com Tue Oct 10 09:17:24 2000
Received: from herndon4.his.com ([209.67.207.7])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13izHY-00085Z-00
	for <autoconf@gnu.org>; Tue, 10 Oct 2000 09:17:24 -0400
Received: from localhost (dickey@localhost)
	by herndon4.his.com (8.9.3/8.9.3) with ESMTP id JAA25942;
	Tue, 10 Oct 2000 09:16:35 -0400 (EDT)
Date: Tue, 10 Oct 2000 09:16:35 -0400 (EDT)
From: "Thomas E. Dickey" <dickey@herndon4.his.com>
Reply-To: dickey@herndon4.his.com
To: Akim Demaille <akim@epita.fr>
cc: Morten Eriksen <mortene@sim.no>, Alexandre Oliva <oliva@lsd.ic.unicamp.br>,
        autoconf@gnu.org
Subject: Re: AC_PROG_CC not working
In-Reply-To: <mv4pul8hpjd.fsf@nostromo.lrde.epita.fr>
Message-ID: <Pine.BSI.4.21.0010100915310.25750-100000@herndon4.his.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On 10 Oct 2000, Akim Demaille wrote:

> >>>>> "Morten" == Morten Eriksen <mortene@sim.no> writes:
> I don't know.  To be honest, I'm starting to despair: there are way
> too many things that need to be completely redesigned in Autoconf, but
> *we can't wait*.  2.50 is already significantly superior to 2.13, and
> we need to stop somewhere.  We need to stop for a while, knowing it's

I don't much care how many features you add if the old configure.in
scripts do not work properly.  (When is 2.49b coming out so we can see if
some of the bugs are fixed?)

-- 
T.E.Dickey <dickey@herndon4.his.com>
http://dickey.his.com
ftp://dickey.his.com



From akim@epita.fr Tue Oct 10 09:30:04 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13izTo-0008Bm-00
	for <autoconf@gnu.org>; Tue, 10 Oct 2000 09:30:04 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id PAA00677
	Tue, 10 Oct 2000 15:30:35 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13j1Ub-0002xq-00; Tue, 10 Oct 2000 15:39:01 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13izcc-0001U8-00; Tue, 10 Oct 2000 15:39:10 +0200
To: dickey@herndon4.his.com
Cc: Morten Eriksen <mortene@sim.no>, Alexandre Oliva <oliva@lsd.ic.unicamp.br>,
        autoconf@gnu.org
Subject: Re: AC_PROG_CC not working
References: <Pine.BSI.4.21.0010100915310.25750-100000@herndon4.his.com>
From: Akim Demaille <akim@epita.fr>
Date: 10 Oct 2000 15:39:06 +0200
In-Reply-To: "Thomas E. Dickey"'s message of "Tue, 10 Oct 2000 09:16:35 -0400 (EDT)"
Message-ID: <mv48zrwhl39.fsf@nostromo.lrde.epita.fr>
Lines: 10
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "Thomas" == Thomas E Dickey <dickey@herndon4.his.com> writes:

Thomas> I don't much care how many features you add if the old
Thomas> configure.in scripts do not work properly.  (When is 2.49b
Thomas> coming out so we can see if some of the bugs are fixed?)

It should happen RSN.  The problem is that the team seems to have less
time than before, and I for one, certainly spend much less time on
Autoconf.  Let's aim at next week.  This weekend lets all spend some
time on some of the pending issues.


From bfriesen@simple.dallas.tx.us Tue Oct 10 10:06:56 2000
Received: from ns.simplesystems.org ([204.252.75.242])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13j03T-0000Dp-00
	for <autoconf@gnu.org>; Tue, 10 Oct 2000 10:06:56 -0400
Received: from scooby.simplesystems.org (scooby.simplesystems.org [204.252.75.244])
	by ns.simplesystems.org (8.9.3/8.9.3) with ESMTP id JAA15815;
	Tue, 10 Oct 2000 09:06:19 -0500 (CDT)
Date: Tue, 10 Oct 2000 09:06:19 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-Sender: bfriesen@scooby.simplesystems.org
To: Akim Demaille <akim@epita.fr>
cc: autoconf@gnu.org
Subject: Re: AC_PROG_CC not working
In-Reply-To: <mv4pul8hpjd.fsf@nostromo.lrde.epita.fr>
Message-ID: <Pine.SO4.4.05.10010100905030.1163-100000@scooby.simplesystems.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On 10 Oct 2000, Akim Demaille wrote:
> 
> I don't know.  To be honest, I'm starting to despair: there are way
> too many things that need to be completely redesigned in Autoconf, but
> *we can't wait*.  2.50 is already significantly superior to 2.13, and
> we need to stop somewhere.  We need to stop for a while, knowing it's
> far from being perfect, and then, for 2.51, address one single big
> issue, and so on for the other releases.

Please take a moment to release stable and compatible versions of
Autoconf, Automake, and Libtool so that there is a new baseline for us
users.  This is what the development community needs.

Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us
http://www.simplesystems.org/users/bfriesen



From proski@gnu.org Tue Oct 10 10:32:48 2000
Received: from rokslava.transcept.com ([208.151.20.130])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13j0SW-0000VU-00
	for <autoconf@gnu.org>; Tue, 10 Oct 2000 10:32:48 -0400
Received: from sunapee.transcept.com by rokslava.transcept.com
          via smtpd (for fencepost.gnu.org [199.232.76.164]) with SMTP; 10 Oct 2000 14:07:52 UT
Received: from sunapee.transcept.com (sunapee.transcept.com [129.86.50.245])
	by sunapee.transcept.com (8.9.3/8.9.3) with ESMTP id KAA27372;
	Tue, 10 Oct 2000 10:32:08 -0400
Date: Tue, 10 Oct 2000 10:32:08 -0400 (EDT)
From: Pavel Roskin <proski@gnu.org>
X-Sender: proskin@sunapee.transcept.com
To: Akim Demaille <akim@epita.fr>
cc: Peter Eisentraut <peter_e@gmx.net>, Morten Eriksen <mortene@sim.no>,
        autoconf@gnu.org
Subject: Re: AC_PROG_CC not working
In-Reply-To: <mv4k8bhhtwi.fsf@nostromo.lrde.epita.fr>
Message-ID: <Pine.LNX.4.21.0010100934020.27259-100000@sunapee.transcept.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hello, Akim and others!

> >> Anyway, I am still against the possibility to specify a list of
> >> compilers for AC_PROG_CC, CXX etc.  I think we will never stop
> >> having problem with this feature :(

Don't be pessimistic. We haven't tried it hard yet.

> Peter> This feature is extremely useful, because the default list is
> Peter> pretty useless for some platforms and packages.

Peter, it is extremely important that you give some real examples here.
Do you mean generic purpose free software or some very specific and
possibly closed-source projects?

I don't understand what "some platforms" you mean. Do those platform have
problems with most GNU software or with those specific packages. In the
former case, can you fix the problem using environment variable,
config.site and similar per-site tweaks?

> Then it means the list is wrong.  It's Autoconf which has to be
> fixed.  It's the tests that must be more accurate.

This statement is based on some assumptions that are probably correct but
let's see what Peter will answer.

> Very architecture depend issues, such as find *the* compiler, will
> probably never be properly handled by Autoconf.  It is the installer
> which has the best knowledge, and it is her that should pass to
> configure the right values.

Let's say it differently. Autoconf cannot guess your intentions or the
policy of your company, but it can (or or should be able to) be told about
them using site-specific and package-specific tweaks.

The question is whether some package-specific tweaks can be dropped in
favor of site-specific tweaks.

> Again, something which is extremely important with configures is that
> they must behave the same way.  Having different flavors of AC_PROG_CC
> seems wrong to me because it means the installer can not depend on
> some expected behavior.

That's a good point, as well as everything else below this.

But still I don't feel good about dropping an existing feature.

Regards,
Pavel Roskin



From akim@epita.fr Tue Oct 10 12:21:46 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13j29w-0001qB-00
	for <autoconf@gnu.org>; Tue, 10 Oct 2000 12:21:45 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id SAA18320
	Tue, 10 Oct 2000 18:22:18 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13j4Ao-0003Q8-00; Tue, 10 Oct 2000 18:30:46 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13j2Iq-0001hk-00; Tue, 10 Oct 2000 18:30:56 +0200
To: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
Cc: autoconf@gnu.org
Subject: Re: AC_PROG_CC not working
References: <Pine.SO4.4.05.10010100905030.1163-100000@scooby.simplesystems.org>
From: Akim Demaille <akim@epita.fr>
Date: 10 Oct 2000 18:30:54 +0200
In-Reply-To: Bob Friesenhahn's message of "Tue, 10 Oct 2000 09:06:19 -0500 (CDT)"
Message-ID: <mv4itr0fykh.fsf@nostromo.lrde.epita.fr>
Lines: 13
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

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

Bob> Please take a moment to release stable and compatible versions of
Bob> Autoconf, Automake, and Libtool so that there is a new baseline
Bob> for us users.  

Rest reassured: we don't plan to release a buggy Autoconf.  Libtool is
in good shape too.  Automake is a bit dormant these days, but since
Pavel seems in great shape, maybe we'll have a nice Automake 1.5 soon :)

Bob> This is what the development community needs.

We know our mission :)


From akim@epita.fr Tue Oct 10 12:29:56 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13j2Hs-0001te-00; Tue, 10 Oct 2000 12:29:56 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id SAA19148
	Tue, 10 Oct 2000 18:30:48 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13j4J2-0003SL-00; Tue, 10 Oct 2000 18:39:16 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13j2RA-0001is-00; Tue, 10 Oct 2000 18:39:32 +0200
To: Pavel Roskin <proski@gnu.org>
Cc: Peter Eisentraut <peter_e@gmx.net>, Morten Eriksen <mortene@sim.no>,
        autoconf@gnu.org
Subject: Re: AC_PROG_CC not working
References: <Pine.LNX.4.21.0010100934020.27259-100000@sunapee.transcept.com>
From: Akim Demaille <akim@epita.fr>
Date: 10 Oct 2000 18:39:32 +0200
In-Reply-To: Pavel Roskin's message of "Tue, 10 Oct 2000 10:32:08 -0400 (EDT)"
Message-ID: <mv4em1ofy63.fsf@nostromo.lrde.epita.fr>
Lines: 31
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "Pavel" == Pavel Roskin <proski@gnu.org> writes:

Akim> I think we will never stop having problem with this feature :(

Pavel> Don't be pessimistic. We haven't tried it hard yet.

You're not a Jedi yet, soon you'll be attracted by the dark side.
Then you'll be a real Autoconf maintainer :)


>> Very architecture depend issues, such as find *the* compiler, will
>> probably never be properly handled by Autoconf.  It is the
>> installer which has the best knowledge, and it is her that should
>> pass to configure the right values.

Pavel> Let's say it differently. Autoconf cannot guess your intentions
Pavel> or the policy of your company, but it can (or or should be able
Pavel> to) be told about them using site-specific and package-specific
Pavel> tweaks.

Pavel> The question is whether some package-specific tweaks can be
Pavel> dropped in favor of site-specific tweaks.

That's a very accurate summary of the point.


Pavel> But still I don't feel good about dropping an existing feature.

Rest reassured: I'm criticizing this feature, because I'm tired of
having more constraints to deal with in Autoconf, but I didn't mean I
was about to get rid of it.


From mortene@sim.no Tue Oct 10 12:36:26 2000
Received: from trh.sim.no ([195.1.220.136] helo=sim.no)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13j2O9-0001xR-00
	for <autoconf@gnu.org>; Tue, 10 Oct 2000 12:36:25 -0400
Received: (qmail 18355 invoked by uid 1114); 10 Oct 2000 16:36:22 -0000
To: autoconf-patches@gnu.org
Cc: autoconf@gnu.org
Subject: [PATCH] A better (?) _AC_EXEEXT
From: Morten Eriksen <mortene@sim.no>
Date: 10 Oct 2000 18:36:22 +0200
Message-ID: <51lmvwpsah.fsf@trh.sim.no>
Lines: 27
User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.3
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

--=-=-=

Hi,

this issue was touched upon earlier today: how the _AC_EXEEXT macro
does host-checking for Cygwin|Mingw|EMXOS2 when deciding the value of
$ac_exeext (which seems like an ugly mismatch with standard Autoconf
policy of checking for _features_ to me).

It was also mentioned on the list a while ago (by yours truly) how the
_AC_EXEEXT macro has a circular dependency: _AC_EXEEXT uses
AC_LINK_IFELSE which uses $ac_exeext which is found by _AC_EXEEXT.

My new version of the _AC_EXEEXT macro fixes both these problems, with
a change in behavior: it now just searches (in a prefered order) for a
valid executable suffix -- instead of trying hard to find _the_
correct suffix.

BTW, is the "-ef" option to ``test'' portable? If not, that part could
be stripped out.

AFAICS, this should also kill the last trace of use of _AC_CYGWIN,
_AC_MINGW32 and _AC_EMXOS2.

Regards,
Morten


--=-=-=
Content-Disposition: attachment; filename=exeext.diff

Index: ChangeLog
===================================================================
RCS file: /cvs/autoconf/ChangeLog,v
retrieving revision 1.897
diff -u -r1.897 ChangeLog
--- ChangeLog	2000/10/05 13:52:41	1.897
+++ ChangeLog	2000/10/10 16:29:34
@@ -1,3 +1,9 @@
+2000-10-10  Morten Eriksen <mortene@sim.no>
+
+	* acspecific.m4 (_AC_EXEEXT): Change of strategy for the macro, we
+	now search for a valid executable suffix. The old code had circular
+	dependencies which basically made it fubar.
+
 2000-10-05  Akim Demaille  <akim@epita.fr>
 
 	Check that updated scripts are valid scripts.
Index: acspecific.m4
===================================================================
RCS file: /cvs/autoconf/acspecific.m4,v
retrieving revision 1.300
diff -u -r1.300 acspecific.m4
--- acspecific.m4	2000/10/02 12:47:13	1.300
+++ acspecific.m4	2000/10/10 16:29:36
@@ -1554,35 +1552,31 @@
 
 # _AC_EXEEXT
 # ----------
-# Check for the extension used for executables.  This knows that we
-# add .exe for Cygwin or mingw32.  Otherwise, it compiles a test
-# executable.  If this is called, the executable extensions will be
-# automatically used by link commands run by the configure script.
+# Check for a valid extension to use for executables.
 define([_AC_EXEEXT],
-[_AC_CYGWIN
-_AC_MINGW32
-_AC_EMXOS2
-AC_CACHE_CHECK([for executable suffix], ac_cv_exeext,
-[case "$CYGWIN $MINGW32 $EMXOS2" in
-  *yes*) ac_cv_exeext=.exe ;;
-  *)
-  AC_LINK_IFELSE([AC_LANG_PROGRAM()],
-  [if test ! -f conftest; then
-    for ac_file in conftest.*; do
-       case $ac_file in
-         *.$ac_ext | *.o | *.obj | *.xcoff) ;;
-         *) ac_cv_exeext=`expr "$ac_file" : 'conftest\(.*\)'`;;
-       esac
-     done
-   fi],
-  [AC_MSG_ERROR([cannot compile and link])])
-  test -n "$ac_cv_exeext" && ac_cv_exeext=no;;
-esac])
-EXEEXT=
-test "$ac_cv_exeext" != no && EXEEXT=$ac_cv_exeext
-dnl Setting ac_exeext will implicitly change the ac_link command.
-ac_exeext=$EXEEXT
-AC_SUBST(EXEEXT)dnl
+[AC_CACHE_CHECK([for executable suffix], ac_cv_exeext,
+[# Try to compile and link an executable with no suffix first.
+ac_exeext=
+AC_LINK_IFELSE([AC_LANG_PROGRAM],
+ [# Ok, we can use an empty suffix for executables. Now see if the
+  # executable with the empty suffix is just a filesystem mapping
+  # from the real file (this happens under Cygwin, for instance).
+  if test conftest -ef conftest.exe; then
+    # Prefer .exe over empty suffix.
+    ac_cv_exeext=.exe
+  else
+    ac_cv_exeext=
+  fi
+ ],
+ [# Couldn't use empty suffix, try with suffix commonly used
+  # on MSWindows platforms.
+  ac_exeext=.exe
+  AC_LINK_IFELSE([AC_LANG_PROGRAM], [ac_cv_exeext=.exe],
+                 [AC_MSG_ERROR(cannot compile and link)])
+ ])
+])
+EXEEXT=$ac_cv_exeext
+AC_SUBST(EXEEXT)
 ])# _AC_EXEEXT
 
 

--=-=-=--


From akim@epita.fr Tue Oct 10 13:26:23 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13j3AV-0002fy-00; Tue, 10 Oct 2000 13:26:23 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id TAA26175
	Tue, 10 Oct 2000 19:27:10 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13j5Ba-0003iL-00; Tue, 10 Oct 2000 19:35:38 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13j3Jh-0001oJ-00; Tue, 10 Oct 2000 19:35:53 +0200
To: Morten Eriksen <mortene@sim.no>
Cc: autoconf-patches@gnu.org, autoconf@gnu.org
Subject: Re: [PATCH] A better (?) _AC_EXEEXT
References: <51lmvwpsah.fsf@trh.sim.no>
From: Akim Demaille <akim@epita.fr>
Date: 10 Oct 2000 19:35:52 +0200
In-Reply-To: Morten Eriksen's message of "10 Oct 2000 18:36:22 +0200"
Message-ID: <mv4k8bgegzr.fsf@nostromo.lrde.epita.fr>
Lines: 43
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

| It was also mentioned on the list a while ago (by yours truly) how the
| _AC_EXEEXT macro has a circular dependency: _AC_EXEEXT uses
| AC_LINK_IFELSE which uses $ac_exeext which is found by _AC_EXEEXT.

AFAICS you still have this problem: you use AC_LINK_IFELSE.  You
shouldn't, rather, see how AC_OBJEXT uses AC_TRY_EVAL directly, that's
the way to go.

| My new version of the _AC_EXEEXT macro fixes both these problems, with
| a change in behavior: it now just searches (in a prefered order) for a
| valid executable suffix -- instead of trying hard to find _the_
| correct suffix.

The previous code was, apparently, able to cope with other extensions
than `' and `.exe'.  I know of no others, agreed, but we could keep
this part.  I wouldn't struggle though :)

| BTW, is the "-ef" option to ``test'' portable? If not, that part could
| be stripped out.

See the documentation of Autoconf :)

        @item @command{test} (files)
        To enable @code{configure} scripts to support
        cross-compilation, they shouldn't do anything that tests
        features of the build system instead of the host system.  But
        occasionally you may find it necessary to check whether some
        arbitrary file exists.  To do so, use @samp{test -f} or
        @samp{test -r}.  Do not use @samp{test -x}, because
        @sc{4.3bsd} does not have it.  Do not use @samp{test -e}
        either, because Solaris 2.5 does not have it.


| AFAICS, this should also kill the last trace of use of _AC_CYGWIN,
| _AC_MINGW32 and _AC_EMXOS2.

This is good and bad.  I'm in favor of removing these macros, because
people should then depend upon AC_CANONICAL_HOST.  But if some people
think we should keep them, then we should reimplement then on top of
the AC_CANONICAL macros.

Thanks a lot for working on this issue!


From peter_e@gmx.net Tue Oct 10 13:30:56 2000
Received: from mailout05.sul.t-online.com ([194.25.134.82])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13j3Eu-0002jg-00; Tue, 10 Oct 2000 13:30:56 -0400
Received: from fmrl03.sul.t-online.de 
	by mailout05.sul.t-online.com with smtp 
	id 13j3Er-00060v-01; Tue, 10 Oct 2000 19:30:53 +0200
Received: from peter.localdomain (520083510237-0001@[212.185.245.137]) by fmrl03.sul.t-online.com
	with esmtp id 13j3El-0G2btgC; Tue, 10 Oct 2000 19:30:47 +0200
Date: Tue, 10 Oct 2000 19:34:53 +0200 (CEST)
From: Peter Eisentraut <peter_e@gmx.net>
To: Pavel Roskin <proski@gnu.org>
cc: Akim Demaille <akim@epita.fr>, Morten Eriksen <mortene@sim.no>, 
    autoconf@gnu.org
Subject: Re: AC_PROG_CC not working
In-Reply-To: <Pine.LNX.4.21.0010100934020.27259-100000@sunapee.transcept.com>
Message-ID: <Pine.LNX.4.21.0010101920040.759-100000@peter.localdomain>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sender: 520083510237-0001@t-dialin.net
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Pavel Roskin writes:

> > Peter> This feature is extremely useful, because the default list is
> > Peter> pretty useless for some platforms and packages.
> 
> Peter, it is extremely important that you give some real examples here.

One real example is PostgreSQL on AIX, where you need to use xlc instead
of whatever else configure might think.  (AC_PROG_CC_STDC is less than
ideal for related reasons.)  I still want to check for gcc first, though,
so I'd use AC_PROG_CC([gcc xlc cc]).  Then we have older versions of
BSD/OS, where you need to take "gcc2".  There are several more examples on
the C++ side, e.g., aCC on HP-UX, xlC on AIX.

"Fix the list" is not a good answer, because you might break programs that
actually needed some other (K&R?) compiler.

Of course the final solution is to implement support for C dialects, as I
have mumbled several times before around these parts (and it even made it
to the TODO list).  But this feature is a good stop-gap.

> > Again, something which is extremely important with configures is that
> > they must behave the same way.  Having different flavors of AC_PROG_CC
> > seems wrong to me because it means the installer can not depend on
> > some expected behavior.

Huh?  I have never seen two configure scripts that behaved the same way
unless they were from the same version of the same package.  The point of
a configure script, IMHO, is to set up a package for successful
compilation, not to "behave the same".  (Having the same user interface is
a whole different matter.)

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/



From mortene@sim.no Tue Oct 10 14:13:32 2000
Received: from trh.sim.no ([195.1.220.136] helo=sim.no)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13j3u7-0003Lj-00
	for <autoconf@gnu.org>; Tue, 10 Oct 2000 14:13:32 -0400
Received: (qmail 19180 invoked by uid 1114); 10 Oct 2000 18:13:28 -0000
To: Akim Demaille <akim@epita.fr>
Cc: autoconf-patches@gnu.org, autoconf@gnu.org
Subject: Re: [PATCH] A better (?) _AC_EXEEXT
References: <51lmvwpsah.fsf@trh.sim.no> <mv4k8bgegzr.fsf@nostromo.lrde.epita.fr>
From: Morten Eriksen <mortene@sim.no>
Date: 10 Oct 2000 20:13:28 +0200
In-Reply-To: Akim Demaille's message of "10 Oct 2000 19:35:52 +0200"
Message-ID: <51k8bg36pj.fsf@trh.sim.no>
Lines: 86
User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.3
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

* Morten
| It was also mentioned on the list a while ago (by yours truly) how the
| _AC_EXEEXT macro has a circular dependency: _AC_EXEEXT uses
| AC_LINK_IFELSE which uses $ac_exeext which is found by _AC_EXEEXT.

* Akim
| AFAICS you still have this problem: you use AC_LINK_IFELSE.  You
| shouldn't, rather, see how AC_OBJEXT uses AC_TRY_EVAL directly,
| that's the way to go.

Nope -- and I should know, as I'm the one who rewrote AC_OBJEXT to use
AC_TRY_EVAL. :^)

Anyway, that's exactly what I was trying to do with AC_EXEEXT too,
until I stumbled into this: to find the suffix for an executable, we
need to compile a sourcecode file into an executable, but to make an
executable we need to know which name to give it.

Or to put it like this: what do you end up with if you use
AC_TRY_EVAL(ac_link)? Here's the definition of ac_link for C:

${CC-cc} -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AC_FD_LOG

See that "conftest$ac_exeext"? :^/  Ok, no problem I thought -- I'd
just eval this instead:

${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AC_FD_LOG

..but this would of course give us an executable named "a.out" with
just about every UNIX compiler under the sun. And I don't think ".out"
is the suffix we want to use on UNIX platforms..

So I actually think its pretty hard to find the "default executable
suffix" on a platform without playing nasty tricks. That's why I've
changed the semantics of _AC_EXEEXT to rather check for a valid suffix
among an ordered list of prefered suffices we'd like to use.

* Akim
| The previous code was, apparently, able to cope with other
| extensions than `' and `.exe'.

The previous code was completely fubar and a butt-ugly joke. There's
no chance in hell it would have coped with any platform where the
executable suffix was anything but blank. Oh, and it could cope with
.exe on exactly three specific platforms -- through the hack of naming
those three platforms explicitly.

| I know of no others, agreed, but we could keep this part.  I
| wouldn't struggle though :)

The new _AC_EXEEXT could easily be extended to try out any other
executable suffix, if any platform was discovered where it would serve
a purpose.

* Morten
| BTW, is the "-ef" option to ``test'' portable? If not, that part could
| be stripped out.

* Akim
| [no]

Ok, I'll rewrite that part then, and re-submit with a new patch
tomorrow.

* Morten
| AFAICS, this should also kill the last trace of use of _AC_CYGWIN,
| _AC_MINGW32 and _AC_EMXOS2.

* Akim
| This is good and bad.  I'm in favor of removing these macros,
| because people should then depend upon AC_CANONICAL_HOST.  But if
| some people think we should keep them, then we should reimplement
| then on top of the AC_CANONICAL macros.

I've already rewritten _AC_CYGWIN to use AC_CANONICAL_something (where
"something"="TARGET", I think). It was kinda hard to figure out the
correct semantics of the macros, though -- what AC_CANONICAL_x should
be used?

I'll submit a patch for this too. I assume those macros should be
marked "obsolete" aswell? I haven't really looked at the Autoconf
mechanisms to do this, so I might need a helping hand to complete the
patch.

Regards,
Morten


From gary@oranda.demon.co.uk Tue Oct 10 16:50:21 2000
Received: from tele-post-20.mail.demon.net ([194.217.242.20])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13j6Lt-00016Z-00
	for <autoconf@gnu.org>; Tue, 10 Oct 2000 16:50:21 -0400
Received: from oranda.demon.co.uk ([194.222.82.6] helo=oranda.goldfish)
	by tele-post-20.mail.demon.net with esmtp (Exim 2.12 #2)
	id 13j6Lr-00019a-0K; Tue, 10 Oct 2000 20:50:19 +0000
Received: from gary by oranda.goldfish with local (Exim 3.11 #1 (Debian))
	id 13j5U6-0001Zz-00; Tue, 10 Oct 2000 20:54:46 +0100
Date: Tue, 10 Oct 2000 20:54:46 +0100
From: "Gary V. Vaughan" <gvv@techie.com>
To: Akim Demaille <akim@epita.fr>
Cc: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>, autoconf@gnu.org
Subject: Re: AC_PROG_CC not working
Message-ID: <20001010205446.E863@demon.co.uk>
References: <Pine.SO4.4.05.10010100905030.1163-100000@scooby.simplesystems.org> <mv4itr0fykh.fsf@nostromo.lrde.epita.fr>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <mv4itr0fykh.fsf@nostromo.lrde.epita.fr>; from akim@epita.fr on Tue, Oct 10, 2000 at 06:30:54PM +0200
X-Operating-System: Linux oranda 2.2.13
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On Tue, Oct 10, 2000 at 06:30:54PM +0200, Akim Demaille wrote:
> >>>>> "Bob" == Bob Friesenhahn <bfriesen@simple.dallas.tx.us> writes:
> 
> Bob> Please take a moment to release stable and compatible versions of
> Bob> Autoconf, Automake, and Libtool so that there is a new baseline
> Bob> for us users.  
> 
> Rest reassured: we don't plan to release a buggy Autoconf.  Libtool is
> in good shape too.

Actually, cvs libtool is still much happier with autoconf-2.13 than
cvs autoconf =(O|  I am hoping that a 2.50 compatible libtool-1.4
won't be too far behind the autoconf release...

> Automake is a bit dormant these days, but since
> Pavel seems in great shape, maybe we'll have a nice Automake 1.5 soon :)
> 
> Bob> This is what the development community needs.
> 
> We know our mission :)

This email will self destruct in 15 seconds =)O|

Cheers,
	Gary.
-- 
  ___              _   ___   __              _         mailto: gvv@techie.com
 / __|__ _ _ ___ _| | / / | / /_ _ _  _ __ _| |_  __ _ ___       gary@gnu.org 
| (_ / _` | '_|// / |/ /| |/ / _` | || / _` | ' \/ _` | _ \
 \___\__,_|_|\_, /|___(_)___/\__,_|\_,_\__, |_||_\__,_|//_/
home page:  /___/                      /___/                  gpg public key:
http://www.oranda.demon.co.uk           http://www.oranda.demon.co.uk/key.asc


From akim@epita.fr Wed Oct 11 04:06:32 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13jGuF-0000cW-00
	for <autoconf@gnu.org>; Wed, 11 Oct 2000 04:06:32 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id KAA04764
	Wed, 11 Oct 2000 10:07:12 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13jIvL-0004vq-00; Wed, 11 Oct 2000 10:15:47 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13jH3Y-00031m-00; Wed, 11 Oct 2000 10:16:08 +0200
To: "Gary V. Vaughan" <gvv@techie.com>
Cc: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>, autoconf@gnu.org
Subject: Re: AC_PROG_CC not working
References: <Pine.SO4.4.05.10010100905030.1163-100000@scooby.simplesystems.org>
	<mv4itr0fykh.fsf@nostromo.lrde.epita.fr>
	<20001010205446.E863@demon.co.uk>
From: Akim Demaille <akim@epita.fr>
Date: 11 Oct 2000 10:16:07 +0200
In-Reply-To: "Gary V. Vaughan"'s message of "Tue, 10 Oct 2000 20:54:46 +0100"
Message-ID: <mv4n1gb3i9k.fsf@nostromo.lrde.epita.fr>
Lines: 7
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "Gary" == Gary V Vaughan <gvv@techie.com> writes:

Gary> Actually, cvs libtool is still much happier with autoconf-2.13
Gary> than cvs autoconf =(O| I am hoping that a 2.50 compatible
Gary> libtool-1.4 won't be too far behind the autoconf release...

What's wrong?  How does it happen?  What should I do to observe this?


From mortene@sim.no Wed Oct 11 05:37:33 2000
Received: from trh.sim.no ([195.1.220.136] helo=sim.no)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13jIKK-0001Vh-00
	for <autoconf@gnu.org>; Wed, 11 Oct 2000 05:37:32 -0400
Received: (qmail 22435 invoked by uid 1114); 11 Oct 2000 09:37:18 -0000
To: Akim Demaille <akim@epita.fr>
Cc: autoconf-patches@gnu.org, autoconf@gnu.org
Subject: [PATCH] A better _AC_EXEEXT, Take II
References: <51lmvwpsah.fsf@trh.sim.no> <mv4k8bgegzr.fsf@nostromo.lrde.epita.fr> <51k8bg36pj.fsf@trh.sim.no>
From: Morten Eriksen <mortene@sim.no>
Date: 11 Oct 2000 11:37:18 +0200
In-Reply-To: Morten Eriksen's message of "10 Oct 2000 20:13:28 +0200"
Message-ID: <51snq3g1m9.fsf_-_@trh.sim.no>
Lines: 10
User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.3
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

--=-=-=

This new version of the patch avoids the non-portable use of the "-ef"
option to ``test''.

Is this one ok?

Regards,
Morten


--=-=-=
Content-Disposition: attachment; filename=exeext.diff

Index: ChangeLog
===================================================================
RCS file: /cvs/autoconf/ChangeLog,v
retrieving revision 1.897
diff -u -r1.897 ChangeLog
--- ChangeLog	2000/10/05 13:52:41	1.897
+++ ChangeLog	2000/10/11 09:28:11
@@ -1,3 +1,9 @@
+2000-10-10  Morten Eriksen <mortene@sim.no>
+
+	* acspecific.m4 (_AC_EXEEXT): Change of strategy for the macro, we
+	now search for a valid executable suffix. The old code had circular
+	dependencies which basically made it fubar.
+
 2000-10-05  Akim Demaille  <akim@epita.fr>
 
 	Check that updated scripts are valid scripts.
Index: acspecific.m4
===================================================================
RCS file: /cvs/autoconf/acspecific.m4,v
retrieving revision 1.300
diff -u -r1.300 acspecific.m4
--- acspecific.m4	2000/10/02 12:47:13	1.300
+++ acspecific.m4	2000/10/11 09:28:12
@@ -1554,35 +1551,33 @@
 
 # _AC_EXEEXT
 # ----------
-# Check for the extension used for executables.  This knows that we
-# add .exe for Cygwin or mingw32.  Otherwise, it compiles a test
-# executable.  If this is called, the executable extensions will be
-# automatically used by link commands run by the configure script.
+# Check for a valid extension to use for executables.
 define([_AC_EXEEXT],
-[_AC_CYGWIN
-_AC_MINGW32
-_AC_EMXOS2
-AC_CACHE_CHECK([for executable suffix], ac_cv_exeext,
-[case "$CYGWIN $MINGW32 $EMXOS2" in
-  *yes*) ac_cv_exeext=.exe ;;
-  *)
-  AC_LINK_IFELSE([AC_LANG_PROGRAM()],
-  [if test ! -f conftest; then
-    for ac_file in conftest.*; do
-       case $ac_file in
-         *.$ac_ext | *.o | *.obj | *.xcoff) ;;
-         *) ac_cv_exeext=`expr "$ac_file" : 'conftest\(.*\)'`;;
-       esac
-     done
-   fi],
-  [AC_MSG_ERROR([cannot compile and link])])
-  test -n "$ac_cv_exeext" && ac_cv_exeext=no;;
-esac])
-EXEEXT=
-test "$ac_cv_exeext" != no && EXEEXT=$ac_cv_exeext
-dnl Setting ac_exeext will implicitly change the ac_link command.
-ac_exeext=$EXEEXT
-AC_SUBST(EXEEXT)dnl
+[AC_CACHE_CHECK([for executable suffix], ac_cv_exeext,
+[# Try to compile and link an executable with no suffix first.
+ac_exeext=
+AC_LINK_IFELSE([AC_LANG_PROGRAM],
+ [ac_cv_exeext=
+  # Ok, we can use an empty suffix for executables. Now see if the
+  # executable with the empty suffix is just a filesystem mapping
+  # from the real file (this happens under Cygwin, for instance).
+  if test -f conftest.exe; then
+    if test "`ls -i conftest.exe | sed s%[[^0-9]].*$%%`" = \
+            "`ls -i conftest | sed s%[[^0-9]].*$%%`"; then
+      # Prefer .exe over empty suffix.
+      ac_cv_exeext=.exe
+    fi
+  fi
+ ],
+ [# Couldn't use empty suffix, try with suffix commonly used
+  # on MSWindows platforms.
+  ac_exeext=.exe
+  AC_LINK_IFELSE([AC_LANG_PROGRAM], [ac_cv_exeext=.exe],
+                 [AC_MSG_ERROR(cannot compile and link)])
+ ])
+])
+EXEEXT=$ac_cv_exeext
+AC_SUBST(EXEEXT)
 ])# _AC_EXEEXT
 
 

--=-=-=--


From corsepiu@faw.uni-ulm.de Wed Oct 11 05:43:32 2000
Received: from www.faw.uni-ulm.de ([134.60.100.4])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13jIQ7-0001eQ-00
	for <autoconf@gnu.org>; Wed, 11 Oct 2000 05:43:31 -0400
Received: (qmail 18437 invoked from network); 11 Oct 2000 09:43:25 -0000
Received: from ultra2.faw.uni-ulm.de (HELO mailserv.faw.uni-ulm.de) (134.60.101.174)
  by www-intern.faw.uni-ulm.de with SMTP; 11 Oct 2000 09:43:25 -0000
Received: (qmail 1061 invoked by uid 0); 11 Oct 2000 09:43:24 -0000
Received: from dialin10.faw.uni-ulm.de (HELO faw.uni-ulm.de) (corsepiu@172.18.1.10)
  by mailserv.faw.uni-ulm.de with SMTP; 11 Oct 2000 09:43:24 -0000
Message-ID: <39E43688.87D19444@faw.uni-ulm.de>
Date: Wed, 11 Oct 2000 11:44:40 +0200
From: Ralf Corsepius <corsepiu@faw.uni-ulm.de>
Reply-To: corsepiu@faw.uni-ulm.de
Organization: Ralf Corsepius
X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.16-SMP i686)
X-Accept-Language: German/Germany, de-DE, en
MIME-Version: 1.0
To: Akim Demaille <akim@epita.fr>
CC: Morten Eriksen <mortene@sim.no>, autoconf-patches@gnu.org,
 	autoconf@gnu.org
Subject: Re: [PATCH] A better (?) _AC_EXEEXT
References: <51lmvwpsah.fsf@trh.sim.no> <mv4k8bgegzr.fsf@nostromo.lrde.epita.fr>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Akim Demaille wrote:

> The previous code was, apparently, able to cope with other extensions
> than `' and `.exe'.  I know of no others,

There was the Atari ST/TT family (TOS), which had used *.prg, *.ttp
and *.tos, IIRC.

Ralf

-- 
Ralf Corsepius 
Forschungsinstitut fuer Anwendungsorientierte Wissensverarbeitung
(FAW)
Helmholtzstr. 16, 89081 Ulm, Germany     Tel: +49/731/501-8690
mailto:corsepiu@faw.uni-ulm.de           FAX: +49/731/501-999  
http://www.faw.uni-ulm.de


From akim@epita.fr Wed Oct 11 05:48:45 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13jIVA-0001gZ-00; Wed, 11 Oct 2000 05:48:45 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id LAA14810
	Wed, 11 Oct 2000 11:49:36 GMT
Received: from accounts.lrde.epita.fr
	([10.223.13.52] helo=nostromo.lrde.epita.fr ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13jKWS-0005FZ-00; Wed, 11 Oct 2000 11:58:12 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13jIef-0004P5-00; Wed, 11 Oct 2000 11:58:33 +0200
To: Morten Eriksen <mortene@sim.no>
Cc: autoconf-patches@gnu.org, autoconf@gnu.org
Subject: Re: [PATCH] A better (?) _AC_EXEEXT
References: <51lmvwpsah.fsf@trh.sim.no>
	<mv4k8bgegzr.fsf@nostromo.lrde.epita.fr> <51k8bg36pj.fsf@trh.sim.no>
From: Akim Demaille <akim@epita.fr>
Date: 11 Oct 2000 11:58:33 +0200
In-Reply-To: Morten Eriksen's message of "10 Oct 2000 20:13:28 +0200"
Message-ID: <mv4aecb3diu.fsf@nostromo.lrde.epita.fr>
Lines: 109
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

| * Morten
| | It was also mentioned on the list a while ago (by yours truly) how the
| | _AC_EXEEXT macro has a circular dependency: _AC_EXEEXT uses
| | AC_LINK_IFELSE which uses $ac_exeext which is found by _AC_EXEEXT.
| 
| * Akim
| | AFAICS you still have this problem: you use AC_LINK_IFELSE.  You
| | shouldn't, rather, see how AC_OBJEXT uses AC_TRY_EVAL directly,
| | that's the way to go.
| 
| Nope -- and I should know, as I'm the one who rewrote AC_OBJEXT to use
| AC_TRY_EVAL. :^)
| 
| Anyway, that's exactly what I was trying to do with AC_EXEEXT too,
| until I stumbled into this: to find the suffix for an executable, we
| need to compile a sourcecode file into an executable, but to make an
| executable we need to know which name to give it.
| 
| Or to put it like this: what do you end up with if you use
| AC_TRY_EVAL(ac_link)? Here's the definition of ac_link for C:
| 
| ${CC-cc} -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AC_FD_LOG
| 
| See that "conftest$ac_exeext"? :^/  Ok, no problem I thought -- I'd
| just eval this instead:
| 
| ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AC_FD_LOG
| 
| ..but this would of course give us an executable named "a.out" with
| just about every UNIX compiler under the sun. And I don't think ".out"
| is the suffix we want to use on UNIX platforms..
| 
| So I actually think its pretty hard to find the "default executable
| suffix" on a platform without playing nasty tricks. That's why I've
| changed the semantics of _AC_EXEEXT to rather check for a valid suffix
| among an ordered list of prefered suffices we'd like to use.

Sorry, but I am still lost.  I was not referring to theoretical
dependencies, I'm referring, as a first step, to actual AC_REQUIRE
dependencies.  Your patch, as is, does not solve one of the most
important issues: since AC_PROG_CC launches AC_EXEEXT which uses
AC_LINK_IFELSE which requires AC_PROG_CC, autoconf should and will
fail.  This is the circular dependency I'm referring to.

AC_LINK_IFELSE must keep its AC_REQUIRE on AC_PROG_CC, hence you must
not use AC_LINK_IFELSE.  That's why I first suggested using
AC_TRY_EVAL: to avoid the AC_REQUIRE.

Note, too, that if you feel it is exactly AC_LINK_IFELSE that you
need, then you should change:

  # AC_LINK_IFELSE(PROGRAM, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
  # -----------------------------------------------------------------
  # Try to link PROGRAM.
  AC_DEFUN([AC_LINK_IFELSE],
  [AC_LANG_COMPILER_REQUIRE()dnl
  m4_ifvanl([$1], [AC_LANG_CONFTEST([$1])])dnl
  if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
    m4_default([$2], :)
  else
    echo "configure: failed program was:" >&AC_FD_LOG
    cat conftest.$ac_ext >&AC_FD_LOG
  m4_ifvanl([$3], [  $3])dnl
  fi
  rm -f conftest.$ac_objext conftest$ac_exeext ifval([$1],
                                                     [conftest.$ac_ext])[]dnl
  ])# AC_LINK_IFELSE

into

  # _AC_LINK_IFELSE(PROGRAM, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
  # ------------------------------------------------------------------
  # Try to link PROGRAM.
  define([_AC_LINK_IFELSE],
  [m4_ifvanl([$1], [AC_LANG_CONFTEST([$1])])dnl
  if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
    m4_default([$2], :)
  else
    echo "configure: failed program was:" >&AC_FD_LOG
    cat conftest.$ac_ext >&AC_FD_LOG
  m4_ifvanl([$3], [  $3])dnl
  fi
  rm -f conftest.$ac_objext conftest$ac_exeext ifval([$1],
                                                     [conftest.$ac_ext])[]dnl
  ])# _AC_LINK_IFELSE
  
  
  # AC_LINK_IFELSE(PROGRAM, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
  # -----------------------------------------------------------------
  # Try to link PROGRAM.
  AC_DEFUN([AC_LINK_IFELSE],
  [AC_LANG_COMPILER_REQUIRE()dnl
  _AC_LINK_IFELSE($@)])

and use _AC_LINK_IFELSE instead.  Likewise wrt AC_COMPILE_IFELSE.



| I've already rewritten _AC_CYGWIN to use AC_CANONICAL_something (where
| "something"="TARGET", I think). It was kinda hard to figure out the
| correct semantics of the macros, though -- what AC_CANONICAL_x should
| be used?

You may call AC_CANONICAL_TARGET (while AC_CANONICAL_HOST is more
logical), but you must depend on the *_host variables, *not* the
target vars.  See the doc for more details.

        Akim


From mortene@sim.no Wed Oct 11 06:27:22 2000
Received: from trh.sim.no ([195.1.220.136] helo=sim.no)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13jJ6X-00068F-00
	for <autoconf@gnu.org>; Wed, 11 Oct 2000 06:27:22 -0400
Received: (qmail 22683 invoked by uid 1114); 11 Oct 2000 10:27:13 -0000
To: autoconf-patches@gnu.org
Cc: autoconf@gnu.org
Subject: [PATCH] Misc fixes for use of extension suffices
From: Morten Eriksen <mortene@sim.no>
Date: 11 Oct 2000 12:27:13 +0200
Message-ID: <51og0rfzb2.fsf@trh.sim.no>
Lines: 10
User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.3
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

--=-=-=

Hi,

this patch contains various simple fixes for misuse or missing use of
the object file extension and executable file suffix.

Regards,
Morten


--=-=-=
Content-Disposition: attachment; filename=extfixes.diff

Index: ChangeLog
===================================================================
RCS file: /cvs/autoconf/ChangeLog,v
retrieving revision 1.897
diff -u -r1.897 ChangeLog
--- ChangeLog	2000/10/05 13:52:41	1.897
+++ ChangeLog	2000/10/11 10:05:54
@@ -1,3 +1,10 @@
+2000-10-11  Morten Eriksen <mortene@sim.no>
+
+	* acgeneral.m4 (AC_RUN_IFELSE): Add missing executable suffix.
+	* aclang.m4 (_AC_LANG_COMPILER_WORKS): Likewise.
+	* aclang.m4 (AC_PROG_CC_C_O, AC_PROG_F77_C_O): Fix typos where
+	$objext were used instead of $ac_objext.
+
 2000-10-05  Akim Demaille  <akim@epita.fr>
 
 	Check that updated scripts are valid scripts.
Index: acgeneral.m4
===================================================================
RCS file: /cvs/autoconf/acgeneral.m4,v
retrieving revision 1.563
diff -u -r1.563 acgeneral.m4
--- acgeneral.m4	2000/10/02 13:11:28	1.563
+++ acgeneral.m4	2000/10/11 10:00:24
@@ -3455,7 +3455,7 @@
 [AC_LANG_COMPILER_REQUIRE()dnl
 m4_ifvanl([$1], [AC_LANG_CONFTEST([$1])])dnl
 if AC_TRY_EVAL(ac_link) &&
-   test -s conftest$ac_exeext && (./conftest; exit) 2>/dev/null; then
+   test -s conftest$ac_exeext && (./conftest$ac_exeext; exit) 2>/dev/null; then
   m4_default([$2], :)
 else
   echo "configure: failed program was:" >&AC_FD_LOG
Index: aclang.m4
===================================================================
RCS file: /cvs/autoconf/aclang.m4,v
retrieving revision 1.68
diff -u -r1.68 aclang.m4
--- aclang.m4	2000/10/02 13:11:28	1.68
+++ aclang.m4	2000/10/11 10:00:24
@@ -523,7 +520,7 @@
 [# FIXME: these cross compiler hacks should be removed for autoconf 3.0
 # If not cross compiling, check that we can run a simple program.
 if test "$cross_compiling" != yes; then
-  if AC_TRY_COMMAND(./conftest); then
+  if AC_TRY_COMMAND(./conftest$ac_exeext); then
     cross_compiling=no
   else
     if test "$cross_compiling" = maybe; then
@@ -796,9 +793,9 @@
 # Make sure it works both with $CC and with simple cc.
 # We do the test twice because some compilers refuse to overwrite an
 # existing .o file with -o, though they will create one.
-ac_try='${CC-cc} -c conftest.$ac_ext -o conftest.$objext >&AC_FD_LOG'
+ac_try='${CC-cc} -c conftest.$ac_ext -o conftest.$ac_objext >&AC_FD_LOG'
 if AC_TRY_EVAL(ac_try) &&
-   test -f conftest.$objext && AC_TRY_EVAL(ac_try);
+   test -f conftest.$ac_objext && AC_TRY_EVAL(ac_try);
 then
   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
   if test "x$CC" != xcc; then
@@ -806,7 +803,7 @@
     if AC_TRY_COMMAND(cc -c conftest.$ac_ext >&AC_FD_LOG); then
       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&AC_FD_LOG'
       if AC_TRY_EVAL(ac_try) &&
-	 test -f conftest.$objext && AC_TRY_EVAL(ac_try);
+	 test -f conftest.$ac_objext && AC_TRY_EVAL(ac_try);
       then
         # cc works too.
         :
@@ -1089,8 +1086,8 @@
 # We do the `AC_TRY_EVAL' test twice because some compilers refuse to
 # overwrite an existing `.o' file with `-o', although they will create
 # one.
-ac_try='$F77 $FFLAGS -c conftest.$ac_ext -o conftest.$objext >&AC_FD_LOG'
-if AC_TRY_EVAL(ac_try) && test -f conftest.$objext && AC_TRY_EVAL(ac_try); then
+ac_try='$F77 $FFLAGS -c conftest.$ac_ext -o conftest.$ac_objext >&AC_FD_LOG'
+if AC_TRY_EVAL(ac_try) && test -f conftest.$ac_objext && AC_TRY_EVAL(ac_try); then
   ac_cv_prog_f77_c_o=yes
 else
   ac_cv_prog_f77_c_o=no

--=-=-=--


From mortene@sim.no Wed Oct 11 06:51:43 2000
Received: from trh.sim.no ([195.1.220.136] helo=sim.no)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13jJU6-0006QM-00
	for <autoconf@gnu.org>; Wed, 11 Oct 2000 06:51:43 -0400
Received: (qmail 22896 invoked by uid 1114); 11 Oct 2000 10:51:34 -0000
To: Akim Demaille <akim@epita.fr>
Cc: autoconf-patches@gnu.org, autoconf@gnu.org
Subject: Re: [PATCH] A better (?) _AC_EXEEXT
References: <51lmvwpsah.fsf@trh.sim.no> <mv4k8bgegzr.fsf@nostromo.lrde.epita.fr> <51k8bg36pj.fsf@trh.sim.no> <mv4aecb3diu.fsf@nostromo.lrde.epita.fr>
From: Morten Eriksen <mortene@sim.no>
In-Reply-To: Akim Demaille's message of "11 Oct 2000 11:58:33 +0200"
User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.3
Date: 11 Oct 2000 12:51:34 +0200
Message-ID: <51aecbfy6h.fsf@trh.sim.no>
Lines: 30
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

--=-=-=

* Akim
| [...] Your patch, as is, does not solve [...]

I know, I know. I don't claim the patch to be perfect, I'm just saying
that it is _better_ than the code it replaces.  :^}

| [...] since AC_PROG_CC launches AC_EXEEXT which uses AC_LINK_IFELSE
| which requires AC_PROG_CC, autoconf should and will fail.  This is
| the circular dependency I'm referring to.
| 
| AC_LINK_IFELSE must keep its AC_REQUIRE on AC_PROG_CC, hence you
| must not use AC_LINK_IFELSE.  That's why I first suggested using
| AC_TRY_EVAL: to avoid the AC_REQUIRE.

Yes, I was aware of that problem -- I just can't think of a good way
to solve it at the moment.

| You may call AC_CANONICAL_TARGET (while AC_CANONICAL_HOST is more
| logical), but you must depend on the *_host variables, *not* the
| target vars.  See the doc for more details.

I think the attached patch will at least improve the situation a
little bit. I couldn't find anything from config.guess matching the
EMX/OS2 stuff, though.

Regards,
Morten


--=-=-=
Content-Disposition: attachment; filename=win32chks.diff

Index: ChangeLog
===================================================================
RCS file: /cvs/autoconf/ChangeLog,v
retrieving revision 1.897
diff -u -r1.897 ChangeLog
--- ChangeLog	2000/10/05 13:52:41	1.897
+++ ChangeLog	2000/10/11 10:42:34
@@ -1,3 +1,9 @@
+2000-10-11  Morten Eriksen <mortene@sim.no>
+
+	* acspesific.m4 (_AC_CYGWIN, _AC_MINGW32): Avoid false negatives
+	when using compilers which do not set up special defines on these
+	platforms.
+
 2000-10-05  Akim Demaille  <akim@epita.fr>
 
 	Check that updated scripts are valid scripts.
Index: acspecific.m4
===================================================================
RCS file: /cvs/autoconf/acspecific.m4,v
retrieving revision 1.300
diff -u -r1.300 acspecific.m4
--- acspecific.m4	2000/10/02 12:47:13	1.300
+++ acspecific.m4	2000/10/11 10:42:35
@@ -1496,25 +1496,21 @@
 
 # _AC_CYGWIN
 # ----------
-# Check for Cygwin.  This is a way to set the right value for
-# EXEEXT.
+# Check for Cygwin.
 define([_AC_CYGWIN],
-[AC_CACHE_CHECK(for Cygwin environment, ac_cv_cygwin,
-[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],
-[#ifndef __CYGWIN__
-# define __CYGWIN__ __CYGWIN32__
-#endif
-return __CYGWIN__;])],
-                   [ac_cv_cygwin=yes],
-                   [ac_cv_cygwin=no])])
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
+AC_CACHE_CHECK(for Cygwin environment, ac_cv_cygwin,
+[case "$host_os" in
+  cygwin*) ac_cv_cygwin=yes ;;
+  *) ac_cv_cygwin=no ;;
+esac])
 test "$ac_cv_cygwin" = yes && CYGWIN=yes[]dnl
 ])# _AC_CYGWIN
 
 
 # _AC_EMXOS2
 # ----------
-# Check for EMX on OS/2.  This is another way to set the right value
-# for EXEEXT.
+# Check for EMX on OS/2.
 define([_AC_EMXOS2],
 [AC_CACHE_CHECK(for EMX OS/2 environment, ac_cv_emxos2,
 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [return __EMX__;])],
@@ -1526,13 +1522,14 @@
 
 # _AC_MINGW32
 # -----------
-# Check for mingw32.  This is another way to set the right value for
-# EXEEXT.
+# Check for mingw32.
 define([_AC_MINGW32],
-[AC_CACHE_CHECK(for mingw32 environment, ac_cv_mingw32,
-[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [return __MINGW32__;])],
-                   [ac_cv_mingw32=yes],
-                   [ac_cv_mingw32=no])])
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
+AC_CACHE_CHECK(for mingw32 environment, ac_cv_mingw32,
+[case "$host_os" in
+  mingw32*) ac_cv_mingw32=yes ;;
+  *) ac_cv_mingw32=no ;;
+esac])
 test "$ac_cv_mingw32" = yes && MINGW32=yes[]dnl
 ])# _AC_MINGW32
 

--=-=-=--


From larsa@sim.no Wed Oct 11 07:15:17 2000
Received: from trh.sim.no ([195.1.220.136] helo=sim.no)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13jJqv-0006dT-00
	for <autoconf@gnu.org>; Wed, 11 Oct 2000 07:15:17 -0400
Received: (qmail 23121 invoked by uid 2000); 11 Oct 2000 11:15:08 -0000
Date: Wed, 11 Oct 2000 13:15:08 +0200
From: "Lars J. Aas" <larsa@sim.no>
To: Akim Demaille <akim@epita.fr>
Cc: Morten Eriksen <mortene@sim.no>, autoconf-patches@gnu.org,
  autoconf@gnu.org
Subject: Re: [PATCH] A better (?) _AC_EXEEXT
Message-ID: <20001011131508.A23064@sim.no>
Reply-To: larsa@sim.no
References: <51lmvwpsah.fsf@trh.sim.no> <mv4k8bgegzr.fsf@nostromo.lrde.epita.fr>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <mv4k8bgegzr.fsf@nostromo.lrde.epita.fr>; from akim@epita.fr on Tue, Oct 10, 2000 at 07:35:52PM +0200
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On Tue, Oct 10, 2000 at 07:35:52PM +0200, Akim Demaille wrote:
: | BTW, is the "-ef" option to ``test'' portable? If not, that part could
: | be stripped out.
: 
: See the documentation of Autoconf :)
: 
:         @item @command{test} (files)
:         To enable @code{configure} scripts to support
:         cross-compilation, they shouldn't do anything that tests
:         features of the build system instead of the host system.  But
:         occasionally you may find it necessary to check whether some
:         arbitrary file exists.  To do so, use @samp{test -f} or
:         @samp{test -r}.  Do not use @samp{test -x}, because
:         @sc{4.3bsd} does not have it.  Do not use @samp{test -e}
:         either, because Solaris 2.5 does not have it.

Note that the above described "-e" option is a completely different option
from the "-ef" option.  When finding the exeext, I also believe it is
unproblematic to do so on the build system, regardless of whether you
cross-compile or not...  The question still remains; is the "-ef" option
universally supported?

  Lars J


From akim@epita.fr Wed Oct 11 07:19:48 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13jJvH-0006fx-00; Wed, 11 Oct 2000 07:19:47 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id NAA23076
	Wed, 11 Oct 2000 13:20:26 GMT
Received: from accounts.lrde.epita.fr
	([10.223.13.52] helo=nostromo.lrde.epita.fr ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13jLwN-0005lU-00; Wed, 11 Oct 2000 13:29:03 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13jK4b-0004cM-00; Wed, 11 Oct 2000 13:29:25 +0200
To: Morten Eriksen <mortene@sim.no>
Cc: autoconf-patches@gnu.org, autoconf@gnu.org
Subject: Re: [PATCH] A better (?) _AC_EXEEXT
References: <51lmvwpsah.fsf@trh.sim.no>
	<mv4k8bgegzr.fsf@nostromo.lrde.epita.fr> <51k8bg36pj.fsf@trh.sim.no>
	<mv4aecb3diu.fsf@nostromo.lrde.epita.fr> <51aecbfy6h.fsf@trh.sim.no>
From: Akim Demaille <akim@epita.fr>
Date: 11 Oct 2000 13:29:25 +0200
In-Reply-To: Morten Eriksen's message of "11 Oct 2000 12:51:34 +0200"
Message-ID: <mv4snq31uqy.fsf@nostromo.lrde.epita.fr>
Lines: 34
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

| * Akim
| | [...] Your patch, as is, does not solve [...]
| 
| I know, I know. I don't claim the patch to be perfect, I'm just saying
| that it is _better_ than the code it replaces.  :^}
| 
| | [...] since AC_PROG_CC launches AC_EXEEXT which uses AC_LINK_IFELSE
| | which requires AC_PROG_CC, autoconf should and will fail.  This is
| | the circular dependency I'm referring to.
| | 
| | AC_LINK_IFELSE must keep its AC_REQUIRE on AC_PROG_CC, hence you
| | must not use AC_LINK_IFELSE.  That's why I first suggested using
| | AC_TRY_EVAL: to avoid the AC_REQUIRE.
| 
| Yes, I was aware of that problem -- I just can't think of a good way
| to solve it at the moment.

Then let me restate my question: why don't you use AC_TRY_EVAL just
like in AC_EXEXT: this is a good first step I think.


| | You may call AC_CANONICAL_TARGET (while AC_CANONICAL_HOST is more
| | logical), but you must depend on the *_host variables, *not* the
| | target vars.  See the doc for more details.
| 
| I think the attached patch will at least improve the situation a
| little bit. I couldn't find anything from config.guess matching the
| EMX/OS2 stuff, though.

This patch is OK with me.  But it is a first step: as is it means that
any configure.in using a compiler will require AC_CANONICAL_HOST,
which is not good.  But the plan is to remove the call to AC_CYGWIN
etc. from AC_PROG_CC, so it is OK.


From akim@epita.fr Wed Oct 11 07:27:53 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13jK36-0006jy-00; Wed, 11 Oct 2000 07:27:52 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id NAA23887
	Wed, 11 Oct 2000 13:28:33 GMT
Received: from accounts.lrde.epita.fr
	([10.223.13.52] helo=nostromo.lrde.epita.fr ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13jM4D-0005pR-00; Wed, 11 Oct 2000 13:37:09 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13jKCR-0004ec-00; Wed, 11 Oct 2000 13:37:31 +0200
To: larsa@sim.no
Cc: Morten Eriksen <mortene@sim.no>, autoconf-patches@gnu.org,
        autoconf@gnu.org
Subject: Re: [PATCH] A better (?) _AC_EXEEXT
References: <51lmvwpsah.fsf@trh.sim.no>
	<mv4k8bgegzr.fsf@nostromo.lrde.epita.fr>
	<20001011131508.A23064@sim.no>
From: Akim Demaille <akim@epita.fr>
Date: 11 Oct 2000 13:37:31 +0200
In-Reply-To: "Lars J. Aas"'s message of "Wed, 11 Oct 2000 13:15:08 +0200"
Message-ID: <mv4k8bf1udg.fsf@nostromo.lrde.epita.fr>
Lines: 30
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "Lars" == Lars J Aas <larsa@sim.no> writes:

Lars> Note that the above described "-e" option is a completely
Lars> different option from the "-ef" option.  When finding the
Lars> exeext, I also believe it is unproblematic to do so on the build
Lars> system, regardless of whether you cross-compile or not...  The
Lars> question still remains; is the "-ef" option universally
Lars> supported?

Thanks Lars, I completely missed this point.  I really read `-ef' as
`-e -f', which makes no sense anyway :)

Now with your remark in mind, given the snippet which uses it

+  if test conftest -ef conftest.exe; then
+    # Prefer .exe over empty suffix.
+    ac_cv_exeext=.exe
+  else
+    ac_cv_exeext=
+  fi

I think it is OK to use it, since the fall back is TRT.  The only
problem is with error messages from test, so I'd propose:

+  if (test conftest -ef conftest.exe) >/dev/null 2>&1; then
+    # Prefer .exe over empty suffix.
+    ac_cv_exeext=.exe
+  else
+    ac_cv_exeext=
+  fi


From mortene@sim.no Wed Oct 11 08:47:06 2000
Received: from trh.sim.no ([195.1.220.136] helo=sim.no)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13jLHm-0007hL-00
	for <autoconf@gnu.org>; Wed, 11 Oct 2000 08:47:06 -0400
Received: (qmail 23565 invoked by uid 1114); 11 Oct 2000 12:46:58 -0000
To: Akim Demaille <akim@epita.fr>
Cc: autoconf-patches@gnu.org, autoconf@gnu.org
Subject: Re: [PATCH] A better (?) _AC_EXEEXT
References: <51lmvwpsah.fsf@trh.sim.no> <mv4k8bgegzr.fsf@nostromo.lrde.epita.fr> <51k8bg36pj.fsf@trh.sim.no> <mv4aecb3diu.fsf@nostromo.lrde.epita.fr> <51aecbfy6h.fsf@trh.sim.no> <mv4snq31uqy.fsf@nostromo.lrde.epita.fr>
From: Morten Eriksen <mortene@sim.no>
Date: 11 Oct 2000 14:46:58 +0200
In-Reply-To: Akim Demaille's message of "11 Oct 2000 13:29:25 +0200"
Message-ID: <51u2ajee9p.fsf@trh.sim.no>
Lines: 18
User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.3
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

* Akim
| Then let me restate my question: why don't you use AC_TRY_EVAL just
| like in AC_EXEXT: this is a good first step I think.

Umm.. I assume you mean to ask "why not use AC_TRY_EVAL in AC_EXEEXT
just like in AC_OBJEXT" (and not "..like in AC_EXEEXT")?

If so, my question for you is then: what should AC_TRY_EVAL evaluate?
I can't think of any suitable command which would uncover how to use
executable suffices on the system -- without already _knowing_ the
suffix.  :^/

Note that AC_TRY_EVAL(ac_link) is _not_ the correct answer, as ac_link
contains a reference to $ac_exeext (which of course means a circular
dependency back to AC_EXEEXT).

Regards,
Morten


From akim@epita.fr Wed Oct 11 09:35:40 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13jM2l-0008DI-00; Wed, 11 Oct 2000 09:35:39 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id PAA05214
	Wed, 11 Oct 2000 15:36:22 GMT
Received: from nis.lrde.epita.fr
	([10.223.13.52] helo=nostromo.lrde.epita.fr ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13jO3w-0006BS-00; Wed, 11 Oct 2000 15:45:00 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13jMCB-0003Dc-00; Wed, 11 Oct 2000 15:45:23 +0200
To: Morten Eriksen <mortene@sim.no>
Cc: autoconf-patches@gnu.org, autoconf@gnu.org
Subject: Re: [PATCH] A better (?) _AC_EXEEXT
References: <51lmvwpsah.fsf@trh.sim.no>
	<mv4k8bgegzr.fsf@nostromo.lrde.epita.fr> <51k8bg36pj.fsf@trh.sim.no>
	<mv4aecb3diu.fsf@nostromo.lrde.epita.fr> <51aecbfy6h.fsf@trh.sim.no>
	<mv4snq31uqy.fsf@nostromo.lrde.epita.fr> <51u2ajee9p.fsf@trh.sim.no>
From: Akim Demaille <akim@epita.fr>
Date: 11 Oct 2000 15:45:23 +0200
In-Reply-To: Morten Eriksen's message of "11 Oct 2000 14:46:58 +0200"
Message-ID: <mv4bswr1ogc.fsf@nostromo.lrde.epita.fr>
Lines: 29
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

| * Akim
| | Then let me restate my question: why don't you use AC_TRY_EVAL just
| | like in AC_EXEXT: this is a good first step I think.
| 
| Umm.. I assume you mean to ask "why not use AC_TRY_EVAL in AC_EXEEXT
| just like in AC_OBJEXT" (and not "..like in AC_EXEEXT")?
| 
| If so, my question for you is then: what should AC_TRY_EVAL evaluate?
| I can't think of any suitable command which would uncover how to use
| executable suffices on the system -- without already _knowing_ the
| suffix.  :^/
| 
| Note that AC_TRY_EVAL(ac_link) is _not_ the correct answer, as ac_link
| contains a reference to $ac_exeext (which of course means a circular
| dependency back to AC_EXEEXT).

Yep.  We fail to communicate :)

I agree there are *two* issues.  One is that there is a AC_REQUIRE
circular dependency because AC_EXEXT uses AC_LINK_IFELSE, the other is
that both AC_LINK_IFELSE and AC_TRY_EVAL(ac_link) are inappropriate
here.

My point is *first* we get rid of the circular dependency, *then* we
proceed to a sound implementation of AC_EXEEXT and family.  I know
this is not the final answer, but we *have to* get rid of this
circular dependency.  This is why, although I know it is not perfectly
right, I insist on having a patch which no longer uses AC_LINK_IFELSE.


From mortene@sim.no Wed Oct 11 11:22:22 2000
Received: from trh.sim.no ([195.1.220.136] helo=sim.no)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13jNi2-0003uK-00
	for <autoconf@gnu.org>; Wed, 11 Oct 2000 11:22:22 -0400
Received: (qmail 24695 invoked by uid 1114); 11 Oct 2000 15:22:14 -0000
To: Akim Demaille <akim@epita.fr>
Cc: autoconf-patches@gnu.org, autoconf@gnu.org
Subject: Re: [PATCH] A better (?) _AC_EXEEXT
References: <51lmvwpsah.fsf@trh.sim.no> <mv4k8bgegzr.fsf@nostromo.lrde.epita.fr> <51k8bg36pj.fsf@trh.sim.no> <mv4aecb3diu.fsf@nostromo.lrde.epita.fr> <51aecbfy6h.fsf@trh.sim.no> <mv4snq31uqy.fsf@nostromo.lrde.epita.fr> <51u2ajee9p.fsf@trh.sim.no> <mv4bswr1ogc.fsf@nostromo.lrde.epita.fr>
From: Morten Eriksen <mortene@sim.no>
Date: 11 Oct 2000 17:22:13 +0200
In-Reply-To: Akim Demaille's message of "11 Oct 2000 15:45:23 +0200"
Message-ID: <517l7fe72y.fsf@trh.sim.no>
Lines: 13
User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.3
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

--=-=-=

* Akim
| I agree there are *two* issues.  One is that there is a AC_REQUIRE
| circular dependency because AC_EXEXT uses AC_LINK_IFELSE, the other
| is that both AC_LINK_IFELSE and AC_TRY_EVAL(ac_link) are
| inappropriate here.

Aha. How about the attached patch, then?

Regards,
Morten


--=-=-=
Content-Disposition: attachment; filename=exeext3.diff

Index: ChangeLog
===================================================================
RCS file: /cvs/autoconf/ChangeLog,v
retrieving revision 1.897
diff -u -r1.897 ChangeLog
--- ChangeLog	2000/10/05 13:52:41	1.897
+++ ChangeLog	2000/10/11 09:28:11
@@ -1,3 +1,9 @@
+2000-10-11  Morten Eriksen <mortene@sim.no>
+
+	* acspecific.m4 (_AC_EXEEXT): Change of strategy for the macro, we
+	now search for a valid executable suffix. The old code had circular
+	dependencies which basically made it fubar.
+
 2000-10-05  Akim Demaille  <akim@epita.fr>
 
 	Check that updated scripts are valid scripts.
Index: acspecific.m4
===================================================================
RCS file: /cvs/autoconf/acspecific.m4,v
retrieving revision 1.300
diff -u -r1.300 acspecific.m4
--- acspecific.m4	2000/10/02 12:47:13	1.300
+++ acspecific.m4	2000/10/11 15:14:45
@@ -1554,35 +1554,37 @@
 
 # _AC_EXEEXT
 # ----------
-# Check for the extension used for executables.  This knows that we
-# add .exe for Cygwin or mingw32.  Otherwise, it compiles a test
-# executable.  If this is called, the executable extensions will be
-# automatically used by link commands run by the configure script.
+# Check for a valid extension to use for executables.
 define([_AC_EXEEXT],
-[_AC_CYGWIN
-_AC_MINGW32
-_AC_EMXOS2
-AC_CACHE_CHECK([for executable suffix], ac_cv_exeext,
-[case "$CYGWIN $MINGW32 $EMXOS2" in
-  *yes*) ac_cv_exeext=.exe ;;
-  *)
-  AC_LINK_IFELSE([AC_LANG_PROGRAM()],
-  [if test ! -f conftest; then
-    for ac_file in conftest.*; do
-       case $ac_file in
-         *.$ac_ext | *.o | *.obj | *.xcoff) ;;
-         *) ac_cv_exeext=`expr "$ac_file" : 'conftest\(.*\)'`;;
-       esac
-     done
-   fi],
-  [AC_MSG_ERROR([cannot compile and link])])
-  test -n "$ac_cv_exeext" && ac_cv_exeext=no;;
-esac])
-EXEEXT=
-test "$ac_cv_exeext" != no && EXEEXT=$ac_cv_exeext
-dnl Setting ac_exeext will implicitly change the ac_link command.
-ac_exeext=$EXEEXT
-AC_SUBST(EXEEXT)dnl
+[AC_CACHE_CHECK([for executable suffix], ac_cv_exeext,
+[# Try to compile and link an executable with no suffix first.
+ac_exeext=
+AC_LANG_CONFTEST([AC_LANG_PROGRAM()])
+if AC_TRY_EVAL(ac_link); then
+  # Ok, we can use an empty suffix for executables. Now see if the
+  # executable with the empty suffix is just a filesystem mapping
+  # from the real file (this happens under Cygwin, for instance).
+  if (test conftest -ef conftest.exe) >/dev/null 2>&1; then
+    # Prefer .exe over empty suffix.
+    ac_cv_exeext=.exe
+  else
+    ac_cv_exeext=
+  fi
+else
+  # Couldn't use empty suffix, try with suffix commonly used
+  # on MSWindows platforms.
+  ac_exeext=.exe
+  if AC_TRY_EVAL(ac_link); then
+    ac_cv_exeext=.exe
+  else
+    rm -f conftest.$ac_ext conftest.$ac_objext
+    AC_MSG_ERROR(cannot compile and link)
+  fi
+fi
+])
+rm -f conftest.$ac_ext conftest.$ac_objext conftest.$ac_exeext
+EXEEXT=$ac_cv_exeext
+AC_SUBST(EXEEXT)
 ])# _AC_EXEEXT
 
 

--=-=-=--


From peter_e@gmx.net Wed Oct 11 13:03:52 2000
Received: from mailout02.sul.t-online.com ([194.25.134.17])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13jPIG-00056y-00
	for <autoconf@gnu.org>; Wed, 11 Oct 2000 13:03:52 -0400
Received: from fmrl01.sul.t-online.de 
	by mailout02.sul.t-online.com with smtp 
	id 13jPGr-0007w8-00; Wed, 11 Oct 2000 19:02:25 +0200
Received: from peter.localdomain (520083510237-0001@[212.185.245.80]) by fmrl01.sul.t-online.com
	with esmtp id 13jPGq-22ykDYC; Wed, 11 Oct 2000 19:02:24 +0200
Date: Wed, 11 Oct 2000 19:06:32 +0200 (CEST)
From: Peter Eisentraut <peter_e@gmx.net>
To: Akim Demaille <akim@epita.fr>
cc: Alexandre Oliva <oliva@lsd.ic.unicamp.br>, Morten Eriksen <mortene@sim.no>, 
    autoconf@gnu.org
Subject: Re: AC_PROG_CC not working
In-Reply-To: <mv4bswthsnn.fsf@nostromo.lrde.epita.fr>
Message-ID: <Pine.LNX.4.21.0010111904070.767-100000@peter.localdomain>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sender: 520083510237-0001@t-dialin.net
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Akim Demaille writes:

> So I am back to something I raised some time ago: why the heck do we
> have to compile to recognize Mingw etc.?  Can't we just uname?  While
> anti-Autoconf (and btw, frankly, compiling __MINGW32__ makes no big
> difference to me), it seems better in that, for instance, it makes it
> possible to enable the support of these kind of machines without
> requiring a C compiler.

ISTM that you don't need uname either.  Why not just compile some file and
check what you got, like non-Cygwin and non-MinGW32 do?  I mean if you do
cc conftest.c -o conftest, and afterwards there is no file "conftest", but
there is a file "conftest.exe" that wasn't there before, that should be
pretty conclusive, no?

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/



From mortene@sim.no Wed Oct 11 15:30:24 2000
Received: from trh.sim.no ([195.1.220.136] helo=sim.no)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13jRa4-0007cL-00
	for <autoconf@gnu.org>; Wed, 11 Oct 2000 15:30:24 -0400
Received: (qmail 25765 invoked by uid 1114); 11 Oct 2000 19:30:14 -0000
To: Peter Eisentraut <peter_e@gmx.net>
Cc: Akim Demaille <akim@epita.fr>, Alexandre Oliva <oliva@lsd.ic.unicamp.br>,
  autoconf@gnu.org
Subject: Re: AC_PROG_CC not working
References: <Pine.LNX.4.21.0010111904070.767-100000@peter.localdomain>
From: Morten Eriksen <mortene@sim.no>
Date: 11 Oct 2000 21:30:14 +0200
In-Reply-To: Peter Eisentraut's message of "Wed, 11 Oct 2000 19:06:32 +0200 (CEST)"
Message-ID: <51y9zv2n21.fsf@trh.sim.no>
Lines: 37
User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.3
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Peter Eisentraut <peter_e@gmx.net> writes:

> [...] I mean if you do cc conftest.c -o conftest, and afterwards
> there is no file "conftest", but there is a file "conftest.exe" that
> wasn't there before, that should be pretty conclusive, no?

Not really, no. For instance, Cygwin does this funny thing where they
map all files named ``something.exe'' to also match any inquires to a
file named ``something''.

So you could do:

  $ cat > conftest.c
  int main(void) { return 0; }
  ^D
  $ gcc -o conftest.exe conftest.c
  $ ls
  conftest.exe conftest.c
  $ ls conftest
  conftest
  $

And further:

  $ rm conftest.exe
  $ ls conftest*
  conftest.c
  $ gcc -o conftest conftest.c
  $ ls
  conftest.exe conftest.c
  $

(So, in the Cygwin case it doesn't really matter whether you set the
executable suffix to ".exe" or "", I guess.)

Regards,
Morten


From proski@gnu.org Wed Oct 11 15:36:41 2000
Received: from rokslava.transcept.com ([208.151.20.130])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13jRg9-0007iI-00
	for <autoconf@gnu.org>; Wed, 11 Oct 2000 15:36:41 -0400
Received: from sunapee.transcept.com by rokslava.transcept.com
          via smtpd (for fencepost.GNU.org [199.232.76.164]) with SMTP; 11 Oct 2000 19:11:39 UT
Received: from sunapee.transcept.com (sunapee.transcept.com [129.86.50.245])
	by sunapee.transcept.com (8.9.3/8.9.3) with ESMTP id PAA27547;
	Wed, 11 Oct 2000 15:36:16 -0400
Date: Wed, 11 Oct 2000 15:36:16 -0400 (EDT)
From: Pavel Roskin <proski@gnu.org>
X-Sender: proskin@sunapee.transcept.com
To: Morten Eriksen <mortene@sim.no>
cc: autoconf@gnu.org
Subject: Re: AC_PROG_CC not working
In-Reply-To: <51y9zv2n21.fsf@trh.sim.no>
Message-ID: <Pine.LNX.4.21.0010111533270.27544-100000@sunapee.transcept.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hello, Morten!

> Not really, no. For instance, Cygwin does this funny thing where they
> map all files named ``something.exe'' to also match any inquires to a
> file named ``something''.

Why do you want to set ac_exeext to ".exe" then? Why bother if Cygwin did
everything to hide this complexity from us?

Does this magic fail at some stage? When? Can you test specifically for
the problem instead of testing for magic?

Regards,
Pavel Roskin



From earnie_boyd@yahoo.com Wed Oct 11 15:53:21 2000
Received: from web110.yahoomail.com ([205.180.60.80])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13jRwD-00080W-00
	for <autoconf@gnu.org>; Wed, 11 Oct 2000 15:53:17 -0400
Received: (qmail 15885 invoked by uid 60001); 11 Oct 2000 19:53:07 -0000
Message-ID: <20001011195307.15884.qmail@web110.yahoomail.com>
Received: from [150.159.224.8] by web110.yahoomail.com; Wed, 11 Oct 2000 12:53:07 PDT
Date: Wed, 11 Oct 2000 12:53:07 -0700 (PDT)
From: Earnie Boyd <earnie_boyd@yahoo.com>
Subject: Re: AC_PROG_CC not working
To: Pavel Roskin <proski@gnu.org>, Morten Eriksen <mortene@sim.no>
Cc: autoconf@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

--- Pavel Roskin <proski@gnu.org> wrote:
> Hello, Morten!
> 
> > Not really, no. For instance, Cygwin does this funny thing where they
> > map all files named ``something.exe'' to also match any inquires to a
> > file named ``something''.
> 
> Why do you want to set ac_exeext to ".exe" then? Why bother if Cygwin did
> everything to hide this complexity from us?
> 
> Does this magic fail at some stage? When? Can you test specifically for
> the problem instead of testing for magic?
> 

Unfortunately, yes.  It fails with commands like cp, mv, etc.  Those commands
need the full name in order to function.

Cheers,

=====
Earnie Boyd
mailto:earnie_boyd@yahoo.com

---         <http://earniesystems.safeshopper.com>         ---
--- Cygwin: POSIX on Windows <http://gw32.freeyellow.com/> ---
---   Minimalist GNU for Windows <http://www.mingw.org/>   ---

__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/


From peter_e@gmx.net Wed Oct 11 16:10:07 2000
Received: from mailout06.sul.t-online.com ([194.25.134.19])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13jSCK-0008Bk-00
	for <autoconf@gnu.org>; Wed, 11 Oct 2000 16:09:56 -0400
Received: from fmrl00.sul.t-online.de 
	by mailout06.sul.t-online.com with smtp 
	id 13jSBT-0005fp-00; Wed, 11 Oct 2000 22:09:03 +0200
Received: from peter.localdomain (520083510237-0001@[212.185.245.80]) by fmrl00.sul.t-online.com
	with esmtp id 13jSBK-2CnHRwC; Wed, 11 Oct 2000 22:08:54 +0200
Date: Wed, 11 Oct 2000 22:13:03 +0200 (CEST)
From: Peter Eisentraut <peter_e@gmx.net>
To: Morten Eriksen <mortene@sim.no>
cc: Akim Demaille <akim@epita.fr>, Alexandre Oliva <oliva@lsd.ic.unicamp.br>, 
    autoconf@gnu.org
Subject: Re: AC_PROG_CC not working
In-Reply-To: <51y9zv2n21.fsf@trh.sim.no>
Message-ID: <Pine.LNX.4.21.0010112206540.767-100000@peter.localdomain>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sender: 520083510237-0001@t-dialin.net
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Morten Eriksen writes:

> (So, in the Cygwin case it doesn't really matter whether you set the
> executable suffix to ".exe" or "", I guess.)

This equivalency only affects stat() and the PATH search of the shell.  So
you can write makefiles like this:

fooprog: $(OBJS)
	$(CC) -o $@ $^

install: fooprog
	$(INSTALL) fooprog$(EXEEXT) $(bindir)

and they will work.  But it probably doesn't in general on other systems
that have executable extensions.  In fact, I'd have no idea how to act in
face of arbitrary $(EXEEXT) values.

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/



From proski@gnu.org Wed Oct 11 16:52:31 2000
Received: from rokslava.transcept.com ([208.151.20.130])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13jSrX-0000ni-00
	for <autoconf@gnu.org>; Wed, 11 Oct 2000 16:52:31 -0400
Received: from sunapee.transcept.com by rokslava.transcept.com
          via smtpd (for fencepost.GNU.org [199.232.76.164]) with SMTP; 11 Oct 2000 20:27:28 UT
Received: from sunapee.transcept.com (sunapee.transcept.com [129.86.50.245])
	by sunapee.transcept.com (8.9.3/8.9.3) with ESMTP id QAA07336;
	Wed, 11 Oct 2000 16:52:04 -0400
Date: Wed, 11 Oct 2000 16:52:04 -0400 (EDT)
From: Pavel Roskin <proski@gnu.org>
X-Sender: proskin@sunapee.transcept.com
To: Peter Eisentraut <peter_e@gmx.net>
cc: autoconf@gnu.org
Subject: Re: AC_PROG_CC not working
In-Reply-To: <Pine.LNX.4.21.0010101920040.759-100000@peter.localdomain>
Message-ID: <Pine.LNX.4.21.0010111633520.28480-100000@sunapee.transcept.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hello, Peter!

> One real example is PostgreSQL on AIX, where you need to use xlc instead
> of whatever else configure might think.  (AC_PROG_CC_STDC is less than
> ideal for related reasons.)  I still want to check for gcc first, though,
> so I'd use AC_PROG_CC([gcc xlc cc]).  Then we have older versions of
> BSD/OS, where you need to take "gcc2".  There are several more examples on
> the C++ side, e.g., aCC on HP-UX, xlC on AIX.
> 
> "Fix the list" is not a good answer, because you might break programs that
> actually needed some other (K&R?) compiler.
> 
> Of course the final solution is to implement support for C dialects, as I
> have mumbled several times before around these parts (and it even made it
> to the TODO list).  But this feature is a good stop-gap.

I agree with your arguments, except that I don't believe in the "final
solution" and I don't want to reduce the problem to C dialects.

There are more requirements to the compiler than just its ability to
support some language features. Other package-specific requirements may
include:

- Ability to produce dependencies
- Faster code
- Smaller code
- Ability to eliminate use of some CPU registers
- Ability to pass structures to the native libraries

It would be wrong to think that every system will have one "best" compiler
suitable for everything.

To sum up:
- the real live is more complicated that we think it is
- some kind of hints to Autoconf is needed
- what we have now is not ideal but should be kept

Regards,
Pavel Roskin



From proski@gnu.org Wed Oct 11 17:06:25 2000
Received: from rokslava.transcept.com ([208.151.20.130])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13jT4z-0000xN-00
	for <autoconf@gnu.org>; Wed, 11 Oct 2000 17:06:25 -0400
Received: from sunapee.transcept.com by rokslava.transcept.com
          via smtpd (for fencepost.GNU.org [199.232.76.164]) with SMTP; 11 Oct 2000 20:41:23 UT
Received: from sunapee.transcept.com (sunapee.transcept.com [129.86.50.245])
	by sunapee.transcept.com (8.9.3/8.9.3) with ESMTP id RAA10778;
	Wed, 11 Oct 2000 17:06:01 -0400
Date: Wed, 11 Oct 2000 17:06:01 -0400 (EDT)
From: Pavel Roskin <proski@gnu.org>
X-Sender: proskin@sunapee.transcept.com
To: Peter Eisentraut <peter_e@gmx.net>
cc: autoconf@gnu.org
Subject: Re: AC_PROG_CC not working
In-Reply-To: <Pine.LNX.4.21.0010112206540.767-100000@peter.localdomain>
Message-ID: <Pine.LNX.4.21.0010111656430.10162-100000@sunapee.transcept.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hello, Peter!

> This equivalency only affects stat() and the PATH search of the shell.  So
> you can write makefiles like this:
> 
> fooprog: $(OBJS)
> 	$(CC) -o $@ $^
> 
> install: fooprog
> 	$(INSTALL) fooprog$(EXEEXT) $(bindir)
> 
> and they will work.  But it probably doesn't in general on other systems
> that have executable extensions.  In fact, I'd have no idea how to act in
> face of arbitrary $(EXEEXT) values.

We (Autoconf) just need to supply the right EXEEXT. Dealing with it is a
problem of Automake and Make.

Since EXEEXT="" makes "cp" fail it's not a good choice. So instead of
doing "test contest -ef contest.exe" do "cp contest contest.ac_" and
reverse the logic (i.e. if "cp" fails we use ".exe")

Regards,
Pavel Roskin



From earnie_boyd@yahoo.com Wed Oct 11 17:53:50 2000
Received: from web110.yahoomail.com ([205.180.60.80])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13jTor-0001gd-00
	for <autoconf@gnu.org>; Wed, 11 Oct 2000 17:53:49 -0400
Received: (qmail 3688 invoked by uid 60001); 11 Oct 2000 21:53:48 -0000
Message-ID: <20001011215348.3687.qmail@web110.yahoomail.com>
Received: from [150.159.224.8] by web110.yahoomail.com; Wed, 11 Oct 2000 14:53:48 PDT
Date: Wed, 11 Oct 2000 14:53:48 -0700 (PDT)
From: Earnie Boyd <earnie_boyd@yahoo.com>
Subject: Re: AC_PROG_CC not working
To: Pavel Roskin <proski@gnu.org>, Peter Eisentraut <peter_e@gmx.net>
Cc: autoconf@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

--- Pavel Roskin <proski@gnu.org> wrote:
> 
> Since EXEEXT="" makes "cp" fail it's not a good choice. So instead of
> doing "test contest -ef contest.exe" do "cp contest contest.ac_" and
> reverse the logic (i.e. if "cp" fails we use ".exe")
> 

This sounds good, but you'd have to test for the existance of contest.exe in
case of the instance of some system producing something other than .exe as an
extention.

Cheers,

=====
Earnie Boyd
mailto:earnie_boyd@yahoo.com

---         <http://earniesystems.safeshopper.com>         ---
--- Cygwin: POSIX on Windows <http://gw32.freeyellow.com/> ---
---   Minimalist GNU for Windows <http://www.mingw.org/>   ---

__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/


From mortene@sim.no Thu Oct 12 07:53:11 2000
Received: from trh.sim.no ([195.1.220.136] helo=sim.no)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13jgv8-0006y6-00
	for <autoconf@gnu.org>; Thu, 12 Oct 2000 07:53:11 -0400
Received: (qmail 29289 invoked by uid 1114); 12 Oct 2000 11:53:03 -0000
To: Pavel Roskin <proski@gnu.org>
Cc: autoconf@gnu.org
Subject: Re: AC_PROG_CC not working
References: <Pine.LNX.4.21.0010111656430.10162-100000@sunapee.transcept.com>
From: Morten Eriksen <mortene@sim.no>
Date: 12 Oct 2000 13:53:03 +0200
In-Reply-To: Pavel Roskin's message of "Wed, 11 Oct 2000 17:06:01 -0400 (EDT)"
Message-ID: <51bswq8ee8.fsf@trh.sim.no>
Lines: 15
User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.3
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

* Pavel Roskin
| Since EXEEXT="" makes "cp" fail it's not a good choice. So instead
| of doing "test contest -ef contest.exe" do "cp contest contest.ac_"
| and reverse the logic (i.e. if "cp" fails we use ".exe")

Well, I don't think this is such a good idea. What if the Cygwin port
of ``cp'' is suddenly made to work correctly with that filesystem
voodoo Cygwin does, but other programs are still defunct?

Instead of chasing possible problems with Cygwin's little magic trick,
isn't it better to just try to detect it and circumvent it completely?
(As I try to do with the AC_EXEEXT patch.)

Regards,
Morten


From proski@gnu.org Thu Oct 12 11:17:01 2000
Received: from rokslava.transcept.com ([208.151.20.130])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13jk6P-0001Ec-00
	for <autoconf@gnu.org>; Thu, 12 Oct 2000 11:17:01 -0400
Received: from sunapee.transcept.com by rokslava.transcept.com
          via smtpd (for fencepost.gnu.org [199.232.76.164]) with SMTP; 12 Oct 2000 14:51:55 UT
Received: from sunapee.transcept.com (sunapee.transcept.com [129.86.50.245])
	by sunapee.transcept.com (8.9.3/8.9.3) with ESMTP id LAA11574;
	Thu, 12 Oct 2000 11:12:04 -0400
Date: Thu, 12 Oct 2000 11:12:04 -0400 (EDT)
From: Pavel Roskin <proski@gnu.org>
X-Sender: proskin@sunapee.transcept.com
To: Earnie Boyd <earnie_boyd@yahoo.com>
cc: Peter Eisentraut <peter_e@gmx.net>, autoconf@gnu.org
Subject: Re: AC_PROG_CC not working
In-Reply-To: <20001011215348.3687.qmail@web110.yahoomail.com>
Message-ID: <Pine.LNX.4.21.0010121109590.11571-100000@sunapee.transcept.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hello, Earnie!

On Wed, 11 Oct 2000, Earnie Boyd wrote:

> --- Pavel Roskin <proski@gnu.org> wrote:
> > 
> > Since EXEEXT="" makes "cp" fail it's not a good choice. So instead of
> > doing "test contest -ef contest.exe" do "cp contest contest.ac_" and
> > reverse the logic (i.e. if "cp" fails we use ".exe")
> > 
> 
> This sounds good, but you'd have to test for the existance of contest.exe in
> case of the instance of some system producing something other than .exe as an
> extention.

Yes, of course.
I always prefer to stay on the safe (and sane) side.

Regards,
Pavel Roskin



From gary@oranda.demon.co.uk Thu Oct 12 13:45:37 2000
Received: from anchor-post-32.mail.demon.net ([194.217.242.90])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13jmQD-0003UQ-00
	for <autoconf@gnu.org>; Thu, 12 Oct 2000 13:45:37 -0400
Received: from oranda.demon.co.uk ([194.222.82.6] helo=oranda.goldfish)
	by anchor-post-32.mail.demon.net with esmtp (Exim 2.12 #1)
	id 13jmQB-000AAa-0W; Thu, 12 Oct 2000 18:45:36 +0100
Received: from gary by oranda.goldfish with local (Exim 3.11 #1 (Debian))
	id 13jmOx-0005Kw-00; Thu, 12 Oct 2000 18:44:19 +0100
Date: Thu, 12 Oct 2000 18:44:19 +0100
From: "Gary V. Vaughan" <gvv@techie.com>
To: Akim Demaille <akim@epita.fr>
Cc: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>, autoconf@gnu.org
Subject: Re: AC_PROG_CC not working
Message-ID: <20001012184419.U863@demon.co.uk>
References: <Pine.SO4.4.05.10010100905030.1163-100000@scooby.simplesystems.org> <mv4itr0fykh.fsf@nostromo.lrde.epita.fr> <20001010205446.E863@demon.co.uk> <mv4n1gb3i9k.fsf@nostromo.lrde.epita.fr>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <mv4n1gb3i9k.fsf@nostromo.lrde.epita.fr>; from akim@epita.fr on Wed, Oct 11, 2000 at 10:16:07AM +0200
X-Operating-System: Linux oranda 2.2.13
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On Wed, Oct 11, 2000 at 10:16:07AM +0200, Akim Demaille wrote:
> >>>>> "Gary" == Gary V Vaughan <gvv@techie.com> writes:
> 
> Gary> Actually, cvs libtool is still much happier with autoconf-2.13
> Gary> than cvs autoconf =(O| I am hoping that a 2.50 compatible
> Gary> libtool-1.4 won't be too far behind the autoconf release...
> 
> What's wrong?  How does it happen?  What should I do to observe this?

Not sure precisely.  Morten Erikson <mortene@sim.no> has a patch in
the libtool queue to address some of the issues.  I have only the
latest stable releases of autoconf and automake installed to ensure
that CVS libtool works correctly with them.

Cheers,
	Gary.
-- 
  ___              _   ___   __              _         mailto: gvv@techie.com
 / __|__ _ _ ___ _| | / / | / /_ _ _  _ __ _| |_  __ _ ___       gary@gnu.org 
| (_ / _` | '_|// / |/ /| |/ / _` | || / _` | ' \/ _` | _ \
 \___\__,_|_|\_, /|___(_)___/\__,_|\_,_\__, |_||_\__,_|//_/
home page:  /___/                      /___/                  gpg public key:
http://www.oranda.demon.co.uk           http://www.oranda.demon.co.uk/key.asc


From proski@gnu.org Thu Oct 12 18:52:45 2000
Received: from rokslava.transcept.com ([208.151.20.130])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13jrDQ-0007tJ-00
	for <autoconf@gnu.org>; Thu, 12 Oct 2000 18:52:44 -0400
Received: from sunapee.transcept.com by rokslava.transcept.com
          via smtpd (for fencepost.gnu.org [199.232.76.164]) with SMTP; 12 Oct 2000 22:27:37 UT
Received: from sunapee.transcept.com (sunapee.transcept.com [129.86.50.245])
	by sunapee.transcept.com (8.9.3/8.9.3) with ESMTP id SAA15790
	for <autoconf@gnu.org>; Thu, 12 Oct 2000 18:52:21 -0400
Date: Thu, 12 Oct 2000 18:52:21 -0400 (EDT)
From: Pavel Roskin <proski@gnu.org>
X-Sender: proskin@sunapee.transcept.com
To: autoconf@gnu.org
Subject: Success (mostly) with the testsuite
Message-ID: <Pine.LNX.4.21.0010121838140.15774-100000@sunapee.transcept.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hello!

The following configurations have recently passed the testsuite:

Linux/PPC-1999, bash 2.03
Linux/PPC-1999, ash 0.2
Linux/PPC-1999, pdksh 5.2.13
Linux/PPC-1999, zsh 3.0.5
RedHat Linux 6.2, bash 1.14.7
Cygwin 1.1.4, /bin/sh
HP-UX 10.20, bash 2.04
HP-UX 10.20, /bin/sh
HP-UX 10.20, /bin/ksh

I think it would be nice if anybody with Solaris and *BSD could run the
testsuite as well.

There is one small glitch with HP-UX - the testsuite loops in the test for
AC_CHECK_SIZEOF if CC is set to /bin/cc (so called bundled cc).

However, that test sets cross_compiling=yes which is not something that
can ever happen in the real life with the bundled /bin/cc.

Also be prepared that 4 tests in update.m4 fail - it's a known problem.

Regards,
Pavel Roskin



From dmorgan@symark.com Thu Oct 12 19:01:59 2000
Received: from firewall.symark.westlake.iswest.net ([207.178.203.34] helo=gateway.symark.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13jrMN-0007zc-00; Thu, 12 Oct 2000 19:01:59 -0400
Received: (from mailer@localhost)
	by gateway.symark.com (8.9.3/8.9.3) id QAA21620;
	Thu, 12 Oct 2000 16:01:57 -0700
Received: from wombat.symark.com(128.1.1.33) by gateway.symark.com via smap (V2.1+anti-relay+anti-spam)
	id xma021613; Thu, 12 Oct 00 16:01:47 -0700
Message-ID: <39E643A5.9814E2B1@symark.com>
Date: Thu, 12 Oct 2000 16:05:09 -0700
From: David Morgan <dmorgan@symark.com>
Organization: Symark Software
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: Pavel Roskin <proski@gnu.org>
CC: autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010121838140.15774-100000@sunapee.transcept.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

What would you like done on what version of Autoconf and what version of Solaris 
and do you want the native compiler tested or will GCC be ok?

Let me know and I'll see what can be done.

Regards
 David

Pavel Roskin wrote:
> 
> Hello!
> 
> The following configurations have recently passed the testsuite:
> 
> Linux/PPC-1999, bash 2.03
> Linux/PPC-1999, ash 0.2
> Linux/PPC-1999, pdksh 5.2.13
> Linux/PPC-1999, zsh 3.0.5
> RedHat Linux 6.2, bash 1.14.7
> Cygwin 1.1.4, /bin/sh
> HP-UX 10.20, bash 2.04
> HP-UX 10.20, /bin/sh
> HP-UX 10.20, /bin/ksh
> 
> I think it would be nice if anybody with Solaris and *BSD could run the
> testsuite as well.
> 
> There is one small glitch with HP-UX - the testsuite loops in the test for
> AC_CHECK_SIZEOF if CC is set to /bin/cc (so called bundled cc).
> 
> However, that test sets cross_compiling=yes which is not something that
> can ever happen in the real life with the bundled /bin/cc.
> 
> Also be prepared that 4 tests in update.m4 fail - it's a known problem.
> 
> Regards,
> Pavel Roskin


From corsepiu@faw.uni-ulm.de Fri Oct 13 06:35:43 2000
Received: from www.faw.uni-ulm.de ([134.60.100.4])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13k2Bi-00056o-00
	for <autoconf@gnu.org>; Fri, 13 Oct 2000 06:35:42 -0400
Received: (qmail 5459 invoked from network); 13 Oct 2000 10:35:37 -0000
Received: from ultra2.faw.uni-ulm.de (HELO mailserv.faw.uni-ulm.de) (134.60.101.174)
  by www-intern.faw.uni-ulm.de with SMTP; 13 Oct 2000 10:35:37 -0000
Received: (qmail 14712 invoked by uid 0); 13 Oct 2000 10:35:37 -0000
Received: from dialin8.faw.uni-ulm.de (HELO faw.uni-ulm.de) (corsepiu@172.18.1.8)
  by mailserv.faw.uni-ulm.de with SMTP; 13 Oct 2000 10:35:37 -0000
Message-ID: <39E6E5C1.A87AB11E@faw.uni-ulm.de>
Date: Fri, 13 Oct 2000 12:36:49 +0200
From: Ralf Corsepius <corsepiu@faw.uni-ulm.de>
Reply-To: corsepiu@faw.uni-ulm.de
Organization: Ralf Corsepius
X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.16-SMP i686)
X-Accept-Language: German/Germany, de-DE, en
MIME-Version: 1.0
To: Pavel Roskin <proski@gnu.org>
CC: autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010121838140.15774-100000@sunapee.transcept.com>
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Pavel Roskin wrote:

> I think it would be nice if anybody with Solaris and *BSD could run the
> testsuite as well.
> 
The testsuite itself fails under SuSE Linux 7.0:

==============================================================
./debug-148.sh: Testing the autoupdating of AC_OUTPUT_COMMANDS
==============================================================
./update.m4:38: testing...
--- -   Fri Oct 13 12:33:45 2000
+++ stderr      Fri Oct 13 12:33:45 2000
@@ -1 +1,4 @@
+/usr/bin/m4: /tmp/auVO5YlH/input.m4: 48: Non-numeric argument to
built-in `Ðo@Ðo@øb'
+/usr/bin/m4: /tmp/auVO5YlH/input.m4: 48: Cannot open
[/tmp/auVO5YlH/disable.m4]: No such file or directory
+/usr/bin/m4: /tmp/auVO5YlH/input.m4: 48: Cannot open
[/tmp/auVO5YlH/unm4.m4]: No such file or directory
 autoupdate: `configure.in' is updated
make[2]: *** [check-local] Error 1
make[2]: Leaving directory
`/usr/local/src/packages/subversions/autoconf/tests'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory
`/usr/local/src/packages/subversions/autoconf/tests'
make: *** [check-recursive] Error 1

Ralf

-- 
Ralf Corsepius 
Forschungsinstitut fuer Anwendungsorientierte Wissensverarbeitung
(FAW)
Helmholtzstr. 16, 89081 Ulm, Germany     Tel: +49/731/501-8690
mailto:corsepiu@faw.uni-ulm.de           FAX: +49/731/501-999  
http://www.faw.uni-ulm.de


From akim@epita.fr Fri Oct 13 08:54:11 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13k4Li-0007Zh-00; Fri, 13 Oct 2000 08:54:10 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id OAA13411
	Fri, 13 Oct 2000 14:54:39 GMT
Received: from nis.lrde.epita.fr
	([10.223.13.52] helo=nostromo.lrde.epita.fr ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13k6N1-0003l8-00; Fri, 13 Oct 2000 15:03:39 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13k4U5-0005Fk-00; Fri, 13 Oct 2000 15:02:49 +0200
To: corsepiu@faw.uni-ulm.de
Cc: Pavel Roskin <proski@gnu.org>, autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010121838140.15774-100000@sunapee.transcept.com>
	<39E6E5C1.A87AB11E@faw.uni-ulm.de>
From: Akim Demaille <akim@epita.fr>
Date: 13 Oct 2000 15:02:49 +0200
In-Reply-To: Ralf Corsepius's message of "Fri, 13 Oct 2000 12:36:49 +0200"
Message-ID: <mv4y9zsopvq.fsf@nostromo.lrde.epita.fr>
Lines: 30
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by hermes.epita.fr id OAA13411
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

| Pavel Roskin wrote:
| > I think it would be nice if anybody with Solaris and *BSD could run t=
he
| > testsuite as well.
| >=20
| The testsuite itself fails under SuSE Linux 7.0:
|=20
| =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
| ./debug-148.sh: Testing the autoupdating of AC_OUTPUT_COMMANDS
| =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
| ./update.m4:38: testing...
| --- -   Fri Oct 13 12:33:45 2000
| +++ stderr      Fri Oct 13 12:33:45 2000
| @@ -1 +1,4 @@
| +/usr/bin/m4: /tmp/auVO5YlH/input.m4: 48: Non-numeric argument to
| built-in `=D0o@=D0o@=F8b'
| +/usr/bin/m4: /tmp/auVO5YlH/input.m4: 48: Cannot open
| [/tmp/auVO5YlH/disable.m4]: No such file or directory
| +/usr/bin/m4: /tmp/auVO5YlH/input.m4: 48: Cannot open
| [/tmp/auVO5YlH/unm4.m4]: No such file or directory
|  autoupdate: `configure.in' is updated
| make[2]: *** [check-local] Error 1
| make[2]: Leaving directory
| `/usr/local/src/packages/subversions/autoconf/tests'
| make[1]: *** [check-am] Error 2
| make[1]: Leaving directory
| `/usr/local/src/packages/subversions/autoconf/tests'
| make: *** [check-recursive] Error 1

This is one of the four known failures Pavel was referring to.


From proski@gnu.org Fri Oct 13 10:16:00 2000
Received: from rokslava.transcept.com ([208.151.20.130])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13k5cu-0000fh-00
	for <autoconf@gnu.org>; Fri, 13 Oct 2000 10:16:00 -0400
Received: from sunapee.transcept.com by rokslava.transcept.com
          via smtpd (for fencepost.gnu.org [199.232.76.164]) with SMTP; 13 Oct 2000 13:50:48 UT
Received: from sunapee.transcept.com (sunapee.transcept.com [129.86.50.245])
	by sunapee.transcept.com (8.9.3/8.9.3) with ESMTP id KAA00748;
	Fri, 13 Oct 2000 10:15:16 -0400
Date: Fri, 13 Oct 2000 10:15:16 -0400 (EDT)
From: Pavel Roskin <proski@gnu.org>
X-Sender: proskin@sunapee.transcept.com
To: David Morgan <dmorgan@symark.com>
cc: autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
In-Reply-To: <39E643A5.9814E2B1@symark.com>
Message-ID: <Pine.LNX.4.21.0010131008140.733-100000@sunapee.transcept.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hello, David!

> What would you like done on what version of Autoconf and what version of Solaris 
> and do you want the native compiler tested or will GCC be ok?
> 
> Let me know and I'll see what can be done.

Well, I just realized that even

make SHELL=/bin/ksh CONFIG_SHELL=/bin/ksh check

won't prevent "configure" from being run by /bin/sh. Only config.status
would be run by /bin/ksh. Time to retest everything :-(

So, for now please run the following:

make check
CC=cc make check

Ignore 4 errors in update.m4

I'm sure that the testsuite will be in a better shape very soon, but it's
very important to catch real errors on really used systems (i.e. with your
shell and your compiler) as soon as possible.

Regards,
Pavel Roskin



From daniele@ripe.net Fri Oct 13 10:56:04 2000
Received: from birch.ripe.net ([193.0.1.96])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13k6Ff-0001V6-00; Fri, 13 Oct 2000 10:56:03 -0400
Received: from office.ripe.net (office.ripe.net [193.0.1.97])
	by birch.ripe.net (8.8.8/8.8.8) with ESMTP id QAA14357;
	Fri, 13 Oct 2000 16:55:58 +0200 (CEST)
Date: Fri, 13 Oct 2000 16:55:57 +0200 (CEST)
From: Daniele Arena <daniele@ripe.net>
To: Pavel Roskin <proski@gnu.org>
cc: autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
In-Reply-To: <Pine.LNX.4.21.0010131008140.733-100000@sunapee.transcept.com>
Message-ID: <Pine.BSI.4.05L.10010131645330.18719-100000@office.ripe.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hello everybody,

I might be able to test autoconf on some platforms (BSDI, Solaris, Alpha,
AIX...), as long as it does not involve spending a night doing that, but I
think i missed some information:

- Which version of autoconf do you want to be tested? The version on
ftp://alpha.gnu.org/gnu/autoconf/, autoconf-2.49a, dates of August 11. Or
should I checkout the CVS tree somehow?

- What is the exact procedure for the test? Does it only involve compiling
autoconf for the platform and then doing the commands described below
(where I interpret "cc" as being the proprietary compiler for the specific
architecture)?

- Does a host need to respect any system characteristics (e.g. patches),
or what are the special characteristics you want to know for the host?

- Any supplementary information you might want to give.


I'm willing to be a testbench, but I would like my tests to be useful, so
these details would be most welcome.

Thanks!

Cheers,

Daniele.


On Fri, 13 Oct 2000, Pavel Roskin wrote:

> Hello, David!
> 
> > What would you like done on what version of Autoconf and what version of Solaris 
> > and do you want the native compiler tested or will GCC be ok?
> > 
> > Let me know and I'll see what can be done.
> 
> Well, I just realized that even
> 
> make SHELL=/bin/ksh CONFIG_SHELL=/bin/ksh check
> 
> won't prevent "configure" from being run by /bin/sh. Only config.status
> would be run by /bin/ksh. Time to retest everything :-(
> 
> So, for now please run the following:
> 
> make check
> CC=cc make check
> 
> Ignore 4 errors in update.m4
> 
> I'm sure that the testsuite will be in a better shape very soon, but it's
> very important to catch real errors on really used systems (i.e. with your
> shell and your compiler) as soon as possible.
> 
> Regards,
> Pavel Roskin
> 
> 
> 



From dmorgan@symark.com Fri Oct 13 12:13:49 2000
Received: from firewall.symark.westlake.iswest.net ([207.178.203.34] helo=gateway.symark.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13k7Sv-00038c-00; Fri, 13 Oct 2000 12:13:49 -0400
Received: (from mailer@localhost)
	by gateway.symark.com (8.9.3/8.9.3) id JAA29355;
	Fri, 13 Oct 2000 09:13:48 -0700
Received: from wombat.symark.com(128.1.1.33) by gateway.symark.com via smap (V2.1+anti-relay+anti-spam)
	id xma029350; Fri, 13 Oct 00 09:13:30 -0700
Message-ID: <39E73575.2EA4B1DD@symark.com>
Date: Fri, 13 Oct 2000 09:16:53 -0700
From: David Morgan <dmorgan@symark.com>
Organization: Symark Software
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: Pavel Roskin <proski@gnu.org>
CC: autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010131008140.733-100000@sunapee.transcept.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hi Pavel,

Initial testing is NOT going well.

On the Solaris 8 box that I am testing on the make check failed with a missing
automake and a missing makeinfo.  I installed automake 1.4 and a dummy makeinfo.

I have a:

tools.m4:164 ignored near `tools.m4:183'

I'm not sure what to do with the ignored as I got some on my Linux box as well.

I also tried on a QNX box (our torture test box for building our products)

The configure script bombs out while creating config.status with a message
 sed: 2:
         /^X\(.*^/\)\/\/*^ ...": RE error: parentheses not balanced

So it looks like we need some work on the RE's for a bad sed :(

What else would you like to know - we don't have the native cc in house
just the brain dead /usr/ucb one.

I also have other boxes if need be.

Regards
 David

Pavel Roskin wrote:
> 
> Hello, David!
> 
> > What would you like done on what version of Autoconf and what version of Solaris
> > and do you want the native compiler tested or will GCC be ok?
> >
> > Let me know and I'll see what can be done.
> 
> Well, I just realized that even
> 
> make SHELL=/bin/ksh CONFIG_SHELL=/bin/ksh check
> 
> won't prevent "configure" from being run by /bin/sh. Only config.status
> would be run by /bin/ksh. Time to retest everything :-(
> 
> So, for now please run the following:
> 
> make check
> CC=cc make check
> 
> Ignore 4 errors in update.m4
> 
> I'm sure that the testsuite will be in a better shape very soon, but it's
> very important to catch real errors on really used systems (i.e. with your
> shell and your compiler) as soon as possible.
> 
> Regards,
> Pavel Roskin


From akim@epita.fr Fri Oct 13 12:54:52 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13k86e-0003um-00; Fri, 13 Oct 2000 12:54:52 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id SAA05101
	Fri, 13 Oct 2000 18:55:32 GMT
Received: from nis.lrde.epita.fr
	([10.223.13.52] helo=nostromo.lrde.epita.fr ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13kA8A-0004XO-00; Fri, 13 Oct 2000 19:04:34 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13k8F6-0006tk-00; Fri, 13 Oct 2000 19:03:36 +0200
To: Daniele Arena <daniele@ripe.net>
Cc: Pavel Roskin <proski@gnu.org>, autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
References: <Pine.BSI.4.05L.10010131645330.18719-100000@office.ripe.net>
From: Akim Demaille <akim@epita.fr>
Date: 13 Oct 2000 19:03:36 +0200
In-Reply-To: Daniele Arena's message of "Fri, 13 Oct 2000 16:55:57 +0200 (CEST)"
Message-ID: <mv4zok8n05z.fsf@nostromo.lrde.epita.fr>
Lines: 30
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "Daniele" == Daniele Arena <daniele@ripe.net> writes:

Daniele> - Which version of autoconf do you want to be tested? The
Daniele> version on ftp://alpha.gnu.org/gnu/autoconf/, autoconf-2.49a,
Daniele> dates of August 11. Or should I checkout the CVS tree
Daniele> somehow?

Thanks for the proposal!

If you have some spare time, then testing the CVS version is good.
But if you have little time, please keep it for the next tarball we
will put on alpha.

Daniele> - What is the exact procedure for the test? Does it only
Daniele> involve compiling autoconf for the platform and then doing
Daniele> the commands described below (where I interpret "cc" as being
Daniele> the proprietary compiler for the specific architecture)?

Just configure, make, make check.  What we need is the log of make
check when it fails.  As Pavel said, there are four tests which are
known to fail, disregard them.

Daniele> - Does a host need to respect any system characteristics
Daniele> (e.g. patches), or what are the special characteristics you
Daniele> want to know for the host?

A priori the log will tell us everything we need to know, but don't
worry: we'll write to you if needed :)

        Akim


From akim@epita.fr Fri Oct 13 13:00:28 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13k8C4-00042K-00; Fri, 13 Oct 2000 13:00:28 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id SAA05779
	Fri, 13 Oct 2000 18:57:40 GMT
Received: from nis.lrde.epita.fr
	([10.223.13.52] helo=nostromo.lrde.epita.fr ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13kAAE-0004Yl-00; Fri, 13 Oct 2000 19:06:42 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13k8HA-0006u4-00; Fri, 13 Oct 2000 19:05:44 +0200
To: David Morgan <dmorgan@symark.com>
Cc: Pavel Roskin <proski@gnu.org>, autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010131008140.733-100000@sunapee.transcept.com>
	<39E73575.2EA4B1DD@symark.com>
From: Akim Demaille <akim@epita.fr>
Date: 13 Oct 2000 19:05:44 +0200
In-Reply-To: David Morgan's message of "Fri, 13 Oct 2000 09:16:53 -0700"
Message-ID: <mv4u2agn02f.fsf@nostromo.lrde.epita.fr>
Lines: 24
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

| tools.m4:164 ignored near `tools.m4:183'
| 
| I'm not sure what to do with the ignored as I got some on my Linux box as well.

No problems.


| I also tried on a QNX box (our torture test box for building our products)
| 
| The configure script bombs out while creating config.status with a message
|  sed: 2:
|          /^X\(.*^/\)\/\/*^ ...": RE error: parentheses not balanced
| 
| So it looks like we need some work on the RE's for a bad sed :(

Big problem.  

Could you try to ``define'' exactly the nature of the problem (i.e.,
find a small command line that demonstrates the problem).

Thanks!

        Akim


From dmorgan@symark.com Fri Oct 13 13:54:21 2000
Received: from firewall.symark.westlake.iswest.net ([207.178.203.34] helo=gateway.symark.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13k92D-00053n-00; Fri, 13 Oct 2000 13:54:21 -0400
Received: (from mailer@localhost)
	by gateway.symark.com (8.9.3/8.9.3) id KAA01787;
	Fri, 13 Oct 2000 10:54:20 -0700
Received: from wombat.symark.com(128.1.1.33) by gateway.symark.com via smap (V2.1+anti-relay+anti-spam)
	id xma001778; Fri, 13 Oct 00 10:54:16 -0700
Message-ID: <39E74D12.95849D58@symark.com>
Date: Fri, 13 Oct 2000 10:57:38 -0700
From: David Morgan <dmorgan@symark.com>
Organization: Symark Software
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: Akim Demaille <akim@epita.fr>
CC: Pavel Roskin <proski@gnu.org>, autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010131008140.733-100000@sunapee.transcept.com>
		<39E73575.2EA4B1DD@symark.com> <mv4u2agn02f.fsf@nostromo.lrde.epita.fr>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/


Akim Demaille wrote:
> 
> | tools.m4:164 ignored near `tools.m4:183'
> |
> | I'm not sure what to do with the ignored as I got some on my Linux box as well.
> 
> No problems.
> 
> | I also tried on a QNX box (our torture test box for building our products)
> |
> | The configure script bombs out while creating config.status with a message
> |  sed: 2:
> |          /^X\(.*^/\)\/\/*^ ...": RE error: parentheses not balanced
> |
> | So it looks like we need some work on the RE's for a bad sed :(
> 
> Big problem.
> 
> Could you try to ``define'' exactly the nature of the problem (i.e.,
> find a small command line that demonstrates the problem).
> 
Ok based on some simple tests so far the first failure is:

ac_file=tests/atconfig
echo "X"$ac_file"" | sed '
    /^X\(.*^/\)\/\/*^/^/*\/*$/{ s//\1/p; q; }'

I ran some more tests and have

echo "X"$ac_file"" | sed '/^X\(.*\)/{ s//\1/p; q; }'

working (returns tests/atconfig)

echo "X"$ac_file"" | sed '/^X\(.*^/\)/{ s//\1/p; q; }'

Fails reporting RE error: parentheses not balanced

This is getting beyond my experience of sed.

The man page for the sed I am using can be found at:
http://qdn.qnx.com/support/docs/qnx4/utils/s/sed.html

If there is more I can do let me know.

Regards
 David


From oliva@lsd.ic.unicamp.br Fri Oct 13 14:46:20 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13k9qU-0006Bl-00; Fri, 13 Oct 2000 14:46:19 -0400
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id e9DIkDk06527;
	Fri, 13 Oct 2000 16:46:13 -0200
To: Pavel Roskin <proski@gnu.org>
Cc: autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010121838140.15774-100000@sunapee.transcept.com>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 13 Oct 2000 16:46:13 -0200
In-Reply-To: Pavel Roskin's message of "Thu, 12 Oct 2000 18:52:21 -0400 (EDT)"
Message-ID: <orwvfch956.fsf@guarana.lsd.ic.unicamp.br>
Lines: 15
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On Oct 12, 2000, Pavel Roskin <proski@gnu.org> wrote:

> However, that test sets cross_compiling=yes which is not something that
> can ever happen in the real life with the bundled /bin/cc.

But there's still some problem there, and the reason the testsuite
sets this variable is precisely to detect this kind of problem.

Might I ask you to please investigate why it gets in an infinite loop?

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From mlong@infoave.net Sat Oct 14 18:17:25 2000
Received: from chatserv.infoave.net ([165.166.177.10] helo=chat.infoave.net)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13kZcL-0005JJ-00
	for <autoconf@gnu.org>; Sat, 14 Oct 2000 18:17:25 -0400
Received: from 192.168.1.103 (cm171523.cme.rhtc.net [204.116.5.5])
	by chat.infoave.net (8.10.0/8.10.0) with ESMTP id e9EMHNa25097
	for <autoconf@gnu.org>; Sat, 14 Oct 2000 18:17:23 -0400 (EDT)
Date: Sat, 14 Oct 2000 18:15:16 -0400
From: Michael Long <mlong@infoave.net>
To: autoconf@gnu.org
Subject: autoconf problem
Message-ID: <884707964.971547316@[192.168.1.103]>
X-Mailer: Mulberry/2.0.0 (Win32)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hi,

I spent about 2 hours trying to get autoconf to make until I realized it 
picked up "/bin/m4" (my system's) instead of "/usr/local/bin/m4" (gnu's)

I'm not sure exactly the best way to handle this, but some suggestions:
1. check /usr/local/bin before you check any other paths...this way, if 
they have a built-in m4, you should pick up the gnu version first
2. do "m4 --version" and if you don't see "GNU" in the string, then fail


Michael Long
Senior Systems Analyst
Info Avenue Internet Services, LLC


From daniele@ripe.net Sun Oct 15 06:30:31 2000
Received: from birch.ripe.net ([193.0.1.96])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13kl3m-00042y-00; Sun, 15 Oct 2000 06:30:30 -0400
Received: from office.ripe.net (office.ripe.net [193.0.1.97])
	by birch.ripe.net (8.8.8/8.8.8) with ESMTP id MAA18021;
	Sun, 15 Oct 2000 12:29:50 +0200 (CEST)
Date: Sun, 15 Oct 2000 12:29:50 +0200 (CEST)
From: Daniele Arena <daniele@ripe.net>
To: Akim Demaille <akim@epita.fr>
cc: Pavel Roskin <proski@gnu.org>, autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
In-Reply-To: <mv4zok8n05z.fsf@nostromo.lrde.epita.fr>
Message-ID: <Pine.BSI.4.05L.10010151228220.1373-100000@office.ripe.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On 13 Oct 2000, Akim Demaille wrote:

> If you have some spare time, then testing the CVS version is good.
> But if you have little time, please keep it for the next tarball we
> will put on alpha.

When do you plan to publish the new tarball?

Cheers,

Daniele.



From akim@epita.fr Mon Oct 16 03:49:40 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13l51f-0001u5-00
	for <autoconf@gnu.org>; Mon, 16 Oct 2000 03:49:39 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id JAA09793
	Mon, 16 Oct 2000 09:50:32 GMT
Received: from nis.lrde.epita.fr
	([10.223.13.52] helo=nostromo.lrde.epita.fr ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13l73q-0000kC-00; Mon, 16 Oct 2000 10:00:02 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13l58s-0004ho-00; Mon, 16 Oct 2000 09:57:06 +0200
To: Michael Long <mlong@infoave.net>
Cc: autoconf@gnu.org
Subject: Re: autoconf problem
References: <884707964.971547316@[192.168.1.103]>
From: Akim Demaille <akim@epita.fr>
Date: 16 Oct 2000 09:57:06 +0200
In-Reply-To: Michael Long's message of "Sat, 14 Oct 2000 18:15:16 -0400"
Message-ID: <mv4pul1kylp.fsf@nostromo.lrde.epita.fr>
Lines: 23
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "Michael" == Michael Long <mlong@infoave.net> writes:

Michael> Hi, I spent about 2 hours trying to get autoconf to make
Michael> until I realized it picked up "/bin/m4" (my system's) instead
Michael> of "/usr/local/bin/m4" (gnu's)

Michael> I'm not sure exactly the best way to handle this, but some
Michael> suggestions: 1. check /usr/local/bin before you check any
Michael> other paths...this way, if they have a built-in m4, you
Michael> should pick up the gnu version first

Michael> 2. do "m4 --version" and if you don't see "GNU" in the
Michael> string, then fail

Hi,

Thanks for the report.  I confess I'm a bit surprise: autoconf does
check that it is using GNU M4 (both 2.13, the latest release, and the
version in development).

Could you be more specific: what version of autoconf are you running,
what gives `` sh -x `which autoconf` '' etc.  Anything that could
actually help us understand what happens.


From akim@epita.fr Mon Oct 16 03:50:34 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13l52X-0001w0-00; Mon, 16 Oct 2000 03:50:34 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id JAA09830
	Mon, 16 Oct 2000 09:51:22 GMT
Received: from nis.lrde.epita.fr
	([10.223.13.52] helo=nostromo.lrde.epita.fr ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13l74e-0000kp-00; Mon, 16 Oct 2000 10:00:52 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13l59g-0004hz-00; Mon, 16 Oct 2000 09:57:56 +0200
To: Daniele Arena <daniele@ripe.net>
Cc: Pavel Roskin <proski@gnu.org>, autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
References: <Pine.BSI.4.05L.10010151228220.1373-100000@office.ripe.net>
From: Akim Demaille <akim@epita.fr>
Date: 16 Oct 2000 09:57:56 +0200
In-Reply-To: Daniele Arena's message of "Sun, 15 Oct 2000 12:29:50 +0200 (CEST)"
Message-ID: <mv4lmvpkykb.fsf@nostromo.lrde.epita.fr>
Lines: 5
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "Daniele" == Daniele Arena <daniele@ripe.net> writes:

Daniele> When do you plan to publish the new tarball?

This week IMHO (In My Hopeful Opinion).


From patricg@fyspc-rp18.uio.no Mon Oct 16 09:59:35 2000
Received: from mons.uio.no ([129.240.130.14])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13lAne-0003Lm-00; Mon, 16 Oct 2000 09:59:34 -0400
Received: from fyspc-rp18.uio.no ([129.240.87.18])
	by mons.uio.no with esmtp (Exim 2.12 #7)
	id 13lAnb-000081-00; Mon, 16 Oct 2000 15:59:31 +0200
Received: from patricg (helo=localhost)
	by fyspc-rp18.uio.no with local-esmtp (Exim 2.12 #1)
	id 13lAnb-0000q6-00; Mon, 16 Oct 2000 15:59:31 +0200
Date: Mon, 16 Oct 2000 15:59:31 +0200 (CEST)
From: Patrick Guio <patrick.guio@fys.uio.no>
X-Sender: patricg@fyspc-rp18.uio.no
To: automake@gnu.org, autoconf@gnu.org, libtool@gnu.org
Subject: CLEANFILES?
Message-ID: <Pine.LNX.4.21.0010161554240.3226-100000@fyspc-rp18.uio.no>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Dear all
I try to use the configure tool to build my c++ code. When compiling with
a DEC/Digital Unix cxx compiler, templates are instantiated in a directory
called ~/cxx_repository (i.e. *.o files are created in this directory or
one defined by using the argument -ptr <repository_name>.
How do I specify that when cleanin, this (these) directory (ies) should be
removed or at least cleaned for *.o files?

Sincerely

Patrick Guio

======================================================================
				  Patrick Guio
		    Institute of Physics, University of Oslo
		      P.O. box 1048, Blindern, N-0316 Oslo
	       Tel : (+47) 22 84 40 60 - Fax : (+47) 22 85 56 71
			E-mail : patrick.guio@fys.uio.no 
			  URL : http://www.fys.uio.no



From assar@assaris.sics.se Mon Oct 16 18:54:44 2000
Received: from assaris.sics.se ([193.10.66.234])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13lJ9Y-0004DS-00
	for <autoconf@gnu.org>; Mon, 16 Oct 2000 18:54:44 -0400
Received: (from assar@localhost)
	by assaris.sics.se (8.9.3/8.9.3) id AAA03318;
	Tue, 17 Oct 2000 00:55:06 +0200 (CEST)
	(envelope-from assar)
To: autoconf@gnu.org
Subject: position of setting locale-related variables in acgeneral.m4?
From: Assar Westerlund <assar@sics.se>
Date: 17 Oct 2000 00:55:05 +0200
Message-ID: <5l3dhwbdme.fsf@assaris.sics.se>
Lines: 46
User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.6
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hi, autoconfers

I've gotten a report from a user with having locale-related problems
running the configure script that I supply.  In other words, it works
fine when running with LC_ALL=C but not in some other locales.  What's
failing is:

    expr "x$ac_package" : ".*[^-a-zA-Z0-9_]" >/dev/null &&
      { echo "configure: error: invalid package name: $ac_package" >&2; exit 1; }

Dunno why that would fail in some non-C locale, but the safest thing
seems to be to always run in a predictable locale and configure does
that but further down from the argument parsing.  I've tried the
following simple patch and it seems to work with simple tests.
Comments?

/assar

2000-10-17  Assar Westerlund  <assar@sics.se>

	* acgeneral.m4: move _AC_INIT_PREPARE_ENVIRONMENT earlier so that
	we keep the same known environment for more of the script

Index: acgeneral.m4
===================================================================
RCS file: /cvs/autoconf/acgeneral.m4,v
retrieving revision 1.573
diff -u -w -u -w -r1.573 acgeneral.m4
--- acgeneral.m4	2000/10/16 18:40:19	1.573
+++ acgeneral.m4	2000/10/16 22:53:39
@@ -1274,6 +1274,7 @@
 # Values which defaults can be set from `configure.in'.
 define([_AC_INIT_DEFAULTS],
 [AC_DIVERT_PUSH([DEFAULTS])dnl
+_AC_INIT_PREPARE_ENVIRONMENT
 
 #
 # Initializations.
@@ -2006,7 +2007,6 @@
 # 5. Required macros (cache, default AC_SUBST etc.)
 define([_AC_INIT_PREPARE],
 [AC_DIVERT_PUSH([INIT_PREPARE])dnl
-_AC_INIT_PREPARE_ENVIRONMENT
 
 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
 


From akim@epita.fr Tue Oct 17 04:34:34 2000
Received: from [194.98.116.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13lSCg-0002Na-00
	for <autoconf@gnu.org>; Tue, 17 Oct 2000 04:34:34 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id KAA27834
	Tue, 17 Oct 2000 10:34:33 GMT
Received: from nis.lrde.epita.fr
	([10.223.13.52] helo=nostromo.lrde.epita.fr ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13lUEA-0004do-00; Tue, 17 Oct 2000 10:44:14 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13lSIS-00032J-00; Tue, 17 Oct 2000 10:40:32 +0200
To: Assar Westerlund <assar@sics.se>
Cc: autoconf@gnu.org
Subject: Re: position of setting locale-related variables in acgeneral.m4?
References: <5l3dhwbdme.fsf@assaris.sics.se>
From: Akim Demaille <akim@epita.fr>
Date: 17 Oct 2000 10:40:32 +0200
In-Reply-To: Assar Westerlund's message of "17 Oct 2000 00:55:05 +0200"
Message-ID: <mv4pukz7tdr.fsf@nostromo.lrde.epita.fr>
Lines: 62
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by hermes.epita.fr id KAA27834
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

| Hi, autoconfers

Hi!

| I've gotten a report from a user with having locale-related problems
| running the configure script that I supply.  In other words, it works
| fine when running with LC_ALL=3DC but not in some other locales.  What'=
s
| failing is:
|=20
|     expr "x$ac_package" : ".*[^-a-zA-Z0-9_]" >/dev/null &&
|       { echo "configure: error: invalid package name: $ac_package" >&2;=
 exit 1; }
|=20
| Dunno why that would fail in some non-C locale, but the safest thing
| seems to be to always run in a predictable locale and configure does
| that but further down from the argument parsing.  I've tried the
| following simple patch and it seems to work with simple tests.
| Comments?

I'm OK with the patch (but the ChangeLog should be more precise,
stating from where to where you moved the macro invocation, but that's
OK, I'll handle this).

The failure is extremely famous, and there is an incredible amount of
news in gnu.bug.utils about this but in the context of grep.  It is
simply that some locales have more letters in between a and b.  For
instance in French:

/tmp % cat >foo                                                  nostromo=
 10:36
a
=E0=20
A
b
B
/tmp % LC_ALL=3Dfr_FR sort <foo                                    nostro=
mo 10:37
a
A
=E0
b
B
/tmp % LC_ALL=3Dfr_FR grep '[a-b]' foo                             nostro=
mo 10:37
a
=E0
A
b
/tmp % LC_ALL=3DC sort <foo                                        nostro=
mo 10:38
A
B
a
b
=E0
/tmp % LC_ALL=3DC grep '[a-b]' foo                                 nostro=
mo 10:38
a
b

Nevertheless I am surprised that the above test failed.  I'd like to
know how it fails, and what was the --with option he used.

Note that configure is indeed guilty here, the system is right.
Autoconf should not depend upon character intervals, rather it should
list them all.  But that can be delayed to another patch, this one is
fine.


From mortene@sim.no Tue Oct 17 10:30:19 2000
Received: from trh.sim.no ([195.1.220.136] helo=sim.no)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13lXkx-00027B-00
	for <autoconf@gnu.org>; Tue, 17 Oct 2000 10:30:19 -0400
Received: (qmail 20476 invoked by uid 1114); 17 Oct 2000 14:30:16 -0000
To: autoconf@gnu.org
Subject: Bug: explicitly setting CC made defunct
From: Morten Eriksen <mortene@sim.no>
Date: 17 Oct 2000 16:30:15 +0200
Message-ID: <51r95f7d6w.fsf@trh.sim.no>
Lines: 26
User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.3
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hi,

a bug has been introduced by one of the commits from the last day or
so. Upon this configure.in file

  AC_INIT(configure.in)
  AC_PROG_CC

autoconf (fresh from the head CVS) generates a configure script which
produces this output when run as "./configure CC=foobar"

  checking for gcc... no
  checking for cc... no
  checking for cc... no
  checking for cl... cl
  checking whether the C compiler works... yes
  checking whether we are cross compiling... no
  checking whether we are using the GNU C compiler... no
  checking whether cl accepts -g... no
  checking for object suffix... obj
  checking for executable suffix... .exe

As you can see, the CC-variable is not heeded. Ouch.

Regards,
Morten


From akim@epita.fr Tue Oct 17 11:36:48 2000
Received: from [194.98.116.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13lYnI-00037m-00
	for <autoconf@gnu.org>; Tue, 17 Oct 2000 11:36:48 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id RAA15748
	Tue, 17 Oct 2000 17:37:39 GMT
Received: from nis.lrde.epita.fr
	([10.223.13.52] helo=nostromo.lrde.epita.fr ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13lapf-0005xX-00; Tue, 17 Oct 2000 17:47:23 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13lYtk-0005KU-00; Tue, 17 Oct 2000 17:43:28 +0200
To: Morten Eriksen <mortene@sim.no>
Cc: autoconf@gnu.org
Subject: Re: Bug: explicitly setting CC made defunct
References: <51r95f7d6w.fsf@trh.sim.no>
From: Akim Demaille <akim@epita.fr>
Date: 17 Oct 2000 17:43:28 +0200
In-Reply-To: Morten Eriksen's message of "17 Oct 2000 16:30:15 +0200"
Message-ID: <mv4hf6b5v8f.fsf@nostromo.lrde.epita.fr>
Lines: 9
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "Morten" == Morten Eriksen <mortene@sim.no> writes:

Morten> Hi, a bug has been introduced by one of the commits from the
Morten> last day or so. Upon this configure.in file

Morten>   AC_INIT(configure.in) AC_PROG_CC

Thanks, I'm sure I'm responsible for this.  Most certainly my recent
changes involving AC_CHECK_TOOLS.  I'm on it.


From mortene@sim.no Tue Oct 17 11:50:13 2000
Received: from trh.sim.no ([195.1.220.136] helo=sim.no)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13lZ0H-0003KO-00
	for <autoconf@gnu.org>; Tue, 17 Oct 2000 11:50:13 -0400
Received: (qmail 20985 invoked by uid 1114); 17 Oct 2000 15:50:08 -0000
To: Akim Demaille <akim@epita.fr>
Cc: autoconf@gnu.org
Subject: Re: Bug: explicitly setting CC made defunct
References: <51r95f7d6w.fsf@trh.sim.no> <mv4hf6b5v8f.fsf@nostromo.lrde.epita.fr>
From: Morten Eriksen <mortene@sim.no>
Date: 17 Oct 2000 17:50:08 +0200
In-Reply-To: Akim Demaille's message of "17 Oct 2000 17:43:28 +0200"
Message-ID: <51g0lv79hr.fsf@trh.sim.no>
Lines: 8
User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.3
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Akim Demaille <akim@epita.fr> writes:

> Thanks, I'm sure I'm responsible for this.  Most certainly my recent
> changes involving AC_CHECK_TOOLS.  I'm on it.

Don't bother, I nailed it down. Patch coming up.

Morten


From mortene@sim.no Tue Oct 17 12:02:54 2000
Received: from trh.sim.no ([195.1.220.136] helo=sim.no)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13lZCY-0003Ur-00
	for <autoconf@gnu.org>; Tue, 17 Oct 2000 12:02:54 -0400
Received: (qmail 21112 invoked by uid 1114); 17 Oct 2000 16:02:50 -0000
To: Akim Demaille <akim@epita.fr>
Cc: autoconf@gnu.org
Subject: Re: Bug: explicitly setting CC made defunct
References: <51r95f7d6w.fsf@trh.sim.no> <mv4hf6b5v8f.fsf@nostromo.lrde.epita.fr>
From: Morten Eriksen <mortene@sim.no>
Date: 17 Oct 2000 18:02:50 +0200
In-Reply-To: Akim Demaille's message of "17 Oct 2000 17:43:28 +0200"
Message-ID: <51aec378wl.fsf@trh.sim.no>
Lines: 65
User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.3
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Akim Demaille <akim@epita.fr> writes:

> >>>>> "Morten" == Morten Eriksen <mortene@sim.no> writes:
> 
> Morten> Hi, a bug has been introduced by one of the commits from the
> Morten> last day or so. Upon this configure.in file
> 
> Morten>   AC_INIT(configure.in) AC_PROG_CC
> 
> Thanks, I'm sure I'm responsible for this.  Most certainly my recent
> changes involving AC_CHECK_TOOLS.  I'm on it.

Ok, here's the fix:

Index: acgeneral.m4
===================================================================
RCS file: /cvs/autoconf/acgeneral.m4,v
retrieving revision 1.578
diff -u -r1.578 acgeneral.m4
--- acgeneral.m4	2000/10/17 12:48:51	1.578
+++ acgeneral.m4	2000/10/17 15:49:47
@@ -3197,6 +3197,7 @@
   AC_CHECK_PROG([$1], [${ac_tool_prefix}$2], [${ac_tool_prefix}$2], , [$4])
 fi
 if test -z "$ac_cv_prog_$1"; then
+  ac_ct_$1=$$1
   AC_CHECK_PROG([ac_ct_$1], [$2], [$2], [$3], [$4])
   $1="$ac_ct_$1"
 fi
@@ -3220,7 +3221,9 @@
   done
 fi
 if test -z "$$1"; then
-  AC_CHECK_PROGS([$1], [$2], [$3], [$4])
+  ac_ct_$1=$$1
+  AC_CHECK_PROGS([ac_ct_$1], [$2], [$3], [$4])
+  $1="ac_ct_$1"
 fi
 ])# AC_CHECK_TOOLS
 

The bug was actually old, but was never uncovered due to the fact that
the AC_CHECK_PROG within the first if-block was always executed, even
if $ac_tool_prefix was blank. This was correctly fixed by you in your
patch, but you overlooked the bug which then got uncovered.  :^/

Note that the patch also contains the same fix for AC_CHECK_TOOLS
aswell.

Here's the changelog entry:

2000-10-17  Morten Eriksen <mortene@sim.no>

	* acgeneral.m4 (AC_CHECK_TOOL[S]?): As AC_CHECK_PROG[S]? first
	tests the value of the VARIABLE argument when looking for
	executables in the PATH, we need to set it to the correct
	value from AC_CHECK_TOOL[S]? when not just passing on the
	incoming VARIABLE directly.

(What happened with the CC=foobar case was that AC_CHECK_TOOL(CC, gcc)
called AC_CHECK_PROG(ac_ct_CC, gcc). But ac_ct_CC didn't contain the
value of CC, of course.)

Regards,
Morten


From akim@epita.fr Tue Oct 17 12:04:53 2000
Received: from [194.98.116.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13lZES-0003WP-00
	for <autoconf@gnu.org>; Tue, 17 Oct 2000 12:04:52 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id SAA20477
	Tue, 17 Oct 2000 18:05:41 GMT
Received: from nis.lrde.epita.fr
	([10.223.13.52] helo=nostromo.lrde.epita.fr ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13lbGn-00065b-00; Tue, 17 Oct 2000 18:15:25 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13lZKr-0007W5-00; Tue, 17 Oct 2000 18:11:29 +0200
To: Morten Eriksen <mortene@sim.no>
Cc: autoconf@gnu.org
Subject: Re: Bug: explicitly setting CC made defunct
References: <51r95f7d6w.fsf@trh.sim.no>
From: Akim Demaille <akim@epita.fr>
Date: 17 Oct 2000 18:11:29 +0200
In-Reply-To: Morten Eriksen's message of "17 Oct 2000 16:30:15 +0200"
Message-ID: <mv4d7gz5txq.fsf@nostromo.lrde.epita.fr>
Lines: 105
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

I'm sorry for having introduced this bug :(

These macros badly need to be rewritten, but that's for another
Autoconf that 2.50.

Here is what I'm applying:

Index: ChangeLog
from  Akim Demaille  <akim@epita.fr>

	* acgeneral.m4 (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS):
	Because when not cross-compiling these macros use `ac_pt_$1' as
	output variable, we lost the import of the user set value `$$1'
	(rather we were reading `$ac_pt_$1').  Therefore, even if not
	cross-compiling, we want to run the cross-compiling part of these
	macros.
	Reported by Morten Eriksen.

Index: TODO
===================================================================
RCS file: /cvs/autoconf/TODO,v
retrieving revision 1.96
diff -u -r1.96 TODO
--- TODO 2000/10/17 12:48:51 1.96
+++ TODO 2000/10/17 16:03:50
@@ -33,6 +33,9 @@
 char intervals.  Introducing ac_A_Z etc. might make it more
 convenient.
 
+** AC_CHECK_TOOL...
+Write a test that checks that it honors the values set by the user.
+
 * Autoconf 2.51 or so
 
 ** AC_FUNC_GETLOADAVG
Index: acgeneral.m4
===================================================================
RCS file: /cvs/autoconf/acgeneral.m4,v
retrieving revision 1.578
diff -u -r1.578 acgeneral.m4
--- acgeneral.m4 2000/10/17 12:48:51 1.578
+++ acgeneral.m4 2000/10/17 16:03:51
@@ -3177,12 +3177,17 @@
 
 # AC_PATH_TOOL(VARIABLE, PROG-TO-CHECK-FOR, [VALUE-IF-NOT-FOUND], [PATH])
 # -----------------------------------------------------------------------
-# (Use different variables $1 and ac_pt_$1 so that cache vars don't conflict.)
+# Use different variables $1 and ac_pt_$1 so that cache vars don't conflict.
+# Be extremely careful if you want to change this macro: there are several
+# factors to be honored:
+# - if VARIABLE is already set, don't look for another value
+# - in any case, including the previous one, display the `checking...'
+#   message (hence, you cannot just condition the body of this macro
+#   with `test -n "$$1"').
+# - if ac_tool_prefix is set, it must be honored first.
 AC_DEFUN([AC_PATH_TOOL],
-[if test -n "$ac_tool_prefix"; then
-  AC_PATH_PROG([$1], [${ac_tool_prefix}$2], , [$4])
-fi
-if test -z "$ac_cv_path_$1"; then
+[AC_PATH_PROG([$1], [${ac_tool_prefix}$2], , [$4])
+if test -z "$$1"; then
   AC_PATH_PROG([ac_pt_$1], [$2], [$3], [$4])
   $1="$ac_pt_$1"
 fi
@@ -3191,12 +3196,10 @@
 
 # AC_CHECK_TOOL(VARIABLE, PROG-TO-CHECK-FOR, [VALUE-IF-NOT-FOUND], [PATH])
 # ------------------------------------------------------------------------
-# (Use different variables $1 and ac_ct_$1 so that cache vars don't conflict.)
+# Use different variables $1 and ac_ct_$1 so that cache vars don't conflict.
 AC_DEFUN([AC_CHECK_TOOL],
-[if test -n "$ac_tool_prefix"; then
-  AC_CHECK_PROG([$1], [${ac_tool_prefix}$2], [${ac_tool_prefix}$2], , [$4])
-fi
-if test -z "$ac_cv_prog_$1"; then
+[AC_CHECK_PROG([$1], [${ac_tool_prefix}$2], [${ac_tool_prefix}$2], , [$4])
+if test -z "$$1"; then
   AC_CHECK_PROG([ac_ct_$1], [$2], [$2], [$3], [$4])
   $1="$ac_ct_$1"
 fi
@@ -3210,15 +3213,13 @@
 # none can be found with a cross prefix, then use the first one that
 # was found without the cross prefix.
 AC_DEFUN([AC_CHECK_TOOLS],
-[if test -n "$ac_tool_prefix"; then
-  for ac_prog in $2
-  do
-    AC_CHECK_PROG([$1],
-                  [$ac_tool_prefix$ac_prog], [$ac_tool_prefix$ac_prog],,
-                  [$4])
-    test "$$1" != "" && break
-  done
-fi
+[for ac_prog in $2
+do
+  AC_CHECK_PROG([$1],
+                [$ac_tool_prefix$ac_prog], [$ac_tool_prefix$ac_prog],,
+                [$4])
+  test -z "$$1" && break
+done
 if test -z "$$1"; then
   AC_CHECK_PROGS([$1], [$2], [$3], [$4])
 fi


From akim@epita.fr Tue Oct 17 12:09:58 2000
Received: from [194.98.116.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13lZJO-0003gs-00
	for <autoconf@gnu.org>; Tue, 17 Oct 2000 12:09:58 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id SAA21518
	Tue, 17 Oct 2000 18:10:47 GMT
Received: from nis.lrde.epita.fr
	([10.223.13.52] helo=nostromo.lrde.epita.fr ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13lbLk-000692-00; Tue, 17 Oct 2000 18:20:32 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13lZPn-0008A6-00; Tue, 17 Oct 2000 18:16:35 +0200
To: Morten Eriksen <mortene@sim.no>
Cc: autoconf@gnu.org
Subject: Re: Bug: explicitly setting CC made defunct
References: <51r95f7d6w.fsf@trh.sim.no>
	<mv4hf6b5v8f.fsf@nostromo.lrde.epita.fr> <51aec378wl.fsf@trh.sim.no>
From: Akim Demaille <akim@epita.fr>
Date: 17 Oct 2000 18:16:35 +0200
In-Reply-To: Morten Eriksen's message of "17 Oct 2000 18:02:50 +0200"
Message-ID: <mv44s2b5tp8.fsf@nostromo.lrde.epita.fr>
Lines: 11
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

| 2000-10-17  Morten Eriksen <mortene@sim.no>
| 
|         * acgeneral.m4 (AC_CHECK_TOOL[S]?): As AC_CHECK_PROG[S]? first
|         tests the value of the VARIABLE argument when looking for
|         executables in the PATH, we need to set it to the correct
|         value from AC_CHECK_TOOL[S]? when not just passing on the
|         incoming VARIABLE directly.

I like your patch better than mine.  I'm installing it (my distcheck
is still running so my previous patch is not applied yet).


From akim@epita.fr Tue Oct 17 12:12:46 2000
Received: from [194.98.116.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13lZM4-0003kO-00
	for <autoconf@gnu.org>; Tue, 17 Oct 2000 12:12:44 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id SAA21964
	Tue, 17 Oct 2000 18:13:32 GMT
Received: from nis.lrde.epita.fr
	([10.223.13.52] helo=nostromo.lrde.epita.fr ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13lbOP-0006A5-00; Tue, 17 Oct 2000 18:23:17 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13lZST-0004VH-00; Tue, 17 Oct 2000 18:19:21 +0200
To: Morten Eriksen <mortene@sim.no>
Cc: autoconf@gnu.org
Subject: Re: Bug: explicitly setting CC made defunct
References: <51r95f7d6w.fsf@trh.sim.no>
	<mv4hf6b5v8f.fsf@nostromo.lrde.epita.fr> <51aec378wl.fsf@trh.sim.no>
From: Akim Demaille <akim@epita.fr>
Date: 17 Oct 2000 18:19:21 +0200
In-Reply-To: Morten Eriksen's message of "17 Oct 2000 18:02:50 +0200"
Message-ID: <mv4zok34f06.fsf@nostromo.lrde.epita.fr>
Lines: 14
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

| Here's the changelog entry:
| 
| 2000-10-17  Morten Eriksen <mortene@sim.no>
| 
|         * acgeneral.m4 (AC_CHECK_TOOL[S]?): As AC_CHECK_PROG[S]? first
|         tests the value of the VARIABLE argument when looking for
|         executables in the PATH, we need to set it to the correct
|         value from AC_CHECK_TOOL[S]? when not just passing on the
|         incoming VARIABLE directly.

BTW, please don't abbreviate the names of the macros in the (...)
section.  Also there are two spaces between Name and <email>.  And I
believe you missed AC_PATH_TOOL, but that's OK.


From tom.bates@compaq.com Tue Oct 17 12:13:08 2000
Received: from zcamail05.zca.compaq.com ([161.114.32.105])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13lZMS-0003kj-00
	for <autoconf@gnu.org>; Tue, 17 Oct 2000 12:13:08 -0400
Received: by zcamail05.zca.compaq.com (Postfix, from userid 12345)
	id 35BDE34F; Tue, 17 Oct 2000 09:13:34 -0700 (PDT)
Received: from fedex-s1.txn.cpqcorp.net (fedex-s1.txn.cpqcorp.net [16.74.4.108])
	by zcamail05.zca.compaq.com (Postfix) with ESMTP id 9741429F
	for <autoconf@gnu.org>; Tue, 17 Oct 2000 09:13:33 -0700 (PDT)
Posted-Date: Tue, 17 Oct 2000 11:13:18 -0500 (CDT)
Received: from compaq.com by mothra.txn04 (SMI-8.6/SMI-SVR4)
	id LAA13667; Tue, 17 Oct 2000 11:13:20 -0500
Message-ID: <39EC79F7.4BB417E6@compaq.com>
Date: Tue, 17 Oct 2000 11:10:31 -0500
From: Tom Bates <tom.bates@compaq.com>
Reply-To: tom_bates@att.net
X-Mailer: Mozilla 4.73 [en] (X11; U; SunOS 5.8 i86pc)
X-Accept-Language: en
MIME-Version: 1.0
To: autoconf@gnu.org
Subject: [Fwd: Changes to config.guess and config.sub]
Content-Type: multipart/mixed;
 boundary="------------271EB3FBEACC2715A22A5949"
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

This is a multi-part message in MIME format.
--------------271EB3FBEACC2715A22A5949
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hey,

I've modified config.sub and config.guess to recognize
"mips-compaq-nonstopux".

How should I provide these changes to you?  Diffs?

Thanks,
Tom


--------------271EB3FBEACC2715A22A5949
Content-Type: message/rfc822
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Received: from zmamail01.zma.compaq.com (zmamail01.nz-tay.cpqcorp.net [161.114.72.101]) by exchou-gh01.cca.cpqcorp.net with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21)
	id 26ZH1GSG; Fri, 14 Apr 2000 16:15:49 -0500
Received: by zmamail01.zma.compaq.com (Postfix, from userid 12345)
	id 74BAB40A; Fri, 14 Apr 2000 17:15:49 -0400 (EDT)
Received: from mtiwgwc27.worldnet.att.net (mtiwgwc27.worldnet.att.net [204.127.131.30])
	by zmamail01.zma.compaq.com (Postfix) with ESMTP id 281E657B
	for <tom.bates@compaq.com>; Fri, 14 Apr 2000 17:15:49 -0400 (EDT)
Received: from actech.com.br ([200.255.75.130])
          by mtiwgwc27.worldnet.att.net
          (InterMail vM.4.01.02.39 201-229-119-122) with ESMTP
          id <20000414211546.LBVA360.mtiwgwc27.worldnet.att.net@actech.com.br>
          for <tom_bates@worldnet.att.net>; Fri, 14 Apr 2000 21:15:46 +0000
Received: (from gnu@localhost)
	by actech.com.br (8.9.3/8.9.3) id SAA05109;
	Fri, 14 Apr 2000 18:17:53 -0300
Date: Fri, 14 Apr 2000 18:17:53 -0300
Message-Id: <200004142117.SAA05109@actech.com.br>
From: <chalub@gnu.org>
To: tom_bates@worldnet.att.net
Cc: gvc@gnu.org
In-reply-to: <38F78832.1A45@worldnet.att.net> (message from Tom Bates on Fri,
	14 Apr 2000 16:05:54 -0500)
Subject: Re: Changes to config.guess and config.sub
X-Flame: I mean, don't you realise that trees are bloated?
References:  <38F78832.1A45@worldnet.att.net>

That would be the AutoConf maintainer, please send your
patch to autoconf@gnu.org and see if they accept it.

Thanks for the contribution!
fc
-- 
Fabricio Chalub
GNU Volunteer Coordinator
http://www.riverrun.com.br/

--------------271EB3FBEACC2715A22A5949--



From akim@epita.fr Tue Oct 17 12:23:42 2000
Received: from [194.98.116.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13lZWg-0003qZ-00
	for <autoconf@gnu.org>; Tue, 17 Oct 2000 12:23:42 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id SAA24028
	Tue, 17 Oct 2000 18:24:34 GMT
Received: from nis.lrde.epita.fr
	([10.223.13.52] helo=nostromo.lrde.epita.fr ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13lbZ4-0006Df-00; Tue, 17 Oct 2000 18:34:18 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13lZd8-0002xX-00; Tue, 17 Oct 2000 18:30:22 +0200
To: tom_bates@att.net
Cc: autoconf@gnu.org
Subject: Re: [Fwd: Changes to config.guess and config.sub]
References: <39EC79F7.4BB417E6@compaq.com>
From: Akim Demaille <akim@epita.fr>
Date: 17 Oct 2000 18:30:22 +0200
In-Reply-To: Tom Bates's message of "Tue, 17 Oct 2000 11:10:31 -0500"
Message-ID: <mv4u2ab4eht.fsf@nostromo.lrde.epita.fr>
Lines: 8
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "Tom" == Tom Bates <tom.bates@compaq.com> writes:

Tom> Hey, I've modified config.sub and config.guess to recognize
Tom> "mips-compaq-nonstopux".

Tom> How should I provide these changes to you?  Diffs?

Diffs are perfect, sent to config-patches@gnu.org.


From mortene@sim.no Tue Oct 17 12:26:05 2000
Received: from trh.sim.no ([195.1.220.136] helo=sim.no)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13lZYy-0003rY-00
	for <autoconf@gnu.org>; Tue, 17 Oct 2000 12:26:04 -0400
Received: (qmail 21302 invoked by uid 1114); 17 Oct 2000 16:26:01 -0000
To: Akim Demaille <akim@epita.fr>
Cc: autoconf@gnu.org
Subject: Re: Bug: explicitly setting CC made defunct
References: <51r95f7d6w.fsf@trh.sim.no> <mv4hf6b5v8f.fsf@nostromo.lrde.epita.fr> <51aec378wl.fsf@trh.sim.no> <mv44s2b5tp8.fsf@nostromo.lrde.epita.fr>
From: Morten Eriksen <mortene@sim.no>
Date: 17 Oct 2000 18:26:01 +0200
In-Reply-To: Akim Demaille's message of "17 Oct 2000 18:16:35 +0200"
Message-ID: <511yxf77ty.fsf@trh.sim.no>
Lines: 22
User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.3
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Akim Demaille <akim@epita.fr> writes:

> | 2000-10-17  Morten Eriksen <mortene@sim.no>
> | 
> |         * acgeneral.m4 (AC_CHECK_TOOL[S]?): As AC_CHECK_PROG[S]? first
> |         tests the value of the VARIABLE argument when looking for
> |         executables in the PATH, we need to set it to the correct
> |         value from AC_CHECK_TOOL[S]? when not just passing on the
> |         incoming VARIABLE directly.
> 
> I like your patch better than mine.  I'm installing it (my distcheck
> is still running so my previous patch is not applied yet).

It looks like you caught some cases which I missed, but your fixes
looks flawed in several ways. I'll think about this some more and
perhaps submit further patches.

Anyway, feel free to go ahead and apply my first patch. I can't see
that it could possibly introduce any new bugs and I've tested that it
actually fixes what it is supposed to fix.

Morten


From eggert@twinsun.com Tue Oct 17 14:13:23 2000
Received: from alcor.twinsun.com ([198.147.65.9])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13lbEp-0005RY-00
	for <autoconf@gnu.org>; Tue, 17 Oct 2000 14:13:23 -0400
Received: from ruby.twinsun.com ([192.54.239.31]) by alcor.twinsun.com (8.9.3/8.9.3) with ESMTP id LAA26788; Tue, 17 Oct 2000 11:13:22 -0700 (PDT)
Received: (eggert@localhost) by ruby.twinsun.com (8.9.3+Sun/8.9.3) id LAA21967; Tue, 17 Oct 2000 11:13:21 -0700 (PDT)
Date: Tue, 17 Oct 2000 11:13:21 -0700 (PDT)
From: Paul Eggert <eggert@twinsun.com>
Message-Id: <200010171813.LAA21967@ruby.twinsun.com>
To: akim@epita.fr
CC: autoconf@gnu.org
In-reply-to: <mv4pukz7tdr.fsf@nostromo.lrde.epita.fr> (akim@epita.fr)
Subject: Re: position of setting locale-related variables in acgeneral.m4?
References: <5l3dhwbdme.fsf@assaris.sics.se> <mv4pukz7tdr.fsf@nostromo.lrde.epita.fr>
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

   From: Akim Demaille <akim@epita.fr>
   User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)

   The failure is extremely famous, and there is an incredible amount of
   news in gnu.bug.utils about this but in the context of grep.  It is
   simply that some locales have more letters in between a and b.

It is worse than that.  In some locales, [a-z] does not match 'b'.
And in some locales, [a-z] can match a string with two (or more!)
characters.  It can even match nondeterministically: i.e. [a-z]
might match both "c" and "ch".

An amusing instance of the problem is that in some locales, [^ch]+ can
match "ch".  This is because if "ch" is a multicharacter collating
element, then [^ch] must match "ch", because it is neither "c" nor
"h".  Therefore, [^ch]+ matches "ch".

It is difficult to find these anomalies purely by testing.
And all of this behavior is completely conforming to POSIX.2.

Confused?  Surprised?  You're not alone.
The most portable rule of thumb is:

* Avoid range expressions like [a-z].
* Avoid non-matching list expressions like [^aeiou].
* If you must use expressions like the above,
  use them only in the "C" locale.


From proski@gnu.org Tue Oct 17 23:47:28 2000
Received: from user1.channel1.com ([199.1.13.9])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13lkCO-0004bn-00
	for <autoconf@gnu.org>; Tue, 17 Oct 2000 23:47:28 -0400
Received: from xdial15.channel1.com (IDENT:proski@xdial15.channel1.com [205.240.180.15])
	by user1.channel1.com (8.9.3/8.9.3) with ESMTP id XAA04629;
	Tue, 17 Oct 2000 23:47:24 -0400 (EDT)
X-Envelope-To: 	
Date: Tue, 17 Oct 2000 23:46:49 -0400 (EDT)
From: Pavel Roskin <proski@gnu.org>
X-Sender: proski@woburn.localdomain
To: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
cc: autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
In-Reply-To: <orwvfch956.fsf@guarana.lsd.ic.unicamp.br>
Message-ID: <Pine.LNX.4.21.0010172340090.2094-100000@woburn.localdomain>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hello, Alexandre!

> > However, that test sets cross_compiling=yes which is not something that
> > can ever happen in the real life with the bundled /bin/cc.
> 
> But there's still some problem there, and the reason the testsuite
> sets this variable is precisely to detect this kind of problem.
> 
> Might I ask you to please investigate why it gets in an infinite loop?

Unfortunately, I don't have the access to that machine anymore.

My understanding is that the "bundled cc" doesn't allow any calculations
inside array indices, but _AC_COMPUTE_INT_COMPILE doesn't seem to provide
any fallback (even an error message) for the pessimistic case.

I'll try to reproduce the problem by other means.

Regards,
Pavel Roskin



From dmitry@potolok.com Wed Oct 18 01:08:51 2000
Received: from 100mb.ru ([193.124.133.25] helo=www.100mb.ru)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13llT8-0005MU-00
	for <autoconf@gnu.org>; Wed, 18 Oct 2000 01:08:51 -0400
Received: from ns.potolok.com (IDENT:root@mcc1-pool-49.cell.ru [212.119.97.49])
	by www.100mb.ru (8.9.3/8.9.3) with ESMTP id JAA17997
	for <autoconf@gnu.org>; Wed, 18 Oct 2000 09:07:20 +0300
Received: from mak.potolok.com (mak.potolok.com [192.168.0.100])
	by ns.potolok.com (8.10.0/8.10.0) with ESMTP id e9I550X04180
	for <autoconf@gnu.org>; Wed, 18 Oct 2000 09:05:05 +0400
Date: Wed, 18 Oct 2000 09:11:05 +0300
From: Dmitry I Vereschaka <dmitry@potolok.com>
X-Mailer: The Bat! (v1.39) Educational
Reply-To: Dmitry I Vereschaka <dmitry@potolok.com>
X-Priority: 3 (Normal)
Message-ID: <10382.001018@potolok.com>
To: autoconf@gnu.org
Subject: Fwd: Re: modlogan once more
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Archived: msg.XXh80I6m@ns.potolok.com
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

This is a forwarded message
From: jan@kneschke.de <jan@kneschke.de>
To: Dmitry I Vereschaka <dmitry@potolok.com>
Date: Tuesday, October 17, 2000, 11:28:20 PM
Subject: modlogan once more

===8<==============Original message text===============
On Tue, Oct 17, 2000 at 10:48:12AM +0300, Dmitry I Vereschaka wrote:
> Hello Jan!
> 
>  I've forget to tell you that there is check for working "ln -s" in
>  configure script. I've found that no matter of the result of this check,
>  config.status which produced by configure uses "ln" anyway.
> 
>  Due to OS/2 have no ln anyway I use 'set LN_S="cp.exe"' in my .bashrc,
>  and I think that creating config.status should relay on $LN_S.

ok. this is a bug in autoconf. can you please report this bug to the
autoconf guys ??

please, send your bugreport to autoconf@gnu.org

> -- 
> Best regards,
>  Dmitry                          mailto:dmitry@potolok.com
> 

  Jan
     (<who should replace this line by something more usefull>)

-- 
mailto: jan@kneschke.de -- analyze your logfiles with ModLogAn --
         => www.kneschke.de/projekte/modlogan/ <=


===8<===========End of original message text===========

Would you be so kind to check your autoconf tools for possible error
mentioned above ?

-- 
Best regards,
 Dmitry                            mailto:dmitry@potolok.com




From akim@epita.fr Wed Oct 18 04:01:00 2000
Received: from [194.98.116.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13lo9k-0007XO-00; Wed, 18 Oct 2000 04:01:00 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id KAA13462
	Wed, 18 Oct 2000 10:01:40 GMT
Received: from nis.lrde.epita.fr
	([10.223.13.52] helo=nostromo.lrde.epita.fr ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13lqC4-0007nv-00; Wed, 18 Oct 2000 10:11:32 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13loFe-0000WC-00; Wed, 18 Oct 2000 10:07:06 +0200
To: Dmitry I Vereschaka <dmitry@potolok.com>
Cc: autoconf@gnu.org, APatche <autoconf-patches@gnu.org>
Subject: Re: Fwd: Re: modlogan once more
References: <10382.001018@potolok.com>
From: Akim Demaille <akim@epita.fr>
Date: 18 Oct 2000 10:07:06 +0200
In-Reply-To: Dmitry I Vereschaka's message of "Wed, 18 Oct 2000 09:11:05 +0300"
Message-ID: <mv4d7gy4lp1.fsf@nostromo.lrde.epita.fr>
Lines: 65
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "Dmitry" == Dmitry I Vereschaka <dmitry@potolok.com> writes:

>> Due to OS/2 have no ln anyway I use 'set LN_S="cp.exe"' in my
>> .bashrc, and I think that creating config.status should relay on
>> $LN_S.

Why don't you `cp cp ln' once for all?

Anyway, after all Autoconf could do an effort.  What about this:

Index: ChangeLog
from  Akim Demaille  <akim@epita.fr>

	* acspecific.m4 (AC_PROG_LN_S): If neither `ln -s' nor `ln' work,
	fall back to `cp'.

Index: acspecific.m4
===================================================================
RCS file: /cvs/autoconf/acspecific.m4,v
retrieving revision 1.303
diff -u -r1.303 acspecific.m4
--- acspecific.m4 2000/10/16 18:25:56 1.303
+++ acspecific.m4 2000/10/18 07:59:21
@@ -274,16 +274,18 @@
 echo >conftest.file
 if ln -s conftest.file conftest.sym 2>/dev/null; then
   ac_cv_prog_LN_S="ln -s"
-else
+elif ln conftest.file conftest.sym 2>/dev/null; then
   ac_cv_prog_LN_S=ln
-fi])dnl
-LN_S=$ac_cv_prog_LN_S
+else
+  ac_cv_prog_LN_S=cp
+fi
+rm -f conftest.sym conftest.file])dnl
+AC_SUBST([LN_S], [$ac_cv_prog_LN_S])
 if test "$ac_cv_prog_LN_S" = "ln -s"; then
-  AC_MSG_RESULT(yes)
+  AC_MSG_RESULT([yes])
 else
-  AC_MSG_RESULT(no)
+  AC_MSG_RESULT([no, using $LN_S])
 fi
-AC_SUBST(LN_S)dnl
 ])# AC_PROG_LN_S
 
 
Index: doc/autoconf.texi
===================================================================
RCS file: /cvs/autoconf/doc/autoconf.texi,v
retrieving revision 1.367
diff -u -r1.367 autoconf.texi
--- doc/autoconf.texi 2000/10/17 12:33:01 1.367
+++ doc/autoconf.texi 2000/10/18 07:59:22
@@ -2704,7 +2704,8 @@
 @ovindex LN_S
 If @samp{ln -s} works on the current file system (the operating system
 and file system support symbolic links), set output variable @code{LN_S}
-to @samp{ln -s}, otherwise set it to @samp{ln}.
+to @samp{ln -s}, otherwise if @samp{ln} works, set @code{LN_S} to
+@samp{ln}, and otherwise set to @samp{cp}.
 
 If the link is put in a directory other than the current directory, its
 meaning depends on whether @samp{ln} or @samp{ln -s} is used.  To safely


From oliva@lsd.ic.unicamp.br Wed Oct 18 04:16:04 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13loOJ-0007qe-00; Wed, 18 Oct 2000 04:16:03 -0400
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id e9I8Fsl05271;
	Wed, 18 Oct 2000 06:15:54 -0200
To: Akim Demaille <akim@epita.fr>
Cc: Dmitry I Vereschaka <dmitry@potolok.com>, autoconf@gnu.org,
   APatche <autoconf-patches@gnu.org>
Subject: Re: Fwd: Re: modlogan once more
References: <10382.001018@potolok.com>
	<mv4d7gy4lp1.fsf@nostromo.lrde.epita.fr>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 18 Oct 2000 06:15:54 -0200
In-Reply-To: Akim Demaille's message of "18 Oct 2000 10:07:06 +0200"
Message-ID: <ork8b6o98l.fsf@guarana.lsd.ic.unicamp.br>
Lines: 12
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On Oct 18, 2000, Akim Demaille <akim@epita.fr> wrote:

> 	* acspecific.m4 (AC_PROG_LN_S): If neither `ln -s' nor `ln' work,
> 	fall back to `cp'.

Ok

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From akim@epita.fr Wed Oct 18 08:19:01 2000
Received: from [194.98.116.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13lsBQ-0006Ii-00; Wed, 18 Oct 2000 08:19:01 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id OAA13870
	Wed, 18 Oct 2000 14:19:20 GMT
Received: from nis.lrde.epita.fr
	([10.223.13.52] helo=nostromo.lrde.epita.fr ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13luDS-0008R6-00; Wed, 18 Oct 2000 14:29:14 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13lsGt-0000zA-00; Wed, 18 Oct 2000 14:24:39 +0200
To: David Morgan <dmorgan@symark.com>
Cc: Pavel Roskin <proski@gnu.org>, autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010131008140.733-100000@sunapee.transcept.com>
	<39E73575.2EA4B1DD@symark.com>
	<mv4u2agn02f.fsf@nostromo.lrde.epita.fr>
	<39E74D12.95849D58@symark.com>
From: Akim Demaille <akim@epita.fr>
Date: 18 Oct 2000 14:24:39 +0200
In-Reply-To: David Morgan's message of "Fri, 13 Oct 2000 10:57:38 -0700"
Message-ID: <mv4em1e2v7c.fsf@nostromo.lrde.epita.fr>
Lines: 38
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "David" == David Morgan <dmorgan@symark.com> writes:

David> ac_file=tests/atconfig echo "X"$ac_file"" | sed '
David> /^X\(.*^/\)\/\/*^/^/*\/*$/{ s//\1/p; q; }'

Thanks a lot.  That's an actual bug in Autoconf, but which is
exhibited only on machines on which `expr' fails, which is probably
your case.

Here is what I'm currently checking in:

2000-10-18  Akim Demaille  <akim@epita.fr>

	* acgeneral.m4 (_AC_SHELL_DIRNAME): The `sed' fall back was not
	quoted.

Index: acgeneral.m4
===================================================================
RCS file: /cvs/autoconf/acgeneral.m4,v
retrieving revision 1.579
diff -u -r1.579 acgeneral.m4
--- acgeneral.m4 2000/10/17 16:34:10 1.579
+++ acgeneral.m4 2000/10/18 12:15:57
@@ -926,12 +926,12 @@
       X$1 : 'X\(//\)$' \| \
       X$1 : 'X\(/\)' \| \
       .   : '\(.\)' 2>/dev/null ||
-echo "X$1" | sed '
+echo "X$1" | sed ['
 	    /^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/p; q; }
 	    /^X\(\/\/\)[^/].*/{ s//\1/p; q; }
 	    /^X\(\/\/\)$/{ s//\1/p; q; }
 	    /^X\(\/\).*/{ s//\1/p; q; }
-	    s/.*/./p; q'])
+	    s/.*/./p; q']])


 ## --------------------------------------------------- ##


From tom.bates@compaq.com Wed Oct 18 13:31:02 2000
Received: from zmamail05.zma.compaq.com ([161.114.64.105])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13lx3O-0002oz-00
	for <autoconf@gnu.org>; Wed, 18 Oct 2000 13:31:02 -0400
Received: by zmamail05.zma.compaq.com (Postfix, from userid 12345)
	id B12025AA4; Wed, 18 Oct 2000 13:31:01 -0400 (EDT)
Received: from fedex-s1.txn.cpqcorp.net (fedex-s1.txn.cpqcorp.net [16.74.4.108])
	by zmamail05.zma.compaq.com (Postfix) with ESMTP
	id 1A5525950; Wed, 18 Oct 2000 13:31:01 -0400 (EDT)
Posted-Date: Wed, 18 Oct 2000 12:31:08 -0500 (CDT)
Received: from compaq.com (rama.txn.cpqcorp.net [16.74.37.70])
	by kaizen-s1.txn.cpqcorp.net (8.9.3/8.9.3) with ESMTP id MAA12422;
	Wed, 18 Oct 2000 12:30:55 -0500 (CDT)
Message-ID: <39EDDDB2.2400D0E6@compaq.com>
Date: Wed, 18 Oct 2000 12:28:18 -0500
From: Tom Bates <tom.bates@compaq.com>
Reply-To: tom_bates@att.net
X-Mailer: Mozilla 4.73 [en] (X11; U; SunOS 5.8 i86pc)
X-Accept-Language: en
MIME-Version: 1.0
To: Akim Demaille <akim@epita.fr>
Cc: tom_bates@att.net, autoconf@gnu.org
Subject: Re: [Fwd: Changes to config.guess and config.sub]
References: <39EC79F7.4BB417E6@compaq.com> <mv4u2ab4eht.fsf@nostromo.lrde.epita.fr>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

I've sent the diffs to config-patches@gnu.org.. - Thanks, Tom

Akim Demaille wrote:

> >>>>> "Tom" == Tom Bates <tom.bates@compaq.com> writes:
>
> Tom> Hey, I've modified config.sub and config.guess to recognize
> Tom> "mips-compaq-nonstopux".
>
> Tom> How should I provide these changes to you?  Diffs?
>
> Diffs are perfect, sent to config-patches@gnu.org.



From patricg@fyspc-rp18.uio.no Wed Oct 18 14:38:04 2000
Received: from mons.uio.no ([129.240.130.14])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13ly6F-000417-00; Wed, 18 Oct 2000 14:38:03 -0400
Received: from fyspc-rp18.uio.no ([129.240.87.18])
	by mons.uio.no with esmtp (Exim 2.12 #7)
	id 13ly68-0001qp-00; Wed, 18 Oct 2000 20:37:56 +0200
Received: from patricg (helo=localhost)
	by fyspc-rp18.uio.no with local-esmtp (Exim 2.12 #1)
	id 13ly68-0007PD-00; Wed, 18 Oct 2000 20:37:56 +0200
Date: Wed, 18 Oct 2000 20:37:56 +0200 (CEST)
From: Patrick Guio <patrick.guio@fys.uio.no>
X-Sender: patricg@fyspc-rp18.uio.no
To: automake@gnu.org, autoconf@gnu.org, libtool@gnu.org
Subject: bug or wrong use ?
Message-ID: <Pine.LNX.4.21.0010182025250.27633-100000@fyspc-rp18.uio.no>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Dear all

I try to write a configure.in/Makefile.am system for my c++ code and I get
the following problem. I have a compiler check which looks like this

# Compiler check
AC_ARG_WITH(cxx,
[  --with-cxx=COMPILER[:name-flags]   set options for COMPILER ],
[case "$withval" in
KCC*) # KAI C++  http://www.kai.com/
....
cxx*)               # DEC C++  http://www.digital.com/
  echo "Configuring for DEC cxx"
  CXX="cxx"
  CXX_OPTIMIZE_FLAGS="-O4 -tune host"
  CXX_DEBUG_FLAGS="-g -msg_display_tag -DBZ_DEBUG"
  CXXFLAGS="-std strict_ansi -DBZ_DISABLE_XOPEN_SOURCE -ieee"
  CXXFLAGS="$CXXFLAGS -ptr \$(top_srcdir)/repository -ttimestamp"
;;
egcs*|gcc*)              # gcc  http://gcc.gnu.org/
....
*) AC_MSG_ERROR([ Known compilers are KCC, gcc, cxx])
esac
echo ""
echo CXX = $CXX
echo "" ],
[AC_MSG_ERROR([
This script only recognizes a small set of compilers and platforms so far.
You will have to rerun this script with one of these options:
  --with-cxx=KCC    KAI C++ (http://www.kai.com/)
  --with-cxx=gcc    gcc (http://gcc.gnu.org/)
  --with-cxx=cxx    DEC cxx 6.10 or better (http://www.dec.com/)
])] )

The problem is coming from the declaration of the CXXFLAGS for cxx
compiler. I need to declare a repository for instantiations of the
templates with -ptr <directory>. Since I have several subdirectories, I
need the templates to be instantiated in a known place.
Earlier I had set it 
  CXXFLAGS="$CXXFLAGS -ptr $PWD/repository -ttimestamp"

But I would like to take advantage of the $(top_srcdir) variable so that
each created Makefile contains not an instance but a variable.
It works fine and in each created Makefile I have
CXXFLAGS = -std strict_ansi -DBZ_DISABLE_XOPEN_SOURCE -ieee -ptr
$(top_srcdir)/repository -ttimestamp
The problem comes when I run configure to check whether the compiler works
then I get

% configure --with-cxx=cxx --with-blitz=/mn/sothi/u1/patrickg/src/blitz
--with-hdf=/astro/local/opt/HDF_4.1r3/4.1r3_digunix
....
checking for g++... cxx
checking whether the C++ compiler works... no
configure: error: C++ compiler cannot create executables

Looking at config.log I see that

....
configure:3583: result: cxx
configure:3632: checking whether the C++ compiler works
configure:3649: cxx -o conftest -std strict_ansi -DBZ_DISABLE_XOPEN_SOURCE
-ieee -ptr $(top_srcdir)/repository -ttimestamp  -DHDF
-I/astro/local/opt/HDF_4.1r3/4.1r3_digunix/include
-I/mn/sothi/u1/patrickg/src/blitz -DFLOAT_FIELD
-L/mn/sothi/u1/patrickg/src/blitz/lib -lblitz
-L/astro/local/opt/HDF_4.1r3/4.1r3_digunix/lib -lmfhdf -ldf
/astro/local/opt/HDF_4.1r3/4.1r3_digunix/lib/libjpeg.a -lz conftest.cc
>&5
cxx: Severe: invalid directory for instantiation files:
          $(top_srcdir)/repository
cxx: Info: 1 catastrophic error detected in the compilation of
"conftest.cc".
cxx: Info: Compilation terminated.
configure: failed program was:
#line 3635 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif

int
main ()
{

  ;
  return 0;
}
configure:3669: result: no
 
The problem is when testing the tested command does not contain an
instance of $(top_srcdir) but $(top_srcdir) itself!
What do I do wrong? Do you have tips to remedy?

Sincerely

Patrick Guio

======================================================================
				  Patrick Guio
		    Institute of Physics, University of Oslo
		      P.O. box 1048, Blindern, N-0316 Oslo
	       Tel : (+47) 22 84 40 60 - Fax : (+47) 22 85 56 71
			E-mail : patrick.guio@fys.uio.no 
			  URL : http://www.fys.uio.no



From akim@epita.fr Thu Oct 19 04:11:11 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13mAn9-00079l-00
	for <autoconf@gnu.org>; Thu, 19 Oct 2000 04:11:11 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id KAA27977
	Thu, 19 Oct 2000 10:12:05 GMT
Received: from nis.lrde.epita.fr
	([10.223.13.52] helo=nostromo.lrde.epita.fr ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13mCpr-0002Pw-00; Thu, 19 Oct 2000 10:22:07 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13mAsj-0001Az-00; Thu, 19 Oct 2000 10:16:57 +0200
To: Patrick Guio <patrick.guio@fys.uio.no>
Cc: autoconf@gnu.org
Subject: Re: bug or wrong use ?
References: <Pine.LNX.4.21.0010182025250.27633-100000@fyspc-rp18.uio.no>
From: Akim Demaille <akim@epita.fr>
Date: 19 Oct 2000 10:16:57 +0200
In-Reply-To: Patrick Guio's message of "Wed, 18 Oct 2000 20:37:56 +0200 (CEST)"
Message-ID: <mv41yxdz1mu.fsf@nostromo.lrde.epita.fr>
Lines: 9
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

[Restricted to Autoconf, this is not something that matters to Libtool
and Automake]

Maybe I overlooked something, but don't you simply face the fact that
you used $( ) to dereference a shell variable?  That should not work.
Since you want it to work with Make too, I'd suggest ${ }.

BTW, using top_srcdir doesn't seem right, top_builddir does.


From akim@epita.fr Thu Oct 19 09:19:57 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13mFbw-0007No-00; Thu, 19 Oct 2000 09:19:56 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id PAA26554
	Thu, 19 Oct 2000 15:20:41 GMT
Received: from nis.lrde.epita.fr
	([10.223.13.52] helo=nostromo.lrde.epita.fr ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13mHeY-0003GX-00; Thu, 19 Oct 2000 15:30:46 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13mFhE-0005DK-00; Thu, 19 Oct 2000 15:25:24 +0200
To: Autoconf List <autoconf@gnu.org>
Cc: Werner LEMBERG <sx0005@gnu.org>, Jim Meyering <meyering@ascend.com>,
        Paul Eggert <eggert@twinsun.com>
Subject: strings.h & string.h
From: Akim Demaille <akim@epita.fr>
Date: 19 Oct 2000 15:25:24 +0200
Message-ID: <mv4zok1vu7v.fsf@nostromo.lrde.epita.fr>
Lines: 131
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

--=-=-=


Hi,

Werner raised this issue.  I don't feel competent to judge whether it
should be addressed by Autoconf or not.  I'd really like to have
opinions on this issue.  Maybe we need something like we have for
TIME_WITH_SYS_TIME?



--=-=-=
Content-Type: message/rfc822
Content-Disposition: inline

X-From-Line: sx0005@gnu.org  Wed Aug 09 20:23:58 2000
Return-path: <bug-autoconf-request@gnu.org>
Envelope-to: akim@lrde.epita.fr
Delivery-date: Wed, 09 Aug 2000 20:24:58 +0200
Received: from hermes.epita.fr ([10.42.1.60])
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13MaXC-0002p4-00
	for <akim@lrde.epita.fr>; Wed, 09 Aug 2000 20:24:58 +0200
Received: from freefriends.org (freefriends.org [63.85.55.109])
	by hermes.epita.fr id UAA17044 for <akim@epita.fr> 
	EPITA Paris France Wed, 9 Aug 2000 20:26:26 GMT
Received: from mescaline.gnu.org (mescaline.gnu.org [158.121.106.21])
	by freefriends.org (8.9.3/8.9.3) with ESMTP id OAA12904
	for <akim@freefriends.org>; Wed, 9 Aug 2000 14:23:49 -0400
Received: (from slist@localhost)
	by mescaline.gnu.org (8.9.1a/8.9.1) id OAA04023
	for akim@freefriends.org; Wed, 9 Aug 2000 14:25:14 -0400
Resent-Date: Wed, 9 Aug 2000 14:25:14 -0400
Received: from tsukuba.m17n.org (root@tsukuba.m17n.org [192.47.44.130])
	by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id OAA03992
	for <bug-autoconf@gnu.org>; Wed, 9 Aug 2000 14:25:05 -0400
Received: from fs.m17n.org (root@fs.m17n.org [192.47.44.2])
	by tsukuba.m17n.org (8.9.3/3.7W-19991231100513) with ESMTP id DAA08992;
	Thu, 10 Aug 2000 03:24:58 +0900 (JST)
	(envelope-from sx0005@gnu.org)
Received: from rigel.univie.ac.at (root@dhcp29.m17n.org [192.47.44.69])
	by fs.m17n.org (8.9.3/3.7W-19990906215257) with ESMTP id DAA08813;
	Thu, 10 Aug 2000 03:24:57 +0900 (JST)
Received: from localhost (sx0005@localhost [127.0.0.1])
	by rigel.univie.ac.at (8.9.3/8.8.8) with ESMTP id UAA31317;
	Wed, 9 Aug 2000 20:23:59 +0200
Date: Wed, 09 Aug 2000 20:23:58 +0200 (CEST)
Message-Id: <20000809.202358.58452784.sx0005@gnu.org>
To: schuld@btv.ibm.com, bug-autoconf@gnu.org
Subject: Re: Error building groff-1.61.1 on IBM AIX 4.1.5 
From: Werner LEMBERG <sx0005@gnu.org>
In-Reply-To: <200008081846.OAA51722@apache4.btv.ibm.com>
References: <20000806.123218.101505180.sx0005@gnu.org>
	<200008081846.OAA51722@apache4.btv.ibm.com>
X-Mailer: Mew version 1.95b51 on Emacs 20.6 / Mule 4.0 (HANANOEN)
Reply-To: Werner LEMBERG <wl@gnu.org>
Resent-Message-ID: <"9YiSN1.0.l-.78Qav"@mescaline.gnu.org>
Resent-From: bug-autoconf@gnu.org
X-Mailing-List: <bug-autoconf@gnu.org> archive/latest/218
X-Loop: bug-autoconf@gnu.org
Precedence: list
Resent-Sender: bug-autoconf-request@gnu.org
Resent-Bcc:
X-UIDL: c5f4b9e5916c954fee9d4f6d792e1a6a
X-Content-Length: 2031
Lines: 67
Xref: nostromo.lrde.epita.fr mail.list.autoconf.bug:231
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii


> I'm not too sure about the answer to your questions.  I can't find
> anything in the man pages either way.  I've gone ahead and attached
> a copy of the string.h and strings.h file to this note, just in case
> you can see something that makes sense.  This might help you to see
> what needs to be done.

I found the solution.  It is an autoconf bug (even in the latest CVS
version).  AIX conforms to the latest Unix 98 standard in defining
strncasecmp() and some other BSD functions in strings.h only.  This
means that the test below fails since it won't include strings.h if
string.h is available (and this is what I've missed).

Probably an additional test must be written which tests whether
string.h and strings.h can be included simultaneously.

A quick'n'dirty solution for you is to remove
`-DNEED_DECLARATION_STRNCASECMP' from the long DEFINES line in the
main makefile after configuration.

The optimal solution of course would be to get rid of strings.h
altogether...


    Werner


======================================================================


> >> configure:1865: checking whether strncasecmp must be declared
> >> configure:1902: /afs/btv.ibm.com/data/n37v/software/gnu-aix415/bin/g++ -c -O
> 3 -mtune=power2  conftest.C 1>&5
> >> configure: In function `int main()':
> >> configure:1899: `strncasecmp' undeclared (first use this function)
> >> configure:1899: (Each undeclared identifier is reported only once
> >> configure:1899: for each function it appears in.)
> >> configure: failed program was:
> >> #line 1878 "configure"
> >> #include "confdefs.h"
> >> 
> >> #include <stdio.h>
> >> #ifdef HAVE_STRING_H
> >> #include <string.h>
> >> #else
> >> #ifdef HAVE_STRINGS_H
> >> #include <strings.h>
> >> #endif
> >> #endif
> >> #ifdef HAVE_STDLIB_H
> >> #include <stdlib.h>
> >> #endif
> >> #ifdef HAVE_UNISTD_H
> >> #include <unistd.h>
> >> #endif
> >> #ifdef HAVE_MATH_H
> >> #include <math.h>
> >> #endif
> >> int main() {
> >> char *(*pfn) = (char *(*)) strncasecmp
> >> ; return 0; }
> >
> 
> 




--=-=-=--


From martin@tropos.de Thu Oct 19 12:38:19 2000
Received: from mail.tropos.de ([192.124.254.9])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13mIhv-0002Gf-00
	for <autoconf@gnu.org>; Thu, 19 Oct 2000 12:38:19 -0400
Received: from whisky.tropos.de (whisky.tropos.de [192.124.254.179])
	by mail.tropos.de (AIX4.3/8.9.3/8.9.3) with ESMTP id SAA13330
	for <autoconf@gnu.org>; Thu, 19 Oct 2000 18:37:39 +0200
Received: from localhost (martin@localhost)
	by whisky.tropos.de (8.9.3/8.9.3) with ESMTP id SAA24825
	for <autoconf@gnu.org>; Thu, 19 Oct 2000 18:38:16 +0200
X-Authentication-Warning: whisky.tropos.de: martin owned process doing -bs
Date: Thu, 19 Oct 2000 18:38:16 +0200 (CEST)
From: Martin Wilck <martin@tropos.de>
To: autoconf@gnu.org
Subject: Strange warnings from AC_REQUIRE
Message-ID: <Pine.LNX.4.21.0010191811150.20920-100000@whisky.tropos.de>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hi,

after two months, I'm trying to get my Fortran/cpp and Fortran 90
macros to work with cvs autoconf.

So far I have utterly failed. I was able to track down (at least part of)
my problems to this trivial configure.in, totally unrelated to Fortran
stuff:

AC_INIT(fpptest, 0.0.1, martin@tropos.de)
AM_INIT_AUTOMAKE(fpptest, 0.0.1)
AC_PREREQ(2.14b)
AC_CONFIG_SRCDIR(foo.c)
AC_LANG_COMPILER(C)
AC_LANG_COMPILER(C++)
AC_REQUIRE_C
AC_REQUIRE_CXX
AC_OUTPUT(Makefile)

AC_REQURE_C and AC_REQUIRE_CXX are two mini-macros I wrote into
aclocal.m4:

AC_DEFUN([AC_REQUIRE_C],
[AC_REQUIRE([AC_LANG_COMPILER(C)])
AC_WARNING([Hey Joe! (C version)
])
])
AC_DEFUN([AC_REQUIRE_CXX],
[AC_REQUIRE([AC_LANG_COMPILER(C++)])
AC_WARNING([Hey Joe! (C++ version)
])
])

Now here comes the output of running autoconf:

configure.in:6: warning: AC_PROG_CPP was called before AC_PROG_CC
configure.in:7: warning: Hey Joe! (C version)
configure.in:8: warning: AC_PROG_CPP was called before AC_PROG_CC
configure.in:8: warning: AC_LANG_COMPILER(C++) is AC_REQUIRE'd but is not AC_DEFUN'd
configure.in:8: warning: Hey Joe! (C++ version)

- There are two bogus warnings about calling PROG_CPP before PROG_CC
  (btw: these disappear if I comment out AM_INIT_AUTOMAKE in
  configure.in).

- There is one bogus warning that AC_LANG_COMPILER(C++) isn't DEFUN'd, as 
  it should be. I guess this is serious, but I can't figure out what
  happens. Btw, this is independent on whether or not I call 
  AC_LANG_COMPILER(C++) before, which I also don't understand.

The same happens if I use Fortran77 instead of C++. (He complains 
AC_LANG_COMPILER(Fortran 77) isn't DEFUN'd). Interestingly, the warning
message doesn't show up for C.

These are only warnings, but if I try to activate my own stuff, serious
errors show up, which also seem to be related to PROVIDE/REQUIRE business.

Am I overlooking something here?

Regards, 
Martin

-- 
MartinWilck <martin@tropos.de>
Institute for Tropospheric Research, Permoserstr. 15, D-04318 Leipzig, Germany
Tel. +49-341-2352151 / Fax +49-341-2352361



From patricg@fyspc-rp18.uio.no Thu Oct 19 13:00:05 2000
Received: from mons.uio.no ([129.240.130.14])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13mJ2y-0002au-00; Thu, 19 Oct 2000 13:00:04 -0400
Received: from fyspc-rp18.uio.no ([129.240.87.18])
	by mons.uio.no with esmtp (Exim 2.12 #7)
	id 13mJ2r-0004LB-00; Thu, 19 Oct 2000 18:59:57 +0200
Received: from patricg (helo=localhost)
	by fyspc-rp18.uio.no with local-esmtp (Exim 2.12 #1)
	id 13mJ2n-0006hg-00; Thu, 19 Oct 2000 18:59:53 +0200
Date: Thu, 19 Oct 2000 18:59:53 +0200 (CEST)
From: Patrick Guio <patrick.guio@fys.uio.no>
X-Sender: patricg@fyspc-rp18.uio.no
To: automake@gnu.org, autoconf@gnu.org, libtool@gnu.org
Subject: dependencies in c++
Message-ID: <Pine.LNX.4.21.0010191855530.25771-100000@fyspc-rp18.uio.no>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Dear all
I really have problems to get the dependencies stuff to work correctly. I
can see that some depcomp files are installed in my subdirectories but if
I touch a .h file the stuff is not rebuilt.
And I cannot find any documentation about this feature. Can anybody help
me? 
Sincerely

Patrick
======================================================================
				  Patrick Guio
		    Institute of Physics, University of Oslo
		      P.O. box 1048, Blindern, N-0316 Oslo
	       Tel : (+47) 22 84 40 60 - Fax : (+47) 22 85 56 71
			E-mail : patrick.guio@fys.uio.no 
			  URL : http://www.fys.uio.no



From akim@epita.fr Thu Oct 19 13:00:13 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13mJ37-0002bL-00
	for <autoconf@gnu.org>; Thu, 19 Oct 2000 13:00:13 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id TAA13235
	Thu, 19 Oct 2000 19:01:02 GMT
Received: from nis.lrde.epita.fr
	([10.223.13.52] helo=nostromo.lrde.epita.fr ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13mL5o-000417-00; Thu, 19 Oct 2000 19:11:08 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13mJ8P-0006F3-00; Thu, 19 Oct 2000 19:05:41 +0200
To: Martin Wilck <martin@tropos.de>
Cc: autoconf@gnu.org
Subject: Re: Strange warnings from AC_REQUIRE
References: <Pine.LNX.4.21.0010191811150.20920-100000@whisky.tropos.de>
From: Akim Demaille <akim@epita.fr>
Date: 19 Oct 2000 19:05:40 +0200
In-Reply-To: Martin Wilck's message of "Thu, 19 Oct 2000 18:38:16 +0200 (CEST)"
Message-ID: <mv4d7gwwyl7.fsf@nostromo.lrde.epita.fr>
Lines: 12
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

AC_DEFUN([AC_REQUIRE_CXX],
[AC_REQUIRE([AC_LANG_COMPILER(C++)])
AC_WARNING([Hey Joe! (C++ version)
])
])

Sorry, I don't have much time, so the answer is short :)

[AC_REQUIRE([AC_LANG_COMPILER(C++)])

is not good, you can't do that.  Use AC_LANG_COMPILER_REQUIRE instead.


From oliva@lsd.ic.unicamp.br Thu Oct 19 13:33:37 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13mJZK-00038R-00; Thu, 19 Oct 2000 13:33:35 -0400
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id e9JHWrc15816;
	Thu, 19 Oct 2000 15:32:53 -0200
To: Patrick Guio <patrick.guio@fys.uio.no>
Cc: automake@gnu.org, autoconf@gnu.org, libtool@gnu.org
Subject: Re: dependencies in c++
References: <Pine.LNX.4.21.0010191855530.25771-100000@fyspc-rp18.uio.no>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 19 Oct 2000 15:32:53 -0200
In-Reply-To: Patrick Guio's message of "Thu, 19 Oct 2000 18:59:53 +0200 (CEST)"
Message-ID: <orlmvkohx6.fsf@guarana.lsd.ic.unicamp.br>
Lines: 17
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On Oct 19, 2000, Patrick Guio <patrick.guio@fys.uio.no> wrote:

> I really have problems to get the dependencies stuff to work correctly. I
> can see that some depcomp files are installed in my subdirectories but if
> I touch a .h file the stuff is not rebuilt.

Which compiler are you using?  The new dependency-tracking code in
automake only enables dependency tracking by default if the compiler
can generate dependencies as a side-effect of compilation.  In other
cases, you have enable it explicitly.  Run `configure --help' for the
options.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From dmorgan@symark.com Thu Oct 19 13:34:50 2000
Received: from firewall.symark.westlake.iswest.net ([207.178.203.34] helo=gateway.symark.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13mJac-0003BM-00; Thu, 19 Oct 2000 13:34:50 -0400
Received: (from mailer@localhost)
	by gateway.symark.com (8.9.3/8.9.3) id KAA27225;
	Thu, 19 Oct 2000 10:34:49 -0700
Received: from wombat.symark.com(128.1.1.33) by gateway.symark.com via smap (V2.1+anti-relay+anti-spam)
	id xma027201; Thu, 19 Oct 00 10:34:31 -0700
Message-ID: <39EF3175.D699C1B5@symark.com>
Date: Thu, 19 Oct 2000 10:37:57 -0700
From: David Morgan <dmorgan@symark.com>
Organization: Symark Software
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: autoconf@gnu.org
CC: Akim Demaille <akim@epita.fr>, Pavel Roskin <proski@gnu.org>
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010131008140.733-100000@sunapee.transcept.com>
		<39E73575.2EA4B1DD@symark.com>
		<mv4u2agn02f.fsf@nostromo.lrde.epita.fr>
		<39E74D12.95849D58@symark.com> <mv4em1e2v7c.fsf@nostromo.lrde.epita.fr>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hi Akim,

I've got the new version from CVS.

This gets further (no error message) except ...

I don't have automake, autoconf or autoheader found on the machine and (thus?)
it does not generate a makefile.  

There is a message that no autoscan will be generated as perl is not found
but no message about no Makefile.

There may be some error going on but I can not see one.

I was going to install automake in case it is necessary.  But automake's 
configure requires perl which is also not on the machine.

At this rate  I'm not likely to be able to keep going and testing further.  

Can someone shed light on the situation and how I can continue on a machine
with limited support for things like perl if there is a dependency on automake.

Regards
 David

Akim Demaille wrote:
> 
> >>>>> "David" == David Morgan <dmorgan@symark.com> writes:
> 
> David> ac_file=tests/atconfig echo "X"$ac_file"" | sed '
> David> /^X\(.*^/\)\/\/*^/^/*\/*$/{ s//\1/p; q; }'
> 
> Thanks a lot.  That's an actual bug in Autoconf, but which is
> exhibited only on machines on which `expr' fails, which is probably
> your case.
> 
> Here is what I'm currently checking in:
> 
> 2000-10-18  Akim Demaille  <akim@epita.fr>
> 
>         * acgeneral.m4 (_AC_SHELL_DIRNAME): The `sed' fall back was not
>         quoted.
> 
> Index: acgeneral.m4
> ===================================================================
> RCS file: /cvs/autoconf/acgeneral.m4,v
> retrieving revision 1.579
> diff -u -r1.579 acgeneral.m4
> --- acgeneral.m4 2000/10/17 16:34:10 1.579
> +++ acgeneral.m4 2000/10/18 12:15:57
> @@ -926,12 +926,12 @@
>        X$1 : 'X\(//\)$' \| \
>        X$1 : 'X\(/\)' \| \
>        .   : '\(.\)' 2>/dev/null ||
> -echo "X$1" | sed '
> +echo "X$1" | sed ['
>             /^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/p; q; }
>             /^X\(\/\/\)[^/].*/{ s//\1/p; q; }
>             /^X\(\/\/\)$/{ s//\1/p; q; }
>             /^X\(\/\).*/{ s//\1/p; q; }
> -           s/.*/./p; q'])
> +           s/.*/./p; q']])
> 
>  ## --------------------------------------------------- ##


From martin@tropos.de Thu Oct 19 13:35:03 2000
Received: from mail.tropos.de ([192.124.254.9])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13mJao-0003Bi-00
	for <autoconf@gnu.org>; Thu, 19 Oct 2000 13:35:02 -0400
Received: from whisky.tropos.de (whisky.tropos.de [192.124.254.179])
	by mail.tropos.de (AIX4.3/8.9.3/8.9.3) with ESMTP id TAA10566
	for <autoconf@gnu.org>; Thu, 19 Oct 2000 19:34:23 +0200
Received: from localhost (martin@localhost)
	by whisky.tropos.de (8.9.3/8.9.3) with ESMTP id TAA25292
	for <autoconf@gnu.org>; Thu, 19 Oct 2000 19:35:01 +0200
X-Authentication-Warning: whisky.tropos.de: martin owned process doing -bs
Date: Thu, 19 Oct 2000 19:35:01 +0200 (CEST)
From: Martin Wilck <martin@tropos.de>
To: autoconf@gnu.org
Subject: Re: Strange warnings from AC_REQUIRE
In-Reply-To: <mv4d7gwwyl7.fsf@nostromo.lrde.epita.fr>
Message-ID: <Pine.LNX.4.21.0010191933060.20920-100000@whisky.tropos.de>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

> [AC_REQUIRE([AC_LANG_COMPILER(C++)])
> 
> is not good, you can't do that.  Use AC_LANG_COMPILER_REQUIRE instead.

Ok, far better (I still get "CPP called before CC" messages, though).
But then this comment:

# Find a compiler for the current LANG.  Note that because we might
# AC_REQUIRE `AC_LANG_COMPILER(C)' for instance, the latter must be
# AC_DEFUN'd, not just define'd.
define([AC_LANG_COMPILER],
[_AC_LANG_DISPATCH([$0], _AC_LANG, $@)])

in aclang.m4 is sort of misleading, I think.

-- 
Martin Wilck <martin@tropos.de>
Institute for Tropospheric Research, Permoserstr. 15, D-04318 Leipzig, Germany
Tel. +49-341-2352151 / Fax +49-341-2352361



From proski@gnu.org Thu Oct 19 14:12:22 2000
Received: from user1.channel1.com ([199.1.13.9])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13mKAw-0003rP-00
	for <autoconf@gnu.org>; Thu, 19 Oct 2000 14:12:22 -0400
Received: from xdial180.channel1.com (IDENT:proski@xdial180.channel1.com [205.240.180.180])
	by user1.channel1.com (8.9.3/8.9.3) with ESMTP id OAA23090;
	Thu, 19 Oct 2000 14:12:18 -0400 (EDT)
X-Envelope-To: 	
Date: Thu, 19 Oct 2000 14:11:42 -0400 (EDT)
From: Pavel Roskin <proski@gnu.org>
X-Sender: proski@woburn.localdomain
To: David Morgan <dmorgan@symark.com>
cc: autoconf@gnu.org, Akim Demaille <akim@epita.fr>
Subject: Re: Success (mostly) with the testsuite
In-Reply-To: <39EF3175.D699C1B5@symark.com>
Message-ID: <Pine.LNX.4.21.0010191406440.10164-100000@woburn.localdomain>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hello, David!

> I've got the new version from CVS.
> 
> This gets further (no error message) except ...
> 
> I don't have automake, autoconf or autoheader found on the machine and
> (thus?) it does not generate a makefile.

What? It looks like it's my fault. I touched the "missing" stuff recently.

Please report the error messages. It is very important.

And don't ever assume that something is required unless the documentation
clearly tells you so. Automake should _NOT_ be required to install and
test Autoconf.

I would also appreciate if you could explain why I decided that Automake
is required. I guess there may be errors in the diagnostics or in the
documentation that mislead you.

Regards,
Pavel Roskin



From dmorgan@symark.com Thu Oct 19 14:25:53 2000
Received: from firewall.symark.westlake.iswest.net ([207.178.203.34] helo=gateway.symark.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13mKO1-00042n-00; Thu, 19 Oct 2000 14:25:53 -0400
Received: (from mailer@localhost)
	by gateway.symark.com (8.9.3/8.9.3) id LAA29881;
	Thu, 19 Oct 2000 11:25:50 -0700
Received: from wombat.symark.com(128.1.1.33) by gateway.symark.com via smap (V2.1+anti-relay+anti-spam)
	id xma029875; Thu, 19 Oct 00 11:25:22 -0700
Message-ID: <39EF3D60.6643CCAB@symark.com>
Date: Thu, 19 Oct 2000 11:28:48 -0700
From: David Morgan <dmorgan@symark.com>
Organization: Symark Software
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: Pavel Roskin <proski@gnu.org>
CC: autoconf@gnu.org, Akim Demaille <akim@epita.fr>
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010191406440.10164-100000@woburn.localdomain>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Pavel,

There are no error messages - that is the problem.

I was guessing I needed automake as AM macros are in the configure.in
I was not certain it was needed.
I am not certain the missing stuff is causing the problem either.

After all that uncertainty:

config.log reports no problems and config.status is generated.

The following is the output of the run:

checking for a BSD compatible install... //1/tmp/autoconf/install-sh -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking for gm4... no
checking for gnum4... no
checking for m4... /usr/local/bin/m4
checking whether m4 supports frozen files... yes
checking for mawk... no
checking for gawk... no
checking for nawk... no
checking for awk... awk
checking for working help2man... missing
checking for perl... no
configure: WARNING: autoscan will not be built since perl is not found
checking for a BSD compatible install... //1/tmp/autoconf/install-sh -c
creating ./config.status
creating tests/atconfig

Would you like the config.status as well or should I turn some sort of
debug logging on?

Regards
 David

Pavel Roskin wrote:
> 
> Hello, David!
> 
> > I've got the new version from CVS.
> >
> > This gets further (no error message) except ...
> >
> > I don't have automake, autoconf or autoheader found on the machine and
> > (thus?) it does not generate a makefile.
> 
> What? It looks like it's my fault. I touched the "missing" stuff recently.
> 
> Please report the error messages. It is very important.
> 
> And don't ever assume that something is required unless the documentation
> clearly tells you so. Automake should _NOT_ be required to install and
> test Autoconf.
> 
> I would also appreciate if you could explain why I decided that Automake
> is required. I guess there may be errors in the diagnostics or in the
> documentation that mislead you.
> 
> Regards,
> Pavel Roskin


From proski@gnu.org Thu Oct 19 15:02:14 2000
Received: from user1.channel1.com ([199.1.13.9])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13mKxC-0004az-00
	for <autoconf@gnu.org>; Thu, 19 Oct 2000 15:02:14 -0400
Received: from xdial58.channel1.com (IDENT:proski@xdial58.channel1.com [205.240.180.58])
	by user1.channel1.com (8.9.3/8.9.3) with ESMTP id PAA29595;
	Thu, 19 Oct 2000 15:02:08 -0400 (EDT)
X-Envelope-To: 	
Date: Thu, 19 Oct 2000 15:01:28 -0400 (EDT)
From: Pavel Roskin <proski@gnu.org>
X-Sender: proski@woburn.localdomain
To: David Morgan <dmorgan@symark.com>
cc: autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
In-Reply-To: <39EF3D60.6643CCAB@symark.com>
Message-ID: <Pine.LNX.4.21.0010191456370.17775-100000@woburn.localdomain>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hello, David!

> checking for a BSD compatible install... //1/tmp/autoconf/install-sh -c
> checking whether build environment is sane... yes
> checking whether make sets ${MAKE}... yes
> checking for working aclocal... missing
> checking for working autoconf... missing
> checking for working automake... missing
> checking for working autoheader... missing
> checking for working makeinfo... missing

What a relief! I thought I really had messed up something.

> checking for gm4... no
> checking for gnum4... no
> checking for m4... /usr/local/bin/m4
> checking whether m4 supports frozen files... yes
> checking for mawk... no
> checking for gawk... no
> checking for nawk... no
> checking for awk... awk
> checking for working help2man... missing
> checking for perl... no
> configure: WARNING: autoscan will not be built since perl is not found
> checking for a BSD compatible install... //1/tmp/autoconf/install-sh -c
> creating ./config.status
> creating tests/atconfig
> 
> Would you like the config.status as well or should I turn some sort of
> debug logging on?

You still don't show me the problem.
Is config.status run by configure?
Do makefiles exist after that?
What happens if you run "make"?
What happens if you run "make check"?

Regards,
Pavel Roskin



From patricg@fyspc-rp18.uio.no Thu Oct 19 15:04:59 2000
Received: from pat.uio.no ([129.240.130.16])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13mKzq-0004e2-00; Thu, 19 Oct 2000 15:04:59 -0400
Received: from fyspc-rp18.uio.no ([129.240.87.18])
	by pat.uio.no with esmtp (Exim 2.12 #7)
	id 13mKzn-0004yT-00; Thu, 19 Oct 2000 21:04:55 +0200
Received: from patricg (helo=localhost)
	by fyspc-rp18.uio.no with local-esmtp (Exim 2.12 #1)
	id 13mKzn-0006uM-00; Thu, 19 Oct 2000 21:04:55 +0200
Date: Thu, 19 Oct 2000 21:04:55 +0200 (CEST)
From: Patrick Guio <patrick.guio@fys.uio.no>
X-Sender: patricg@fyspc-rp18.uio.no
To: automake@gnu.org, autoconf@gnu.org, libtool@gnu.org
Subject: Re: dependencies in c++ 
Message-ID: <Pine.LNX.4.21.0010192104300.26493-100000@fyspc-rp18.uio.no>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On 19 Oct 2000, Alexandre Oliva wrote:

> On Oct 19, 2000, Patrick Guio <patrick.guio@fys.uio.no> wrote:
> 
> > I really have problems to get the dependencies stuff to work correctly. I
> > can see that some depcomp files are installed in my subdirectories but if
> > I touch a .h file the stuff is not rebuilt.
> 
> Which compiler are you using?  The new dependency-tracking code in
> automake only enables dependency tracking by default if the compiler
> can generate dependencies as a side-effect of compilation.  In other
> cases, you have enable it explicitly.  Run `configure --help' for the
> options.
> 

I use mainly g++ but also cxx and KCC. When running 
% configure --enable-dependency-tracking
I get the following:

....
checking whether the C++ compiler works... yes
....
checking dependency style of g++... (cached) none

Does it has something to do with my problem?
I use autoconf/automake/libtool which I get from cvs and the last I have
successfully compiled is less than 1 month.

Sincerely

Patrick




From dmorgan@symark.com Thu Oct 19 15:13:52 2000
Received: from firewall.symark.westlake.iswest.net ([207.178.203.34] helo=gateway.symark.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13mL8S-0004mL-00; Thu, 19 Oct 2000 15:13:52 -0400
Received: (from mailer@localhost)
	by gateway.symark.com (8.9.3/8.9.3) id MAA31959;
	Thu, 19 Oct 2000 12:13:51 -0700
Received: from wombat.symark.com(128.1.1.33) by gateway.symark.com via smap (V2.1+anti-relay+anti-spam)
	id xma031957; Thu, 19 Oct 00 12:13:39 -0700
Message-ID: <39EF48B2.FCD679AF@symark.com>
Date: Thu, 19 Oct 2000 12:17:06 -0700
From: David Morgan <dmorgan@symark.com>
Organization: Symark Software
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: Pavel Roskin <proski@gnu.org>
CC: autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010191456370.17775-100000@woburn.localdomain>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Pavel Roskin wrote:
> 
> Hello, David!
> 
> > checking for a BSD compatible install... //1/tmp/autoconf/install-sh -c
> > checking whether build environment is sane... yes
> > checking whether make sets ${MAKE}... yes
> > checking for working aclocal... missing
> > checking for working autoconf... missing
> > checking for working automake... missing
> > checking for working autoheader... missing
> > checking for working makeinfo... missing
> 
> What a relief! I thought I really had messed up something.

As I said I wasn't sure.
> 
> > checking for gm4... no
> > checking for gnum4... no
> > checking for m4... /usr/local/bin/m4
> > checking whether m4 supports frozen files... yes
> > checking for mawk... no
> > checking for gawk... no
> > checking for nawk... no
> > checking for awk... awk
> > checking for working help2man... missing
> > checking for perl... no
> > configure: WARNING: autoscan will not be built since perl is not found
> > checking for a BSD compatible install... //1/tmp/autoconf/install-sh -c
> > creating ./config.status
> > creating tests/atconfig
> >
> > Would you like the config.status as well or should I turn some sort of
> > debug logging on?
> 
> You still don't show me the problem.

You see exactly what I see at the end of the configure there is no Makefile.

> Is config.status run by configure?

It appears to be as running by hand just produces:

creating tests/atconfig

> Do makefiles exist after that?

No

> What happens if you run "make"?

No makefiles so this doesn't do much good.

> What happens if you run "make check"?

See previous comment :)

Sorry I may seem not to be responding to your questions but I am not aware at
what point makefiles are generated.

Looking at the output of sh -x ./config.status it appears the problem is that
only test/atconfig is processed.  I will try and see if I can find out why.

Regards
 David


From dmorgan@symark.com Thu Oct 19 15:44:52 2000
Received: from firewall.symark.westlake.iswest.net ([207.178.203.34] helo=gateway.symark.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13mLcS-0005ML-00
	for <autoconf@gnu.org>; Thu, 19 Oct 2000 15:44:52 -0400
Received: (from mailer@localhost)
	by gateway.symark.com (8.9.3/8.9.3) id MAA32581
	for <autoconf@gnu.org>; Thu, 19 Oct 2000 12:44:51 -0700
Received: from wombat.symark.com(128.1.1.33) by gateway.symark.com via smap (V2.1+anti-relay+anti-spam)
	id xma032513; Thu, 19 Oct 00 12:44:23 -0700
Message-ID: <39EF4FE6.BDF4B14E@symark.com>
Date: Thu, 19 Oct 2000 12:47:50 -0700
From: David Morgan <dmorgan@symark.com>
Organization: Symark Software
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: autoconf@gnu.org
Subject: Success (mostly) with the testsuite
Content-Type: multipart/mixed;
 boundary="------------F377F85E29F7FBEE02EF6999"
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

This is a multi-part message in MIME format.
--------------F377F85E29F7FBEE02EF6999
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

 
--------------F377F85E29F7FBEE02EF6999
Content-Type: message/rfc822
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

X-Mozilla-Status2: 00000000
Message-ID: <39EF4FBD.D8366381@symark.com>
Date: Thu, 19 Oct 2000 12:47:09 -0700
From: David Morgan <dmorgan@symark.com>
Organization: Symark Software
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: Pavel Roskin <proski@gnu.org>
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010191456370.17775-100000@woburn.localdomain>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi Pavel,

I have found the offending statement :)

It is:

# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used.  Set only those that are not.
if $ac_need_defaults; then
  : ${CONFIG_FILES=$config_files}
fi

Before this CONFIG_FILES is blank and config_files has the list of files.
After this CONFIG_FILES has tests/atconfig and nothing else!

Changing this to:
# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used.  Set only those that are not.
if $ac_need_defaults; then
  CONFIG_FILES=$config_files
fi

Worked.

I'm not sure this is real portable though :)

I now have makefiles and the Make produced the following output:

Makefile:142: warning: overriding commands for target `//1/tmp/autoconf/.'
Makefile:132: warning: ignoring old commands for target `//1/tmp/autoconf/.'
Makefile:142: warning: overriding commands for target `.'
Makefile:132: warning: ignoring old commands for target `.'
make: Circular //1/tmp/autoconf/. <- //1/tmp/autoconf/. dependency dropped.
make: Circular . <- //1/tmp/autoconf/. dependency dropped.
make: Circular . <- . dependency dropped.
cd //1/tmp/autoconf && /bin/sh //1/tmp/autoconf/missing automake --gnu Makefile
WARNING: `automake' is missing on your system.  You should only need it if
         you modified `Makefile.am', `acinclude.m4' or `configure.in'.
         You might want to install the `Automake' and `Perl' packages.
         Grab them from any GNU archive site.
cd //1/tmp/autoconf/. . . && /bin/sh //1/tmp/autoconf/missing autoconf
substitution too long
/bin/sh ./config.status --recheck
running /bin/sh //1/tmp/autoconf/configure   --no-create --no-recursion
checking for a BSD compatible install... //1/tmp/autoconf/install-sh -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
configure: error: source directory already configured; run "make distclean"
there first
make: *** [config.status] Error 1

Ah the joys of QNX - where should I start to look for solving this then?
The Makefile or the recheck?

Regards
 David

Pavel Roskin wrote:
> 
> Hello, David!
> 
> > checking for a BSD compatible install... //1/tmp/autoconf/install-sh -c
> > checking whether build environment is sane... yes
> > checking whether make sets ${MAKE}... yes
> > checking for working aclocal... missing
> > checking for working autoconf... missing
> > checking for working automake... missing
> > checking for working autoheader... missing
> > checking for working makeinfo... missing
> 
> What a relief! I thought I really had messed up something.
> 
> > checking for gm4... no
> > checking for gnum4... no
> > checking for m4... /usr/local/bin/m4
> > checking whether m4 supports frozen files... yes
> > checking for mawk... no
> > checking for gawk... no
> > checking for nawk... no
> > checking for awk... awk
> > checking for working help2man... missing
> > checking for perl... no
> > configure: WARNING: autoscan will not be built since perl is not found
> > checking for a BSD compatible install... //1/tmp/autoconf/install-sh -c
> > creating ./config.status
> > creating tests/atconfig
> >
> > Would you like the config.status as well or should I turn some sort of
> > debug logging on?
> 
> You still don't show me the problem.
> Is config.status run by configure?
> Do makefiles exist after that?
> What happens if you run "make"?
> What happens if you run "make check"?
> 
> Regards,
> Pavel Roskin

--------------F377F85E29F7FBEE02EF6999--



From eggert@twinsun.com Thu Oct 19 18:14:46 2000
Received: from alcor.twinsun.com ([198.147.65.9])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13mNxV-0007eK-00; Thu, 19 Oct 2000 18:14:45 -0400
Received: from ruby.twinsun.com ([192.54.239.31]) by alcor.twinsun.com (8.9.3/8.9.3) with ESMTP id PAA26256; Thu, 19 Oct 2000 15:14:44 -0700 (PDT)
Received: (eggert@localhost) by ruby.twinsun.com (8.9.3+Sun/8.9.3) id PAA01775; Thu, 19 Oct 2000 15:14:43 -0700 (PDT)
Date: Thu, 19 Oct 2000 15:14:43 -0700 (PDT)
From: Paul Eggert <eggert@twinsun.com>
Message-Id: <200010192214.PAA01775@ruby.twinsun.com>
To: akim@epita.fr
CC: autoconf@gnu.org, sx0005@gnu.org, meyering@ascend.com
In-reply-to: <mv4zok1vu7v.fsf@nostromo.lrde.epita.fr> (akim@epita.fr)
Subject: Re: strings.h & string.h
References:  <mv4zok1vu7v.fsf@nostromo.lrde.epita.fr>
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

   From: Akim Demaille <akim@epita.fr>
   User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)

   Werner raised this issue.  I don't feel competent to judge whether it
   should be addressed by Autoconf or not.  I'd really like to have
   opinions on this issue.  Maybe we need something like we have for
   TIME_WITH_SYS_TIME?

That would solve the problem, yes.


From proski@gnu.org Thu Oct 19 19:20:56 2000
Received: from user1.channel1.com ([199.1.13.9])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13mOzX-0000YF-00
	for <autoconf@gnu.org>; Thu, 19 Oct 2000 19:20:55 -0400
Received: from xdial108.channel1.com (IDENT:proski@xdial108.channel1.com [205.240.180.108])
	by user1.channel1.com (8.9.3/8.9.3) with ESMTP id TAA22748;
	Thu, 19 Oct 2000 19:20:52 -0400 (EDT)
X-Envelope-To: 	
Date: Thu, 19 Oct 2000 19:20:15 -0400 (EDT)
From: Pavel Roskin <proski@gnu.org>
X-Sender: proski@woburn.localdomain
To: David Morgan <dmorgan@symark.com>
cc: autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
In-Reply-To: <39EF4FBD.D8366381@symark.com>
Message-ID: <Pine.LNX.4.21.0010191856350.19433-100000@woburn.localdomain>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hello, David!

> I have found the offending statement :)

You are wonderful!

> if $ac_need_defaults; then
>   : ${CONFIG_FILES=$config_files}
> fi
> 
> Before this CONFIG_FILES is blank and config_files has the list of files.
> After this CONFIG_FILES has tests/atconfig and nothing else!

I wish that somebody found it before. This is extremely important for
Autoconf developers and needs to be worked around as soon as possible.

> if $ac_need_defaults; then
>   CONFIG_FILES=$config_files
> fi
> 
> Worked.
> 
> I'm not sure this is real portable though :)

I think that the quotes around $config_files wouldn't hurt. Also you need
to check that CONFIG_FILES has not already been set.

Eureka, quotes! Could you please test this construct:

if $ac_need_defaults; then
  : ${CONFIG_FILES="$config_files"}
fi

> Makefile:142: warning: overriding commands for target `//1/tmp/autoconf/.'

This must be something QNX specific.

> cd //1/tmp/autoconf/. . . && /bin/sh //1/tmp/autoconf/missing autoconf
> substitution too long

Weird.

> configure: error: source directory already configured; run "make distclean"
> there first
> make: *** [config.status] Error 1

Wild, wonderful world of QNX! Obviously, configure thinks that it's a 
build with $srcdir != .

There is such line in configure:

if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then

Please play with it and find what $srcdir is, why "pwd" outputs different
directories (or is is "cd" that produces some noice?)

> Ah the joys of QNX - where should I start to look for solving this then?
> The Makefile or the recheck?

It doesn't matter. Everything should be fixed before Automake-2.50 can be
released.

Regards,
Pavel Roskin



From akim@epita.fr Fri Oct 20 03:47:15 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13mWtT-0007Hs-00
	for <autoconf@gnu.org>; Fri, 20 Oct 2000 03:47:15 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id JAA28667
	Fri, 20 Oct 2000 09:47:59 GMT
Received: from nis.lrde.epita.fr
	([10.223.13.52] helo=nostromo.lrde.epita.fr ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13mYwH-0005Hl-00; Fri, 20 Oct 2000 09:58:13 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13mWyQ-0006hB-00; Fri, 20 Oct 2000 09:52:18 +0200
To: Martin Wilck <martin@tropos.de>
Cc: autoconf@gnu.org
Subject: Re: Strange warnings from AC_REQUIRE
References: <Pine.LNX.4.21.0010191933060.20920-100000@whisky.tropos.de>
From: Akim Demaille <akim@epita.fr>
Date: 20 Oct 2000 09:52:18 +0200
In-Reply-To: Martin Wilck's message of "Thu, 19 Oct 2000 19:35:01 +0200 (CEST)"
Message-ID: <mv48zrkvtjh.fsf@nostromo.lrde.epita.fr>
Lines: 19
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "Martin" == Martin Wilck <martin@tropos.de> writes:

>> [AC_REQUIRE([AC_LANG_COMPILER(C++)])
>> 
>> is not good, you can't do that.  Use AC_LANG_COMPILER_REQUIRE
>> instead.

Martin> Ok, far better (I still get "CPP called before CC" messages,
Martin> though).  But then this comment:

Martin> # Find a compiler for the current LANG.  Note that because we
Martin> might # AC_REQUIRE `AC_LANG_COMPILER(C)' for instance, the
Martin> latter must be # AC_DEFUN'd, not just define'd.
Martin> define([AC_LANG_COMPILER], [_AC_LANG_DISPATCH([$0], _AC_LANG,
Martin> $@)])

Martin> in aclang.m4 is sort of misleading, I think.

indeed, I'll fix that, thanks!


From akim@epita.fr Fri Oct 20 03:53:13 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13mWzJ-0007Qb-00; Fri, 20 Oct 2000 03:53:13 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id JAA29064
	Fri, 20 Oct 2000 09:54:07 GMT
Received: from nis.lrde.epita.fr
	([10.223.13.52] helo=nostromo.lrde.epita.fr ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13mZ2D-0005J5-00; Fri, 20 Oct 2000 10:04:21 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13mX4L-0006hJ-00; Fri, 20 Oct 2000 09:58:25 +0200
To: Pavel Roskin <proski@gnu.org>
Cc: David Morgan <dmorgan@symark.com>, autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010191856350.19433-100000@woburn.localdomain>
From: Akim Demaille <akim@epita.fr>
Date: 20 Oct 2000 09:58:25 +0200
In-Reply-To: Pavel Roskin's message of "Thu, 19 Oct 2000 19:20:15 -0400 (EDT)"
Message-ID: <mv44s28vt9a.fsf@nostromo.lrde.epita.fr>
Lines: 32
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

| Eureka, quotes! Could you please test this construct:
| 
| if $ac_need_defaults; then
|   : ${CONFIG_FILES="$config_files"}
| fi

No, this is not good.  I removed the quotes on purpose.  

2000-02-10  Akim Demaille  <akim@epita.fr>

	* acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Don't
	  : ${FOO="$foo"}
	but
	  : ${FOO=$foo}
	Since Ultrix will also assign the quotes to FOO.
	Reported by Harlan Stenn.


David, what is your shell?  It is seriously damaged :( This behavior,
this *silent* behavior is incredible.  What's your environment?

BTW, there is something I don't understand too well: you already sent
some check.log, didn't you?  But how did you manage to have it run
properly last time?  Or maybe I imagined you did.

Anyway, since it seems we have to go to safety, we will have to move
to

test ${FOO+set} = set || FOO=$foo

        Akim


From patricg@fyspc-rp18.uio.no Fri Oct 20 04:01:48 2000
Received: from pat.uio.no ([129.240.130.16])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13mX7b-0007UR-00; Fri, 20 Oct 2000 04:01:47 -0400
Received: from fyspc-rp18.uio.no ([129.240.87.18])
	by pat.uio.no with esmtp (Exim 2.12 #7)
	id 13mX7S-00021B-00; Fri, 20 Oct 2000 10:01:38 +0200
Received: from patricg (helo=localhost)
	by fyspc-rp18.uio.no with local-esmtp (Exim 2.12 #1)
	id 13mX7R-0008BA-00; Fri, 20 Oct 2000 10:01:37 +0200
Date: Fri, 20 Oct 2000 10:01:37 +0200 (CEST)
From: Patrick Guio <patrick.guio@fys.uio.no>
X-Sender: patricg@fyspc-rp18.uio.no
To: Raja R Harinath <harinath@cs.umn.edu>
cc: automake@gnu.org, autoconf@gnu.org, libtool@gnu.org
Subject: Re: dependencies in c++
In-Reply-To: <d97l74ocmh.fsf@han.cs.umn.edu>
Message-ID: <Pine.LNX.4.21.0010200959450.31151-100000@fyspc-rp18.uio.no>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On 19 Oct 2000, Raja R Harinath wrote:

> Patrick Guio <patrick.guio@fys.uio.no> writes:
> > On 19 Oct 2000, Alexandre Oliva wrote:
> > > On Oct 19, 2000, Patrick Guio <patrick.guio@fys.uio.no> wrote:
> > > > I really have problems to get the dependencies stuff to work correctly. I
> > > > can see that some depcomp files are installed in my subdirectories but if
> > > > I touch a .h file the stuff is not rebuilt.
> > > 
> > > Which compiler are you using?  The new dependency-tracking code in
> > > automake only enables dependency tracking by default if the compiler
> > > can generate dependencies as a side-effect of compilation.  In other
> > > cases, you have enable it explicitly.  Run `configure --help' for the
> > > options.
> > 
> > I use mainly g++ but also cxx and KCC. When running 
> > % configure --enable-dependency-tracking
> > I get the following:
> > 
> > ....
> > checking whether the C++ compiler works... yes
> > ....
> > checking dependency style of g++... (cached) none
> > 
> > Does it has something to do with my problem?
> > I use autoconf/automake/libtool which I get from cvs and the last I have
> > successfully compiled is less than 1 month.
> 
> Did you remove config.cache before rerunning the configure?
> 'config.cache' may have the results of a previous run where you didn't
> --enable-dependency-tracking, or it may have had the results for a
> different compiler.
> 

I don't have any config.cache!
But at the end of config.log I have a list of variables

Cache variables:
| ac_cv_build='i686-pc-linux-gnu'
| ac_cv_build_alias='i686-pc-linux-gnu'
| ac_cv_c_compiler_gnu='yes'
| ac_cv_cxx_compiler_gnu='yes'
| ac_cv_env_CC_set=''
| ac_cv_env_CC_value=''
| ac_cv_env_CFLAGS_set=''
| ac_cv_env_CFLAGS_value=''
| ac_cv_env_CPPFLAGS_set=''
| ac_cv_env_CPPFLAGS_value=''
| ac_cv_env_CXXFLAGS_set=''
| ac_cv_env_CXXFLAGS_value=''
| ac_cv_env_CXX_set=''
| ac_cv_env_CXX_value=''
| ac_cv_env_LDFLAGS_set=''
| ac_cv_env_LDFLAGS_value=''
| ac_cv_env_build_alias_set=''
| ac_cv_env_build_alias_value=''

.....

and so on...

Are you talking about that?

Sincerely

Patrick




From dmorgan@symark.com Fri Oct 20 11:29:47 2000
Received: from firewall.symark.westlake.iswest.net ([207.178.203.34] helo=gateway.symark.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13me78-0001as-00; Fri, 20 Oct 2000 11:29:46 -0400
Received: (from mailer@localhost)
	by gateway.symark.com (8.9.3/8.9.3) id IAA17234;
	Fri, 20 Oct 2000 08:29:45 -0700
Received: from wombat.symark.com(128.1.1.33) by gateway.symark.com via smap (V2.1+anti-relay+anti-spam)
	id xma017227; Fri, 20 Oct 00 08:29:28 -0700
Message-ID: <39F065A7.CFD5163A@symark.com>
Date: Fri, 20 Oct 2000 08:32:55 -0700
From: David Morgan <dmorgan@symark.com>
Organization: Symark Software
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: Pavel Roskin <proski@gnu.org>
CC: autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010191856350.19433-100000@woburn.localdomain>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hi Pavel,

I'll reply to you first and then Akim.  It's easier to keep my mind straight
that way :)

Pavel Roskin wrote:
> 
> Hello, David!
> 
> > I have found the offending statement :)
> 
> You are wonderful!
> 
> > if $ac_need_defaults; then
> >   : ${CONFIG_FILES=$config_files}
> > fi
> >
> > Before this CONFIG_FILES is blank and config_files has the list of files.
> > After this CONFIG_FILES has tests/atconfig and nothing else!
> 
> I wish that somebody found it before. This is extremely important for
> Autoconf developers and needs to be worked around as soon as possible.
> 
> > if $ac_need_defaults; then
> >   CONFIG_FILES=$config_files
> > fi
> >
> > Worked.
> >
> > I'm not sure this is real portable though :)
> 
> I think that the quotes around $config_files wouldn't hurt. Also you need
> to check that CONFIG_FILES has not already been set.
> 
> Eureka, quotes! Could you please test this construct:
> 
> if $ac_need_defaults; then
>   : ${CONFIG_FILES="$config_files"}
> fi

This does work as you <Pavel> hoped.
> 
> > Makefile:142: warning: overriding commands for target `//1/tmp/autoconf/.'
> 
> This must be something QNX specific.

Not quite (see below for the value of srcdir)

The make shipped with QNX is supposed to be GNU Make 3.74

I know I tried to compile make on the platform for 3.76 and did not succeed
so I am suspicious of patches not put back to the make code.
> 
> > cd //1/tmp/autoconf/. . . && /bin/sh //1/tmp/autoconf/missing autoconf
> > substitution too long
> 
> Weird.
> 
> > configure: error: source directory already configured; run "make distclean"
> > there first
> > make: *** [config.status] Error 1
> 
> Wild, wonderful world of QNX! Obviously, configure thinks that it's a
> build with $srcdir != .

I hope so as I just noticed the value for srcdir in the Makefile is:

srcdir = //1/tmp/autoconf/. . .

Yes there are 3 dots, space separated in srcdir.

Where do I need to go to look for what creates this?

> 
> There is such line in configure:
> 
> if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
> 
> Please play with it and find what $srcdir is, why "pwd" outputs different
> directories (or is is "cd" that produces some noice?)

srcdir is //1/tmp/autoconf
pwd is /tmp/autoconf
cd srcdir && pwd is //1/tmp/autoconf 

So the line fails as they are not equal!
> 
> > Ah the joys of QNX - where should I start to look for solving this then?
> > The Makefile or the recheck?
> 
> It doesn't matter. Everything should be fixed before Automake-2.50 can be
> released.
> 
As I said earlier this box is our torture test of building now it will
be for autoconf too :)

Regards
 David


From dmorgan@symark.com Fri Oct 20 11:38:46 2000
Received: from firewall.symark.westlake.iswest.net ([207.178.203.34] helo=gateway.symark.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13meFq-0001id-00; Fri, 20 Oct 2000 11:38:46 -0400
Received: (from mailer@localhost)
	by gateway.symark.com (8.9.3/8.9.3) id IAA17563;
	Fri, 20 Oct 2000 08:38:45 -0700
Received: from wombat.symark.com(128.1.1.33) by gateway.symark.com via smap (V2.1+anti-relay+anti-spam)
	id xma017527; Fri, 20 Oct 00 08:38:23 -0700
Message-ID: <39F067BD.DE7C002E@symark.com>
Date: Fri, 20 Oct 2000 08:41:49 -0700
From: David Morgan <dmorgan@symark.com>
Organization: Symark Software
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: Akim Demaille <akim@epita.fr>
CC: Pavel Roskin <proski@gnu.org>, autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010191856350.19433-100000@woburn.localdomain> <mv44s28vt9a.fsf@nostromo.lrde.epita.fr>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/


Akim Demaille wrote:
> 
> | Eureka, quotes! Could you please test this construct:
> |
> | if $ac_need_defaults; then
> |   : ${CONFIG_FILES="$config_files"}
> | fi
> 
> No, this is not good.  I removed the quotes on purpose.
> 
> 2000-02-10  Akim Demaille  <akim@epita.fr>
> 
>         * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Don't
>           : ${FOO="$foo"}
>         but
>           : ${FOO=$foo}
>         Since Ultrix will also assign the quotes to FOO.
>         Reported by Harlan Stenn.
> 
> David, what is your shell?  It is seriously damaged :( This behavior,
> this *silent* behavior is incredible.  What's your environment?

On the OS the shell is is called /bin/sh and is a link to /bin/ksh

I will make no comments about this being braindead but it is a QNX 4.2.5
standard install.

I'm not sure what verion of ksh it is - if you can tell me how to get a 
version number (-v and --version do nothing) I can let you know.
> 
> BTW, there is something I don't understand too well: you already sent
> some check.log, didn't you?  But how did you manage to have it run
> properly last time?  Or maybe I imagined you did.

I think you are confused with the output from the make that I got running by
butchering the config.status.

> 
> Anyway, since it seems we have to go to safety, we will have to move
> to
> 
> test ${FOO+set} = set || FOO=$foo
> 
>         Akim
I just tried you proposed change and I get a syntax error from:

test ${CONFIG_FILES+$config_files} = $config_files || CONFIG_FILES=$config_files

(I expect this is my mistake is not understanding what you are wanting)

trying as:

test ${CONFIG_FILES=$config_files} = $config_files || CONFIG_FILES=$config_files

Also fails returning just the last value again.

Next suggestion please :)

Regards
 David


From larsa@sim.no Fri Oct 20 11:46:00 2000
Received: from trh.sim.no ([195.1.220.136] helo=sim.no)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13meMq-0001wm-00
	for <autoconf@gnu.org>; Fri, 20 Oct 2000 11:46:00 -0400
Received: (qmail 10315 invoked by uid 2000); 20 Oct 2000 15:45:56 -0000
Date: Fri, 20 Oct 2000 17:45:56 +0200
From: "Lars J. Aas" <larsa@sim.no>
To: David Morgan <dmorgan@symark.com>
Cc: Akim Demaille <akim@epita.fr>, Pavel Roskin <proski@gnu.org>,
  autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
Message-ID: <20001020174556.A10310@sim.no>
Reply-To: larsa@sim.no
References: <Pine.LNX.4.21.0010191856350.19433-100000@woburn.localdomain> <mv44s28vt9a.fsf@nostromo.lrde.epita.fr> <39F067BD.DE7C002E@symark.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <39F067BD.DE7C002E@symark.com>; from dmorgan@symark.com on Fri, Oct 20, 2000 at 08:41:49AM -0700
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On Fri, Oct 20, 2000 at 08:41:49AM -0700, David Morgan wrote:
: > test ${FOO+set} = set || FOO=$foo
:
: I just tried you proposed change and I get a syntax error from:
: 
: test ${CONFIG_FILES+$config_files} = $config_files || CONFIG_FILES=$config_files

Use "set" verbatim like Akim wrote - don't interpret it as the set of config files...

  Lars J


From dmorgan@symark.com Fri Oct 20 11:54:47 2000
Received: from firewall.symark.westlake.iswest.net ([207.178.203.34] helo=gateway.symark.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13meVL-00020p-00; Fri, 20 Oct 2000 11:54:47 -0400
Received: (from mailer@localhost)
	by gateway.symark.com (8.9.3/8.9.3) id IAA18293;
	Fri, 20 Oct 2000 08:54:46 -0700
Received: from wombat.symark.com(128.1.1.33) by gateway.symark.com via smap (V2.1+anti-relay+anti-spam)
	id xma018280; Fri, 20 Oct 00 08:54:23 -0700
Message-ID: <39F06B7E.DB74BC12@symark.com>
Date: Fri, 20 Oct 2000 08:57:50 -0700
From: David Morgan <dmorgan@symark.com>
Organization: Symark Software
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: larsa@sim.no
CC: Akim Demaille <akim@epita.fr>, Pavel Roskin <proski@gnu.org>,
        autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010191856350.19433-100000@woburn.localdomain> <mv44s28vt9a.fsf@nostromo.lrde.epita.fr> <39F067BD.DE7C002E@symark.com> <20001020174556.A10310@sim.no>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hi Lars,

"Lars J. Aas" wrote:
> 
> On Fri, Oct 20, 2000 at 08:41:49AM -0700, David Morgan wrote:
> : > test ${FOO+set} = set || FOO=$foo
> :
> : I just tried you proposed change and I get a syntax error from:
> :
> : test ${CONFIG_FILES+$config_files} = $config_files || CONFIG_FILES=$config_files
> 
> Use "set" verbatim like Akim wrote - don't interpret it as the set of config files...
> 

I still get a syntax error with:

test ${CONFIG_FILES+set} = set || CONFIG_FILES=$config_files

Regards
 David


From larsa@sim.no Fri Oct 20 11:59:13 2000
Received: from trh.sim.no ([195.1.220.136] helo=sim.no)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13meZc-00022M-00
	for <autoconf@gnu.org>; Fri, 20 Oct 2000 11:59:12 -0400
Received: (qmail 10438 invoked by uid 2000); 20 Oct 2000 15:59:09 -0000
Date: Fri, 20 Oct 2000 17:59:09 +0200
From: "Lars J. Aas" <larsa@sim.no>
To: David Morgan <dmorgan@symark.com>
Cc: Akim Demaille <akim@epita.fr>, Pavel Roskin <proski@gnu.org>,
  autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
Message-ID: <20001020175909.A10398@sim.no>
Reply-To: larsa@sim.no
References: <Pine.LNX.4.21.0010191856350.19433-100000@woburn.localdomain> <mv44s28vt9a.fsf@nostromo.lrde.epita.fr> <39F067BD.DE7C002E@symark.com> <20001020174556.A10310@sim.no> <39F06B7E.DB74BC12@symark.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <39F06B7E.DB74BC12@symark.com>; from dmorgan@symark.com on Fri, Oct 20, 2000 at 08:57:50AM -0700
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On Fri, Oct 20, 2000 at 08:57:50AM -0700, David Morgan wrote:
: Hi Lars,
: 
: "Lars J. Aas" wrote:
: > 
: > On Fri, Oct 20, 2000 at 08:41:49AM -0700, David Morgan wrote:
: > : > test ${FOO+set} = set || FOO=$foo
: > :
: > : I just tried you proposed change and I get a syntax error from:
: > :
: > : test ${CONFIG_FILES+$config_files} = $config_files || CONFIG_FILES=$config_files
: > 
: > Use "set" verbatim like Akim wrote - don't interpret it as the set of config files...
: > 
: 
: I still get a syntax error with:
: 
: test ${CONFIG_FILES+set} = set || CONFIG_FILES=$config_files

OK, this then:

test s${CONFIG_FILES+et} = set || CONFIG_FILES=$config_files

  Lars J


From dmorgan@symark.com Fri Oct 20 12:07:17 2000
Received: from firewall.symark.westlake.iswest.net ([207.178.203.34] helo=gateway.symark.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13mehR-0002BM-00; Fri, 20 Oct 2000 12:07:17 -0400
Received: (from mailer@localhost)
	by gateway.symark.com (8.9.3/8.9.3) id JAA18664;
	Fri, 20 Oct 2000 09:07:16 -0700
Received: from wombat.symark.com(128.1.1.33) by gateway.symark.com via smap (V2.1+anti-relay+anti-spam)
	id xma018658; Fri, 20 Oct 00 09:06:52 -0700
Message-ID: <39F06E6B.3151A961@symark.com>
Date: Fri, 20 Oct 2000 09:10:19 -0700
From: David Morgan <dmorgan@symark.com>
Organization: Symark Software
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: larsa@sim.no
CC: Akim Demaille <akim@epita.fr>, Pavel Roskin <proski@gnu.org>,
        autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010191856350.19433-100000@woburn.localdomain> <mv44s28vt9a.fsf@nostromo.lrde.epita.fr> <39F067BD.DE7C002E@symark.com> <20001020174556.A10310@sim.no> <39F06B7E.DB74BC12@symark.com> <20001020175909.A10398@sim.no>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hi Lars,

"Lars J. Aas" wrote:
> 
> On Fri, Oct 20, 2000 at 08:57:50AM -0700, David Morgan wrote:
> : Hi Lars,
> :
> : "Lars J. Aas" wrote:
> : >
> : > On Fri, Oct 20, 2000 at 08:41:49AM -0700, David Morgan wrote:
> : > : > test ${FOO+set} = set || FOO=$foo
> : > :
> : > : I just tried you proposed change and I get a syntax error from:
> : > :
> : > : test ${CONFIG_FILES+$config_files} = $config_files || CONFIG_FILES=$config_files
> : >
> : > Use "set" verbatim like Akim wrote - don't interpret it as the set of config files...
> : >
> :
> : I still get a syntax error with:
> :
> : test ${CONFIG_FILES+set} = set || CONFIG_FILES=$config_files
> 
> OK, this then:
> 
> test s${CONFIG_FILES+et} = set || CONFIG_FILES=$config_files
> 
This works !!!!

Regards
 David


From marcof@thyron.com Fri Oct 20 12:28:44 2000
Received: from anchor-post-33.mail.demon.net ([194.217.242.91])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13mf2B-0002a1-00
	for <autoconf@gnu.org>; Fri, 20 Oct 2000 12:28:43 -0400
Received: from thyronuk.demon.co.uk ([158.152.94.41] helo=rs6000)
	by anchor-post-33.mail.demon.net with esmtp (Exim 2.12 #1)
	id 13mf29-000JMu-0X
	for autoconf@gnu.org; Fri, 20 Oct 2000 17:28:42 +0100
Received: from 16.1.1.166 by rs6000 ([16.1.1.1] running VPOP3) with ESMTP for <autoconf@gnu.org>; Fri, 20 Oct 2000 17:24:22 +0100
Received: from localhost (localhost [[UNIX: localhost]])by maidavale.thyron-local (8.9.3/8.9.3) id RAA07772for autoconf@gnu.org; Fri, 20 Oct 2000 17:16:23 +0100
From: Marco Franzen <marcof@thyron.com>
Reply-To: Marco.Franzen@Thyron.com
Organization: Thyron Limited, UK
To: autoconf@gnu.org
Subject: name of m4 executable
Date: Fri, 20 Oct 2000 16:52:53 +0100
X-Mailer: KMail [version 1.0.29.2]
Content-Type: text/plain
MIME-Version: 1.0
Message-Id: <00102017161500.04802@maidavale>
Content-Transfer-Encoding: quoted-printable
X-Server: VPOP3 V1.3.0b - Registered to: Thyron Limited
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Autoconf version 2.13

When I configured autoconf, it looked for GNU m4 under serveral names,
including gm4:
=09checking for gm4... /usr/gnu/bin/gm4
After building and installing autoconf, this information was lost, and th=
e
installed version did not find this very (g)m4. I would have expected the
installed autoconf to either use the (g(nu))m4 it found during its
configuration or to repeat the same search.

I configured and installed m4 1.4  with=20
=09--prefix=3D/usr/gnu --program-prefix=3Dg
and autoconf with
=09--prefix=3D/usr/gnu
(only).

When autoconf was used subsequently
(by a gcc snapshot configured with
=09--prefix=3D/home/marcof/gnu
), it complained
=09Autoconf requires GNU m4 1.1 or later
until I created a symlink from "~/bin/m4" -> "/usr/gnu/bin/gm4".

Both "~/bin" and "/usr/gnu/bin" are in my $PATH.

Cheers,

Marco
-----------------------------------------------------------------
This email is confidential and intended solely for the use of the
individual to whom it is addressed.
Any views or opinions presented are solely those of the author
and do not necessarily represent those of Thyron Limited.
If you are not the intended recipient then please be advised
that you have received this email in error and that any use,
dissemination, forwarding, printing or copying of this email
is strictly prohibited.
If you have received this email in error, please notify the
Thyron IT Administrator on +44 (0)1923 236 050 or
send an email to mail-admin@thyron.com.
Thank You


From Dautrevaux@microprocess.com Fri Oct 20 12:33:03 2000
Received: from [194.206.157.151] (helo=iis000.microdata.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13mf6N-0002c1-00
	for <autoconf@gnu.org>; Fri, 20 Oct 2000 12:33:03 -0400
Received: by IIS000 with Internet Mail Service (5.5.2650.21)
	id <VGY0MX8J>; Fri, 20 Oct 2000 18:22:18 +0200
Message-ID: <17B78BDF120BD411B70100500422FC6309E132@IIS000>
From: Bernard Dautrevaux <Dautrevaux@microprocess.com>
To: autoconf@gnu.org
Subject: RE: Success (mostly) with the testsuite
Date: Fri, 20 Oct 2000 18:22:04 +0200
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

> -----Original Message-----
> From: David Morgan [mailto:dmorgan@symark.com]
> Sent: Friday, October 20, 2000 6:10 PM
> To: larsa@sim.no
> Cc: Akim Demaille; Pavel Roskin; autoconf@gnu.org
> Subject: Re: Success (mostly) with the testsuite
> 
> 
> Hi Lars,
> 
> "Lars J. Aas" wrote:
> > 
> > On Fri, Oct 20, 2000 at 08:57:50AM -0700, David Morgan wrote:
> > : Hi Lars,
> > :
> > : "Lars J. Aas" wrote:
> > : >
> > : > On Fri, Oct 20, 2000 at 08:41:49AM -0700, David Morgan wrote:
> > : > : > test ${FOO+set} = set || FOO=$foo
> > : > :
> > : > : I just tried you proposed change and I get a syntax 
> error from:
> > : > :
> > : > : test ${CONFIG_FILES+$config_files} = $config_files || 
> CONFIG_FILES=$config_files
> > : >
> > : > Use "set" verbatim like Akim wrote - don't interpret it 
> as the set of config files...
> > : >
> > :
> > : I still get a syntax error with:
> > :
> > : test ${CONFIG_FILES+set} = set || CONFIG_FILES=$config_files
> > 
> > OK, this then:
> > 
> > test s${CONFIG_FILES+et} = set || CONFIG_FILES=$config_files
> > 
> This works !!!!

Hi all,

I usually use the following construct, to protect against any kind of value
for FOO, be it empty or starting with a special character:

test X"${FOO+set}" = X"set" || FOO=$foo

I know here FOO is never expanded if it's not unset, so cannot be expanded
as '-', but I also use the same construct as:

test X"${FOO}" = X"something" || FOO=$foo

and I'm so used at typing the X"..." that I type them quite automatically...
also some of the quotes may not be needed (if something is not some thing :)
:) :) ), but it seems more readable that way :-)

Regards,

	Bernard

--------------------------------------------
Bernard Dautrevaux
Microprocess Ingenierie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel:	+33 (0) 1 47 68 80 80
Fax:	+33 (0) 1 47 88 97 85
e-mail:	dautrevaux@microprocess.com
		b.dautrevaux@usa.net
-------------------------------------------- 


From larsa@sim.no Fri Oct 20 12:58:40 2000
Received: from trh.sim.no ([195.1.220.136] helo=sim.no)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13mfV9-00031N-00
	for <autoconf@gnu.org>; Fri, 20 Oct 2000 12:58:40 -0400
Received: (qmail 10646 invoked by uid 2000); 20 Oct 2000 16:58:36 -0000
Date: Fri, 20 Oct 2000 18:58:36 +0200
From: "Lars J. Aas" <larsa@sim.no>
To: Bernard Dautrevaux <Dautrevaux@microprocess.com>
Cc: autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
Message-ID: <20001020185836.A10626@sim.no>
Reply-To: larsa@sim.no
References: <17B78BDF120BD411B70100500422FC6309E132@IIS000>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <17B78BDF120BD411B70100500422FC6309E132@IIS000>; from Dautrevaux@microprocess.com on Fri, Oct 20, 2000 at 06:22:04PM +0200
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On Fri, Oct 20, 2000 at 06:22:04PM +0200, Bernard Dautrevaux wrote:
: > test s${CONFIG_FILES+et} = set || CONFIG_FILES=$config_files
: 
: Hi all,
: 
: I usually use the following construct, to protect against any kind of value
: for FOO, be it empty or starting with a special character:
: 
: test X"${FOO+set}" = X"set" || FOO=$foo

I can appreciate having fixed conventions for things like this, and I
usually do quote on both sides of the =.

Anyways, what would be really cool is to find a LHS expansion that would
either expand to "set" or to "unset" depending on whether the variable was
set or not.  I haven't been able to think of one, though.  Does anyone
know it that could be done?

This trick is kind of cool, but it's the inverse of what I originally
looked for:

if test ${VAR+un}set != unset; then
  # VAR is set
fi

and

if test ${VAR+un}set != set; then
  # VAR is unset
fi

  Lars J


From larsa@sim.no Fri Oct 20 13:04:15 2000
Received: from trh.sim.no ([195.1.220.136] helo=sim.no)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13mfaY-0003Ao-00
	for <autoconf@gnu.org>; Fri, 20 Oct 2000 13:04:14 -0400
Received: (qmail 10686 invoked by uid 2000); 20 Oct 2000 17:04:11 -0000
Date: Fri, 20 Oct 2000 19:04:11 +0200
From: "Lars J. Aas" <larsa@sim.no>
To: Bernard Dautrevaux <Dautrevaux@microprocess.com>
Cc: autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
Message-ID: <20001020190411.A10677@sim.no>
Reply-To: larsa@sim.no
References: <17B78BDF120BD411B70100500422FC6309E132@IIS000> <20001020185836.A10626@sim.no>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <20001020185836.A10626@sim.no>; from larsa@sim.no on Fri, Oct 20, 2000 at 06:58:36PM +0200
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On Fri, Oct 20, 2000 at 06:58:36PM +0200, Lars J. Aas wrote:
: Anyways, what would be really cool is to find a LHS expansion that would
: either expand to "set" or to "unset" depending on whether the variable was
: set or not.  I haven't been able to think of one, though.  Does anyone
: know it that could be done?
: 
: This trick is kind of cool, but it's the inverse of what I originally
: looked for:
: 
: if test ${VAR+un}set != unset; then
:   # VAR is set
: fi
: 
: and
: 
: if test ${VAR+un}set != set; then
:   # VAR is unset
: fi

I'm rambling - it doesn't work...  This works, though, I think :-/

if test not_${VAR+un}set = not_unset; then
  # $VAR is set
fi

  Lars J


From peter_e@gmx.net Fri Oct 20 18:07:19 2000
Received: from mailout00.sul.t-online.com ([194.25.134.16])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13mkJr-0007zb-00
	for <autoconf@gnu.org>; Fri, 20 Oct 2000 18:07:19 -0400
Received: from fmrl01.sul.t-online.de 
	by mailout00.sul.t-online.com with smtp 
	id 13mkJp-0000iQ-00; Sat, 21 Oct 2000 00:07:17 +0200
Received: from peter.localdomain (520083510237-0001@[212.185.245.140]) by fmrl01.sul.t-online.com
	with esmtp id 13mkJo-1DA7pgC; Sat, 21 Oct 2000 00:07:16 +0200
Date: Sat, 21 Oct 2000 00:11:45 +0200 (CEST)
From: Peter Eisentraut <peter_e@gmx.net>
To: autoconf@gnu.org
cc: Akim Demaille <akim@epita.fr>
Subject: Some notes on the portability of Flex
Message-ID: <Pine.LNX.4.21.0010202358240.789-100000@peter.localdomain>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sender: 520083510237-0001@t-dialin.net
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

The documentation now says under AC_PROG_LEX:

: You are encouraged to use Flex in your sources, since it is both
: more pleasant to use than plain Lex, and the C source it produces
: is portable.  But in order to ensure portability, you must either
: provide a function `yywrap', or if you don't use it (i.e., your
: scanner has no `#include'-like feature), simply include a
: `%noyywrap' statement in the scanner's source.  Once this done,
: the scanner is portable (well, unless _you_ felt free to use
: nonportable constructs) and does not depend on any library.  In
: this case, and in this case only, it is suggested that you use
: this Autoconf snippet:
: 
:      AC_PROG_LEX
:      if test "$LEX" != flex; then
:        LEX="$SHELL $missing_dir/missing flex"
:        AC_SUBST(LEX_OUTPUT_ROOT, lex.yy)
:        AC_SUBST(LEXLIB, '')
:      fi

This is confusing.  The wording seems to imply that you should use this
snipped in case you want to ensure portability to plain Lex.  Instead,
this snippet could be used to require Flex rather than plain Lex.

In any case, it's not a good idea to do this.  Some systems ship only
Flex, but only as "lex".  BSD/OS is one.

I've written a macro that detects Flex and Flex only:
<http://www.postgresql.org/cgi/cvsweb.cgi/pgsql/config/programs.m4>.

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/



From proski@gnu.org Fri Oct 20 22:20:50 2000
Received: from user1.channel1.com ([199.1.13.9])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13moHC-0002Uj-00
	for <autoconf@gnu.org>; Fri, 20 Oct 2000 22:20:50 -0400
Received: from xdial36.channel1.com (IDENT:proski@xdial36.channel1.com [205.240.180.36])
	by user1.channel1.com (8.9.3/8.9.3) with ESMTP id WAA27436
	for <autoconf@gnu.org>; Fri, 20 Oct 2000 22:20:49 -0400 (EDT)
X-Envelope-To: 	<autoconf@gnu.org>
Date: Fri, 20 Oct 2000 22:20:06 -0400 (EDT)
From: Pavel Roskin <proski@gnu.org>
X-Sender: proski@woburn.localdomain
To: autoconf@gnu.org
Subject: Bug in bash-1.14.7 causes testsuite failure
Message-ID: <Pine.LNX.4.21.0010201537090.1279-100000@woburn.localdomain>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hello!

I just found that the testsuite fails on stock RedHat 6.2 with Midnight
Commander (!!!) installed in syntax.m4 when testing AC_FUNC_GETLOADAVG.

It appears that bash-1.14.7 (not sure about 7.0, but RedHat 6.2 uses it as
/bin/sh) prints functions in a different way after it encounters some
shell constructs.

For example, this script:

#! /bin/sh
foo()
{
 bar
}
type foo
(
{
:
}
)
type foo

prints:

foo is a function
foo () 
{ 
    bar
}
foo is a function
foo () 
{ 
bar
}

This means that if a macro uses braces inside parentheses the contents of
expout and env-after is different. AC_ENV_SAVE filters out strings that
don't look like variable assignments, but the infamous "mc" function
contains a variable assignment.

The result is a failure in the testsuite. It doesn't indicate any problem
in autoconf itself. I see no clean workaround except filtering out
functions, which could surpass the abilities of egrep and would introduce
more headache than it would eliminate.

In short - ignore failure reports about AC_FUNC_GETLOADAVG from RedHat
users. If it's you, add "unset -f mc" to ~/.bashrc and forget it.

Regards,
Pavel Roskin



From assar@assaris.sics.se Sat Oct 21 03:00:06 2000
Received: from assaris.sics.se ([193.10.66.234])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13msdR-0005Ie-00
	for <autoconf@gnu.org>; Sat, 21 Oct 2000 03:00:05 -0400
Received: (from assar@localhost)
	by assaris.sics.se (8.9.3/8.9.3) id IAA55493;
	Sat, 21 Oct 2000 08:53:59 +0200 (CEST)
	(envelope-from assar)
To: Marco.Franzen@thyron.com
Cc: autoconf@gnu.org
Subject: Re: name of m4 executable
References: <00102017161500.04802@maidavale>
From: Assar Westerlund <assar@sics.se>
Date: 21 Oct 2000 08:53:59 +0200
In-Reply-To: Marco Franzen's message of "Fri, 20 Oct 2000 16:52:53 +0100"
Message-ID: <5lzojy7khk.fsf@assaris.sics.se>
Lines: 27
User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.6
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Marco Franzen <marcof@thyron.com> writes:
> When I configured autoconf, it looked for GNU m4 under serveral names,
> including gm4:
> 	checking for gm4... /usr/gnu/bin/gm4
> After building and installing autoconf, this information was lost, and the
> installed version did not find this very (g)m4.

It should have.  It does code this into the generated autoconf
sh-script:

: ${M4=/usr/gnu/bin/gm4}
: ${AWK=awk}
case "${M4}" in
/*) # Handle the case that m4 has moved since we were configured.
    # It may have been found originally in a build directory.
    test -f "${M4}" || M4=m4 ;;
esac

Where the value of M4 in the first line should be the one that it
found during configure.  Can you check in your installed autoconf
script to see what it says?

The only reason for it not to work, would be that it triggers the code
in the case, namely that the script cannot find the m4 that was found
at configure time.  Can you check if this is the case?

/assar


From oliva@lsd.ic.unicamp.br Sun Oct 22 16:04:06 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13nRLh-0005h4-00; Sun, 22 Oct 2000 16:04:05 -0400
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id e9MK3pq11631;
	Sun, 22 Oct 2000 18:03:51 -0200
To: David Morgan <dmorgan@symark.com>
Cc: larsa@sim.no, Akim Demaille <akim@epita.fr>, Pavel Roskin <proski@gnu.org>,
   autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010191856350.19433-100000@woburn.localdomain>
	<mv44s28vt9a.fsf@nostromo.lrde.epita.fr>
	<39F067BD.DE7C002E@symark.com> <20001020174556.A10310@sim.no>
	<39F06B7E.DB74BC12@symark.com> <20001020175909.A10398@sim.no>
	<39F06E6B.3151A961@symark.com>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 22 Oct 2000 18:03:51 -0200
In-Reply-To: David Morgan's message of "Fri, 20 Oct 2000 09:10:19 -0700"
Message-ID: <orwvf0skwo.fsf@guarana.lsd.ic.unicamp.br>
Lines: 17
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On Oct 20, 2000, David Morgan <dmorgan@symark.com> wrote:

>> test s${CONFIG_FILES+et} = set || CONFIG_FILES=$config_files
>> 
> This works !!!!

How about:

CONFIG_FILES=${CONFIG_FILES-$config_files}

?

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From patricg@fyspc-rp18.uio.no Mon Oct 23 04:25:16 2000
Received: from pat.uio.no ([129.240.130.16])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13ncux-00064f-00; Mon, 23 Oct 2000 04:25:16 -0400
Received: from fyspc-rp18.uio.no ([129.240.87.18])
	by pat.uio.no with esmtp (Exim 2.12 #7)
	id 13ncuv-0003oB-00; Mon, 23 Oct 2000 10:25:13 +0200
Received: from patricg (helo=localhost)
	by fyspc-rp18.uio.no with local-esmtp (Exim 2.12 #1)
	id 13ncuv-0007Us-00; Mon, 23 Oct 2000 10:25:13 +0200
Date: Mon, 23 Oct 2000 10:25:12 +0200 (CEST)
From: Patrick Guio <patrick.guio@fys.uio.no>
X-Sender: patricg@fyspc-rp18.uio.no
To: autoconf@gnu.org, automake@gnu.org, libtool@gnu.org
Subject: More about dependencies...
Message-ID: <Pine.LNX.4.21.0010231015090.10517-100000@fyspc-rp18.uio.no>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Deal all 

I refer to my earlier mails about problem with c++ dependencies. I don't
know whether this is a bug but I found out why I could not make
dependencies tracking working correctly.
My code consists of several directories

~
~/src
~/tests
and so on

~/Makefile.am does not contain so much
~/src is a directory with common c++ headers and source codes  while
~/tests contains source codes to build and test.

When I run automake (-a -c --include-deps --force-missing) 'depcomp' were
installed in ~/src and ~/tests but *not* in ~
And there is the problem: when running configure I always got the messages

checking dependency style of g++... none
checking dependency style of gcc... none

until I manually add a ~/depcomp

Then 

checking dependency style of g++... gcc
checking dependency style of gcc... gcc

Why is a ~/depcomp necessary in ~/ since I don't have any code there?

Sincerely

Patrick Guio



======================================================================
				  Patrick Guio
		    Institute of Physics, University of Oslo
		      P.O. box 1048, Blindern, N-0316 Oslo
	       Tel : (+47) 22 84 40 60 - Fax : (+47) 22 85 56 71
			E-mail : patrick.guio@fys.uio.no 
			  URL : http://www.fys.uio.no



From patricg@fyspc-rp18.uio.no Mon Oct 23 04:47:25 2000
Received: from mons.uio.no ([129.240.130.14])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13ndGO-0006ON-00; Mon, 23 Oct 2000 04:47:24 -0400
Received: from fyspc-rp18.uio.no ([129.240.87.18])
	by mons.uio.no with esmtp (Exim 2.12 #7)
	id 13ndGM-0003Up-00; Mon, 23 Oct 2000 10:47:22 +0200
Received: from patricg (helo=localhost)
	by fyspc-rp18.uio.no with local-esmtp (Exim 2.12 #1)
	id 13ndGM-0002JA-00; Mon, 23 Oct 2000 10:47:22 +0200
Date: Mon, 23 Oct 2000 10:47:21 +0200 (CEST)
From: Patrick Guio <patrick.guio@fys.uio.no>
X-Sender: patricg@fyspc-rp18.uio.no
To: autoconf@gnu.org, automake@gnu.org, libtool@gnu.org
Subject: More dependencies...
Message-ID: <Pine.LNX.4.21.0010231039460.8664-100000@fyspc-rp18.uio.no>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Refering to my earlier mail today,I have a comment about

.cpp.o:
  source='$<' object='$@' libtool=no \
  depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' \
  $(CXXDEPMODE) $(depcomp) \
  $(CXXCOMPILE) -c -o $@ `test -f $< || echo '$(srcdir)/'`$<

The name of the dependency file is connected to the source file, not the
object file, it should maybe better to build the name with the object file
since the object might have been compiled with different defines flags.

In my case I have a list of sources for a library 

MUDDIR = .
UTILSRC = $(MUDDIR)/argparsing.cpp $(MUDDIR)/integrate.cpp
MUDSRC = $(MUDDIR)/init.cpp $(MUDDIR)/lop.cpp $(MUDDIR)/mudfas.cpp\
$(MUDDIR)/prolon.cpp $(MUDDIR)/qnc.cpp $(MUDDIR)/restrict.cpp\
$(MUDDIR)/restrict_ops.cpp $(MUDDIR)/restrictphi.cpp\
$(MUDDIR)/smooth.cpp $(MUDDIR)/smooth_ops.cpp

This library is compiled in 2d (-DDIM=2) and 3d (-DDIM=3)

and I have 

MUD2DOBJ := $(patsubst %.cpp, %2d.o, $(MUDSRC))
MUD3DOBJ := $(patsubst %.cpp, %3d.o, $(MUDSRC))

$(MUD2DOBJ): %2d.o: %.cpp
  source='$<' object='$@' libtool=no \
  depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' \
  $(CXXDEPMODE) $(depcomp) \
  $(CXXCOMPILE) $(INCLUDES) -DDIM=2 -c -o $@ `test -f $< || echo
'$(srcdir)/'`$<
$(MUD3DOBJ): %3d.o: %.cpp
  source='$<' object='$@' libtool=no \
  depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' \
  $(CXXDEPMODE) $(depcomp) \
  $(CXXCOMPILE) $(INCLUDES) -DDIM=3 -c -o $@ `test -f $< || echo
'$(srcdir)/'`$<

But only '$(patsubst %.cpp, %.Po, $(MUDSRC))' are created.

Sincerely

Patrick Guio




From martin@tropos.de Mon Oct 23 06:27:09 2000
Received: from mail.tropos.de ([192.124.254.9])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13neov-0003Fu-00
	for <autoconf@gnu.org>; Mon, 23 Oct 2000 06:27:09 -0400
Received: from whisky.tropos.de (whisky.tropos.de [192.124.254.179])
	by mail.tropos.de (AIX4.3/8.9.3/8.9.3) with ESMTP id MAA13414
	for <autoconf@gnu.org>; Mon, 23 Oct 2000 12:26:29 +0200
Received: from localhost (martin@localhost)
	by whisky.tropos.de (8.9.3/8.9.3) with ESMTP id MAA11139
	for <autoconf@gnu.org>; Mon, 23 Oct 2000 12:27:07 +0200
X-Authentication-Warning: whisky.tropos.de: martin owned process doing -bs
Date: Mon, 23 Oct 2000 12:27:06 +0200 (CEST)
From: Martin Wilck <martin@tropos.de>
To: autoconf@gnu.org
Subject: exit status of conftest program
Message-ID: <Pine.LNX.4.21.0010231224250.11137-100000@whisky.tropos.de>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Is it ok for autoconf tests to create a C test program such as this

if ( <result of some test in C> == <expected result> ) 
   exit (0);
else
   exit (1);

and check the exit status with AC_TRY_RUN, or may this fail on some
systems?

-- 
Martin Wilck <martin@tropos.de>
Institute for Tropospheric Research, Permoserstr. 15, D-04318 Leipzig, Germany
Tel. +49-341-2352151 / Fax +49-341-2352361



From marcof@thyron.com Mon Oct 23 07:28:35 2000
Received: from anchor-post-34.mail.demon.net ([194.217.242.92])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13nfmN-0004KW-00
	for <autoconf@gnu.org>; Mon, 23 Oct 2000 07:28:35 -0400
Received: from thyronuk.demon.co.uk ([158.152.94.41] helo=rs6000)
	by anchor-post-34.mail.demon.net with esmtp (Exim 2.12 #1)
	id 13nfmK-0009DI-0Y; Mon, 23 Oct 2000 12:28:33 +0100
Received: from 16.1.1.166 by rs6000 ([16.1.1.1] running VPOP3) with ESMTP; Mon, 23 Oct 2000 12:19:30 +0100
Received: from localhost (localhost [[UNIX: localhost]])by maidavale.thyron-local (8.9.3/8.9.3) id MAA15014;Mon, 23 Oct 2000 12:10:59 +0100
From: Marco Franzen <marcof@thyron.com>
Reply-To: Marco.Franzen@Thyron.com
Organization: Thyron Limited, UK
To: Assar Westerlund <assar@sics.se>
Subject: Re: name of m4 executable
Date: Mon, 23 Oct 2000 09:49:33 +0100
X-Mailer: KMail [version 1.0.29.2]
Content-Type: text/plain
Cc: autoconf@gnu.org,
    gcc-bugs@gcc.gnu.org
References: <00102017161500.04802@maidavale> <5lzojy7khk.fsf@assaris.sics.se>
In-Reply-To: <5lzojy7khk.fsf@assaris.sics.se>
MIME-Version: 1.0
Message-Id: <00102312101801.04802@maidavale>
Content-Transfer-Encoding: quoted-printable
X-Server: VPOP3 V1.3.0b - Registered to: Thyron Limited
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

[Crossposting to gcc-bugs.=20
Gcc's top-level Makefile invokes sub-makes with M4=3Dm4. This overrides
autoconf's otherwise correct idea of what "m4" it should call.]

On Sat, 21 Oct 2000, Assar Westerlund wrote:
> Marco Franzen <marcof@thyron.com> writes:
> > When I configured autoconf, it looked for GNU m4 under serveral names=
,
> > including gm4:
> > =09checking for gm4... /usr/gnu/bin/gm4
> > After building and installing autoconf, this information was lost, an=
d the
> > installed version did not find this very (g)m4.
>=20
> It should have.  It does code this into the generated autoconf
> sh-script:
>=20
> : ${M4=3D/usr/gnu/bin/gm4}
> : ${AWK=3Dawk}
> case "${M4}" in
> /*) # Handle the case that m4 has moved since we were configured.
>     # It may have been found originally in a build directory.
>     test -f "${M4}" || M4=3Dm4 ;;
> esac
>=20
> Where the value of M4 in the first line should be the one that it
> found during configure.  Can you check in your installed autoconf
> script to see what it says?

Yes, it says exactly that.
=20
> The only reason for it not to work, would be that it triggers the code
> in the case, namely that the script cannot find the m4 that was found
> at configure time.  Can you check if this is the case?

Actually, the reason was different. I would call it a bug in gcc.

The top-level Makefile of gcc apparently tries to override m4 (for
autoconf or for something else) with any other m4 that might be present i=
n
the current build tree. But the default case (no m4 in the tree) hard-cod=
es
overriding with the value `m4' (without the quotes) rather than not
overriding.

The Makefile sets (literally copied from its Makefile.in)
DEFAULT_M4 =3D m4
M4 =3D `if [ -f $$r/m4/m4 ] ; \
        then echo $$r/m4/m4 ; \
        else echo ${DEFAULT_M4} ; fi`

The correct solution would be not to override, but that is not trivial
from a Makefile. It would be easier to set it to the empty string, but th=
at
does not work with the installed autoconf currently doing
=09: ${M4=3D/path/to/known/gnu-m4}
(without a colon before the equals sign).

I was not aware that that override facility existed in autoconf. Is that =
a
documented feature? Did Gcc actually try to use it or does it set the
environment variable for something else than autoconf.

I am not sure if autoconf should be changed. If so, it might ignore the
value of the environment variable if it does not point to GNU m4 (like it
currently checks only later after any overriding) and maybe issue a
warning when it falls back to its configured-in default for this reason.

On gcc's side, it is still wrong to override m4 with a hard-coded value
(other than maybe the empty string if that worked). At the very least, if=
 it
must override it at all, then it should search for suitable m4's at
configuration time the same way autoconf does.

Autoconf could help this if it provided a way of telling its default, lik=
e
`autoconf --print-m4-path' might just say it. But that would not help gcc
testers with existing versions of autoconf.

> /assar

Marco

PS: The only reason why I am using autoconf here at all is that the
published diffs to patch up gcc snapshot tarballs don't always include di=
ffs
for the autoconf-generated files. (The diff from 1002-1009 example lacked
"libstdc++/configure" but changed its "configure.in".) They don't include
diffs for bison-generated files either. My wishlist for that apparent
weekly script would be:

- Get the timestamps in the tarball right, so that testers don't need
  autoconf, bison, etc.=20

- Include changes to generated files in the diffs, and include them *afte=
r*
  the diffs to their sources so that the timestamps after patching are
  right.

The fake script named "missing" does not help if diffs are missing, and i=
t
does not help with wrong timestamps either in some cases because it does
not support the way of invoking bison the way it is invoked by gcc
makefiles.
-----------------------------------------------------------------
This email is confidential and intended solely for the use of the
individual to whom it is addressed.
Any views or opinions presented are solely those of the author
and do not necessarily represent those of Thyron Limited.
If you are not the intended recipient then please be advised
that you have received this email in error and that any use,
dissemination, forwarding, printing or copying of this email
is strictly prohibited.
If you have received this email in error, please notify the
Thyron IT Administrator on +44 (0)1923 236 050 or
send an email to mail-admin@thyron.com.
Thank You


From proski@gnu.org Mon Oct 23 07:30:05 2000
Received: from user1.channel1.com ([199.1.13.9])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13nfno-0004Lm-00
	for <autoconf@gnu.org>; Mon, 23 Oct 2000 07:30:05 -0400
Received: from xdial128.channel1.com (IDENT:proski@xdial128.channel1.com [205.240.180.128])
	by user1.channel1.com (8.9.3/8.9.3) with ESMTP id HAA25549
	for <autoconf@gnu.org>; Mon, 23 Oct 2000 07:30:03 -0400 (EDT)
X-Envelope-To: 	<autoconf@gnu.org>
Date: Mon, 23 Oct 2000 07:29:26 -0400 (EDT)
From: Pavel Roskin <proski@gnu.org>
X-Sender: proski@woburn.localdomain
To: autoconf@gnu.org
Subject: Loop in _AC_COMPUTE_INT_COMPILE
Message-ID: <Pine.LNX.4.21.0010230720130.6258-100000@woburn.localdomain>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hello!

The easiest way to reproduce the endless loop in the testsuite on HP-UX 
10.20 without GCC is:

AC_INIT
_AC_COMPUTE_INT_COMPILE(foo, ac_foo)
AC_OUTPUT

I don't remember what exactly the bundled compiler didn't like in the
expression that Autoconf wanted it to compile. I assume that compile-time
calculations is something that HP supports only in the separately
sold ANSI C compiler.

Anyway, configure should have failed gracefully instead of going to the
endless loop.

Regards,
Pavel Roskin



From larsa@sim.no Mon Oct 23 08:43:15 2000
Received: from trh.sim.no ([195.1.220.136] helo=sim.no)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13ngwc-0005Vg-00
	for <autoconf@gnu.org>; Mon, 23 Oct 2000 08:43:15 -0400
Received: (qmail 27410 invoked by uid 2000); 23 Oct 2000 12:43:11 -0000
Date: Mon, 23 Oct 2000 14:43:11 +0200
From: "Lars J. Aas" <larsa@sim.no>
To: autoconf@gnu.org
Subject: manually setting up aclocal.m4
Message-ID: <20001023144311.A27124@sim.no>
Reply-To: larsa@sim.no
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

I've tried to set up aclocal.m4 to just m4_include the necessary
macro files, but I don't want to write explicit paths to the files
in /usr/local/share/aclocal/, and I can't get autoconf to make m4
search in that directory automatically.  Any hints?

  Lars J


From dave@straylight.org Mon Oct 23 11:38:06 2000
Received: from smtp10.atl.mindspring.net ([207.69.200.246])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13njfp-0008HK-00
	for <autoconf@gnu.org>; Mon, 23 Oct 2000 11:38:06 -0400
Received: from straylight.org (pool-63.53.112.175.nwrk.grid.net [63.53.112.175])
	by smtp10.atl.mindspring.net (8.9.3/8.8.5) with ESMTP id LAA08576
	for <autoconf@gnu.org>; Mon, 23 Oct 2000 11:37:53 -0400 (EDT)
Message-ID: <39F45B3F.67498AF9@straylight.org>
Date: Mon, 23 Oct 2000 11:37:35 -0400
From: David Andrew Michael Noelle <dave@straylight.org>
Organization: the Villa Straylight
X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.16 i586)
X-Accept-Language: en
MIME-Version: 1.0
To: autoconf@gnu.org
Subject: No, I *don't* HAVE_IO_H!
References: <20001023144311.A27124@sim.no>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

I'm not entirely certain this is the right forum for this message,
because I don't know where this problem is coming from.  Lately (and I
don't recall exactly when it started) I've been having a great deal of
trouble compiling things because the configure scripts keep defining
"HAVE_" macros for things that I'm quite certain, and locate easily
confirms, do not exist anywhere on my system.  More often than not, I
have to manually edit the "config.h" file to change things like 

#define HAVE_IO_H 1

to

#undef HAVE_IO_H

for each #included file that shouldn't be, then restart make until it
stops at the next one.

BTW: I'm using Slackware 7.1 with Linux 2.2.16 and gcc version
egcs-2.91.66 (egcs-1.1.2 release) so there really shouldn't be any
WIN\DOS header files for configure to find.

Can anyone tell me what might cause this?  What can I check and what can
I do to fix it?  Re-installing/upgrading autoconf, automake, and make
didn't help.  In fact, I re-installed the whole Slackware "d1"
development set, just to be sure I wasn't getting things out of sync by
upgrading one at a time.  That didn't seem to have any effect on this
problem.

-- 
            -Dave Noelle,                 dave@Straylight.org
            -the Villa Straylight,  http://www.straylight.org
Coalition Against Unsolicited Commercial Email  ==  http://www.cauce.com

Disclaimer: The preceding message, including this segment that purports
to be a disclaimer, is merely a stream of white noise generated
randomly by a power surge.  The fact that it may appear to be readable
text when interpreted by certain programs is entirely coincidental,
and is in fact much more likely than monkeys producing the script for
Hamlet, given that power surges tend to occur much more frequently
than any of the sequences of events that might lead to vast numbers of
simians having both access to typewriters and motivation to use them.


From harinath@cs.umn.edu Mon Oct 23 12:23:26 2000
Received: from mail.cs.umn.edu ([128.101.34.200])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13nkNg-0000zH-00; Mon, 23 Oct 2000 12:23:25 -0400
Received: from han.cs.umn.edu (IDENT:root@han.cs.umn.edu [128.101.35.134])
	by mail.cs.umn.edu (8.9.3/8.9.3) with ESMTP id LAA07225;
	Mon, 23 Oct 2000 11:23:12 -0500 (CDT)
Received: (from harinath@localhost)
	by han.cs.umn.edu (8.9.3/8.9.0) id LAA23944;
	Mon, 23 Oct 2000 11:23:12 -0500
X-Authentication-Warning: han.cs.umn.edu: harinath set sender to harinath@cs.umn.edu using -f
To: Patrick Guio <patrick.guio@fys.uio.no>
Cc: autoconf@gnu.org, automake@gnu.org, libtool@gnu.org
Subject: Re: More about dependencies...
References: <Pine.LNX.4.21.0010231015090.10517-100000@fyspc-rp18.uio.no>
Content-Type: text/plain; charset=us-ascii
From: Raja R Harinath <harinath@cs.umn.edu>
Date: 23 Oct 2000 11:23:11 -0500
In-Reply-To: <Pine.LNX.4.21.0010231015090.10517-100000@fyspc-rp18.uio.no>
Message-ID: <d97l6z5xxs.fsf@han.cs.umn.edu>
Lines: 40
User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7
MIME-Version: 1.0
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Patrick Guio <patrick.guio@fys.uio.no> writes:
> I refer to my earlier mails about problem with c++ dependencies. I don't
> know whether this is a bug but I found out why I could not make
> dependencies tracking working correctly.
> My code consists of several directories
> 
> ~
> ~/src
> ~/tests
> and so on
> 
> ~/Makefile.am does not contain so much
> ~/src is a directory with common c++ headers and source codes  while
> ~/tests contains source codes to build and test.
> 
> When I run automake (-a -c --include-deps --force-missing) 'depcomp' were
> installed in ~/src and ~/tests but *not* in ~
> And there is the problem: when running configure I always got the messages
> 
> checking dependency style of g++... none
> checking dependency style of gcc... none
> 
> until I manually add a ~/depcomp
> 
> Then 
> 
> checking dependency style of g++... gcc
> checking dependency style of gcc... gcc
> 
> Why is a ~/depcomp necessary in ~/ since I don't have any code there?

Actually it is needed only there, and not in the source directories.
You just need one copy of the script per tree.  'automake' appears to
be buggy.

- Hari
-- 
Raja R Harinath ------------------------------ harinath@cs.umn.edu
"When all else fails, read the instructions."      -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing."   -- Roy L Ash


From akim@epita.fr Mon Oct 23 14:14:46 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13nm7S-0003IQ-00; Mon, 23 Oct 2000 14:14:46 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id UAA02835
	Mon, 23 Oct 2000 20:13:29 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13no8q-0005xD-00; Mon, 23 Oct 2000 20:24:20 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13nm8V-0002O6-00; Mon, 23 Oct 2000 20:15:51 +0200
To: David Morgan <dmorgan@symark.com>
Cc: Pavel Roskin <proski@gnu.org>, autoconf@gnu.org, Harlan.Stenn@pfcs.com
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010191856350.19433-100000@woburn.localdomain>
	<39F065A7.CFD5163A@symark.com>
From: Akim Demaille <akim@epita.fr>
Date: 23 Oct 2000 20:15:51 +0200
In-Reply-To: David Morgan's message of "Fri, 20 Oct 2000 08:32:55 -0700"
Message-ID: <mv4em17a0fc.fsf@nostromo.lrde.epita.fr>
Lines: 20
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

--=-=-=


As far as I'm concerned, I'm lost.  I'm no longer sure your problem is
really related to ${FOO=$bar}, or, more precisely, that it is *only*
related to this.

This debate already partly happened, see `config.status is broken
under Ultrix' on

        http://sources.redhat.com/ml/autoconf/2000-01/threads.html

Unfortunately, a lot of messages seem to be missing, and moreover
Harlan and I exchanged several private messages about this :(  I lost
track of the precise diagnostic.

Harlan, do you still have an Ultrix handy?  In that case, how does the
following script behave?  David, could you run it too?


--=-=-=
Content-Type: application/x-sh
Content-Disposition: attachment; filename=test.sh

#! /bin/sh -x

nl="
"
tab="	"
space=" "

IFS="$space$tab"

foo="One line"
bar="Two
lines"

echo Direct use

for i in $foo
do
  echo "{$i}"
done

for i in $bar
do
  echo "{$i}"
done

echo
echo Indirect Use with Quotes

: ${foo1="$foo"}
: ${bar1="$bar"}

for i in $foo1
do
  echo "{$i}"
done

for i in $bar1
do
  echo "{$i}"
done

echo
echo Indirect Use without Quotes

: ${foo2=$foo}
: ${bar2=$bar}

for i in $foo2
do
  echo "{$i}"
done

for i in $bar2
do
  echo "{$i}"
done

echo
echo "NL in IFS"

IFS="$space$tab$nl"

echo
echo Direct use

for i in $foo
do
  echo "{$i}"
done

for i in $bar
do
  echo "{$i}"
done

echo
echo Indirect Use with Quotes

: ${foo3="$foo"}
: ${bar3="$bar"}

for i in $foo3
do
  echo "{$i}"
done

for i in $bar3
do
  echo "{$i}"
done

echo
echo Indirect Use without Quotes

: ${foo4=$foo}
: ${bar4=$bar}

for i in $foo4
do
  echo "{$i}"
done

for i in $bar4
do
  echo "{$i}"
done

--=-=-=--


From proski@gnu.org Mon Oct 23 14:23:33 2000
Received: from grace.speakeasy.org ([216.254.0.2])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13nmFx-0003O1-00
	for <autoconf@gnu.org>; Mon, 23 Oct 2000 14:23:33 -0400
Received: (qmail 745 invoked by uid 24233); 23 Oct 2000 18:23:32 -0000
Received: from localhost (sendmail-bs@127.0.0.1)
  by localhost with SMTP; 23 Oct 2000 18:23:32 -0000
Date: Mon, 23 Oct 2000 11:23:32 -0700 (PDT)
From: Pavel Roskin <proski@gnu.org>
X-Sender: proski@grace.speakeasy.org
To: Akim Demaille <akim@epita.fr>
cc: David Morgan <dmorgan@symark.com>, "autoconf@gnu.org" <autoconf@gnu.org>, 
    "Harlan.Stenn@pfcs.com" <Harlan.Stenn@pfcs.com>
Subject: Re: Success (mostly) with the testsuite
In-Reply-To: <mv4em17a0fc.fsf@nostromo.lrde.epita.fr>
Message-ID: <Pine.LNX.4.21.0010231116180.27428-100000@grace.speakeasy.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hello, Akim!

> As far as I'm concerned, I'm lost.  I'm no longer sure your problem is
> really related to ${FOO=$bar}, or, more precisely, that it is *only*
> related to this.

I installed QNX currently distributed from the QNX site (uname -r shows 6.00)
and I couldn't reproduce the problem with ${FOO=$bar}

However, I haven't tested Autoconf yet. I hope to do it this evening.

In the meantime please don't fix things that are possibly not broken.

Regards,
Pavel Roskin



From akim@epita.fr Mon Oct 23 14:31:44 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13nmNs-0003UJ-00; Mon, 23 Oct 2000 14:31:44 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id UAA03970
	Mon, 23 Oct 2000 20:32:39 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13noRO-00061U-00; Mon, 23 Oct 2000 20:43:30 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13nmR2-0002VU-00; Mon, 23 Oct 2000 20:35:00 +0200
To: Pavel Roskin <proski@gnu.org>
Cc: David Morgan <dmorgan@symark.com>, "autoconf@gnu.org" <autoconf@gnu.org>,
        "Harlan.Stenn@pfcs.com" <Harlan.Stenn@pfcs.com>
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010231116180.27428-100000@grace.speakeasy.org>
From: Akim Demaille <akim@epita.fr>
Date: 23 Oct 2000 20:35:00 +0200
In-Reply-To: Pavel Roskin's message of "Mon, 23 Oct 2000 11:23:32 -0700 (PDT)"
Message-ID: <mv4aebv9zjf.fsf@nostromo.lrde.epita.fr>
Lines: 14
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "Pavel" == Pavel Roskin <proski@gnu.org> writes:

Pavel> I installed QNX currently distributed from the QNX site (uname
Pavel> -r shows 6.00) and I couldn't reproduce the problem with
Pavel> ${FOO=$bar}

You're impressive!  Your testing is incredibly conscientious, and
therefore precious.  Thanks!  (this thanks is coming from a user of
Autoconf who is happy to know it's tested under high pressure).

Pavel> In the meantime please don't fix things that are possibly not
Pavel> broken.

I sure won't :)


From akim@epita.fr Mon Oct 23 14:31:53 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13nmO0-0003UT-00; Mon, 23 Oct 2000 14:31:52 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id UAA03973
	Mon, 23 Oct 2000 20:32:39 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13nnkq-0005rT-00; Mon, 23 Oct 2000 19:59:32 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13nlkW-0002Ip-00; Mon, 23 Oct 2000 19:51:04 +0200
To: David Morgan <dmorgan@symark.com>
Cc: larsa@sim.no, Pavel Roskin <proski@gnu.org>, autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010191856350.19433-100000@woburn.localdomain>
	<mv44s28vt9a.fsf@nostromo.lrde.epita.fr>
	<39F067BD.DE7C002E@symark.com> <20001020174556.A10310@sim.no>
	<39F06B7E.DB74BC12@symark.com> <20001020175909.A10398@sim.no>
	<39F06E6B.3151A961@symark.com>
From: Akim Demaille <akim@epita.fr>
Date: 23 Oct 2000 19:51:04 +0200
In-Reply-To: David Morgan's message of "Fri, 20 Oct 2000 09:10:19 -0700"
Message-ID: <mv4itqja1kn.fsf@nostromo.lrde.epita.fr>
Lines: 10
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "David" == David Morgan <dmorgan@symark.com> writes:

>> 
>> test s${CONFIG_FILES+et} = set || CONFIG_FILES=$config_files

Yes, sorry I forgot to include the quotes.  I really meant this:

test "${FOO+set}" = set

which is used all over Autoconf.  There is no reason to change this.


From proski@gnu.org Tue Oct 24 02:19:04 2000
Received: from user1.channel1.com ([199.1.13.9])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13nxQO-0008V1-00
	for <autoconf@gnu.org>; Tue, 24 Oct 2000 02:19:04 -0400
Received: from xdial26.channel1.com (IDENT:proski@xdial26.channel1.com [205.240.180.26])
	by user1.channel1.com (8.9.3/8.9.3) with ESMTP id CAA18129
	for <autoconf@gnu.org>; Tue, 24 Oct 2000 02:19:02 -0400 (EDT)
X-Envelope-To: 	<autoconf@gnu.org>
Date: Tue, 24 Oct 2000 02:18:19 -0400 (EDT)
From: Pavel Roskin <proski@gnu.org>
X-Sender: proski@woburn.localdomain
To: autoconf@gnu.org
Subject: FreeBSD and QNX - first results
Message-ID: <Pine.LNX.4.21.0010240156020.735-100000@woburn.localdomain>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hello!

One thing was broken recently:

/bin/sh -n autoconf

doesn't work on FreeBSD and QNX if autoconf is not in the current
directory. This patch should probably be reverted, at least partially:

2000-10-23  Akim Demaille  <akim@epita.fr>

        * tests/tools.m4: Globally, don't use `../' to invoke the tested
        tools, since the PATH is properly set, and in most cases it
        obfuscates the test code.

Also FreeBSD comes with its own sed that doesn't work with autoupdate. I
think we should change autoupdate to use perl instead of relying on GNU
sed. By the way, that "\b" seems to be undocumented - "info sed" for
sed-3.02 says nothing about it.

It should be fair to require perl - it is already required by autoscan, it
eliminates the need of having two sed's (not everybody will replace
/bin/sed) and it simplifies the dependencies between GNU utilities (thus
eliminating some confusion).

The testsuite is supposed to ignore the failures caused by a non-GNU sed
but it probably doesn't (I haven't investigated it yet).

On the positive side, I could configure CVS Autoconf on QNX 6.0 without
any problems. All the makefiles are created. I haven't tried older
versions of QNX - there is enough work with 6.0.

Regards,
Pavel Roskin



From akim@epita.fr Tue Oct 24 04:19:56 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13nzJI-0001Z0-00; Tue, 24 Oct 2000 04:19:53 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id KAA03577
	Tue, 24 Oct 2000 10:20:47 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13o1Mv-0007Kp-00; Tue, 24 Oct 2000 10:31:45 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13nzMA-0001SW-00; Tue, 24 Oct 2000 10:22:50 +0200
To: Pavel Roskin <proski@gnu.org>
Cc: autoconf@gnu.org
Subject: Re: FreeBSD and QNX - first results
References: <Pine.LNX.4.21.0010240156020.735-100000@woburn.localdomain>
From: Akim Demaille <akim@epita.fr>
Date: 24 Oct 2000 10:22:50 +0200
In-Reply-To: Pavel Roskin's message of "Tue, 24 Oct 2000 02:18:19 -0400 (EDT)"
Message-ID: <mv4y9ze7in9.fsf@nostromo.lrde.epita.fr>
Lines: 39
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

| Hello!
| One thing was broken recently:
| 
| /bin/sh -n autoconf
| 
| doesn't work on FreeBSD and QNX if autoconf is not in the current
| directory. 

No kidding!?!  That's only with `-n' or any `sh autoconf' will fail?

| This patch should probably be reverted, at least partially:

I'm taking care of this, thanks!


| Also FreeBSD comes with its own sed that doesn't work with autoupdate. I
| think we should change autoupdate to use perl instead of relying on GNU
| sed. By the way, that "\b" seems to be undocumented - "info sed" for
| sed-3.02 says nothing about it.

Anyway GNU Sed documentation doesn't document its regex.  But since
it's atop regex, and won't use rx in the future, that's a safe
assumption.

Still, I agree rewriting autoupdate in some other language would be
fine.  I'd suggest waiting for 2.51.


| The testsuite is supposed to ignore the failures caused by a non-GNU sed
| but it probably doesn't (I haven't investigated it yet).

It does ignore them.

| On the positive side, I could configure CVS Autoconf on QNX 6.0 without
| any problems. All the makefiles are created. I haven't tried older
| versions of QNX - there is enough work with 6.0.

Good to know, thanks Pavel!


From Andrej.Borsenkow@mow.siemens.ru Tue Oct 24 04:39:10 2000
Received: from david.siemens.de ([192.35.17.14])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13nzby-0001jX-00
	for <autoconf@gnu.org>; Tue, 24 Oct 2000 04:39:10 -0400
X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer david.siemens.de)
Received: from mail3.siemens.de (mail3.siemens.de [139.25.208.14])
	by david.siemens.de (8.11.0/8.11.0) with ESMTP id e9O8d8u10518
	for <autoconf@gnu.org>; Tue, 24 Oct 2000 10:39:08 +0200 (MET DST)
Received: from MOWD019A.mow.siemens.ru ([139.24.18.3])
	by mail3.siemens.de (8.11.0/8.11.0) with ESMTP id e9O8d7920731858
	for <autoconf@gnu.org>; Tue, 24 Oct 2000 10:39:08 +0200 (MEST)
Received: from mw1g17c (mw1g17c.mow.siemens.ru [149.202.201.33]) by MOWD019A.mow.siemens.ru with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21)
	id VPVQY0KL; Tue, 24 Oct 2000 12:45:02 +0400
From: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>
To: <autoconf@gnu.org>
Subject: autoupdate requires GNU sed
Date: Tue, 24 Oct 2000 12:39:07 +0400
Message-ID: <000901c03d95$df352f40$21c9ca95@mow.siemens.ru>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="koi8-r"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

bor@itsrm2% ./autoupdate --help
autoupdate requires GNU sed

Just curious, what are the reasons behind it? This is with current CVS.

cheers

-andrej

Have a nice DOS!
B >> 


From akim@epita.fr Tue Oct 24 05:06:50 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13o02k-00023I-00
	for <autoconf@gnu.org>; Tue, 24 Oct 2000 05:06:50 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id LAA06737
	Tue, 24 Oct 2000 11:03:40 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13o22Q-0007Wo-00; Tue, 24 Oct 2000 11:14:38 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13o01d-0001vt-00; Tue, 24 Oct 2000 11:05:41 +0200
To: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>
Cc: <autoconf@gnu.org>
Subject: Re: autoupdate requires GNU sed
References: <000901c03d95$df352f40$21c9ca95@mow.siemens.ru>
From: Akim Demaille <akim@epita.fr>
Date: 24 Oct 2000 11:05:41 +0200
In-Reply-To: "Andrej Borsenkow"'s message of "Tue, 24 Oct 2000 12:39:07 +0400"
Message-ID: <mv4u2a27gnu.fsf@nostromo.lrde.epita.fr>
Lines: 12
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "Andrej" == Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru> writes:

Andrej> bor@itsrm2% ./autoupdate --help autoupdate requires GNU sed

Andrej> Just curious, what are the reasons behind it? This is with
Andrej> current CVS.

It uses regexps that are not supported by other seds, which is just
one aspect of the problem, the second being that it uses a long script
on which pretty many seds will choke.  Since it's a maintainer tool,
there is no reason to fight for portability.  In addition it would
obfuscate the code.


From Andrej.Borsenkow@mow.siemens.ru Tue Oct 24 05:12:31 2000
Received: from goliath.siemens.de ([194.138.37.131])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13o08F-0002Dl-00
	for <autoconf@gnu.org>; Tue, 24 Oct 2000 05:12:31 -0400
X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer goliath.siemens.de)
Received: from mail3.siemens.de (mail3.siemens.de [139.25.208.14])
	by goliath.siemens.de (8.11.0/8.11.0) with ESMTP id e9O9CPl04804;
	Tue, 24 Oct 2000 11:12:25 +0200 (MET DST)
Received: from MOWD019A.mow.siemens.ru ([139.24.18.3])
	by mail3.siemens.de (8.11.0/8.11.0) with ESMTP id e9O9CO920750284;
	Tue, 24 Oct 2000 11:12:24 +0200 (MEST)
Received: from mw1g17c (mw1g17c.mow.siemens.ru [149.202.201.33]) by MOWD019A.mow.siemens.ru with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21)
	id VPVQY0QV; Tue, 24 Oct 2000 13:18:18 +0400
From: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>
To: "Akim Demaille" <akim@epita.fr>
Cc: <autoconf@gnu.org>
Subject: RE: autoupdate requires GNU sed
Date: Tue, 24 Oct 2000 13:12:23 +0400
Message-ID: <000c01c03d9a$853b2e40$21c9ca95@mow.siemens.ru>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
Importance: Normal
In-reply-to: <mv4u2a27gnu.fsf@nostromo.lrde.epita.fr>
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

> >>>>> "Andrej" == Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru> writes:
>
> Andrej> bor@itsrm2% ./autoupdate --help autoupdate requires GNU sed
>
> Andrej> Just curious, what are the reasons behind it? This is with
> Andrej> current CVS.
>
> It uses regexps that are not supported by other seds, which is just
> one aspect of the problem, the second being that it uses a long script
> on which pretty many seds will choke.  Since it's a maintainer tool,
> there is no reason to fight for portability.  In addition it would
> obfuscate the code.
>
>

1. Currently, it prevents me (and everybody without GNU sed) from making
autoconf:

gmake[1]: Entering directory `/u3/u1/build/autoconf/man'
Updating man page autoupdate.1
help2man: can't get `--help' info from ../autoupdate
gmake[1]: *** [autoupdate.1] Error 77
gmake[1]: Leaving directory `/u3/u1/build/autoconf/man'
gmake: *** [all-recursive] Error 1

If it optional tool, make should ignore this error

2. I've installed GNU sed as gsed, but autoconf's confgiure does not even try
to find it. It still finds GNU m4 as gm4 :-)

Well, the 2 is optional, but 1 needs to be resolved?

cheers

-andrej



From akim@epita.fr Tue Oct 24 05:33:41 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13o0Sj-0002P2-00
	for <autoconf@gnu.org>; Tue, 24 Oct 2000 05:33:41 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id LAA08954
	Tue, 24 Oct 2000 11:30:51 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13o2Sj-0007nG-00; Tue, 24 Oct 2000 11:41:49 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13o0Rw-00026x-00; Tue, 24 Oct 2000 11:32:52 +0200
To: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>
Cc: <autoconf@gnu.org>
Subject: Re: autoupdate requires GNU sed
References: <000c01c03d9a$853b2e40$21c9ca95@mow.siemens.ru>
From: Akim Demaille <akim@epita.fr>
Date: 24 Oct 2000 11:32:52 +0200
In-Reply-To: "Andrej Borsenkow"'s message of "Tue, 24 Oct 2000 13:12:23 +0400"
Message-ID: <mv4og0a7fej.fsf@nostromo.lrde.epita.fr>
Lines: 12
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "Andrej" == Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru> writes:

Andrej> 1. Currently, it prevents me (and everybody without GNU sed)
Andrej> from making autoconf:

That's a bug in CVS.  Run touch man/autoupdate.1.


Andrej> 2. I've installed GNU sed as gsed, but autoconf's confgiure
Andrej> does not even try to find it. It still finds GNU m4 as gm4 :-)

export SED=/usr/local/bin/sed.


From akim@epita.fr Tue Oct 24 05:34:41 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13o0Tg-0002SJ-00
	for <autoconf@gnu.org>; Tue, 24 Oct 2000 05:34:41 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id LAA09037
	Tue, 24 Oct 2000 11:31:37 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13o2TU-0007nq-00; Tue, 24 Oct 2000 11:42:36 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13o0Sh-000277-00; Tue, 24 Oct 2000 11:33:39 +0200
To: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>
Cc: <autoconf@gnu.org>
Subject: Re: autoupdate requires GNU sed
References: <000c01c03d9a$853b2e40$21c9ca95@mow.siemens.ru>
From: Akim Demaille <akim@epita.fr>
Date: 24 Oct 2000 11:33:39 +0200
In-Reply-To: "Andrej Borsenkow"'s message of "Tue, 24 Oct 2000 13:12:23 +0400"
Message-ID: <mv4k8ay7fd8.fsf@nostromo.lrde.epita.fr>
Lines: 7
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "Andrej" == Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru> writes:

Andrej> 1. Currently, it prevents me (and everybody without GNU sed)
Andrej> from making autoconf:

Admittedly `autoupdate --help/--version' should not fail when GNU Sed
is not installed.  I'll fix that.


From akim@epita.fr Tue Oct 24 05:51:49 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13o0kH-0002jT-00
	for <autoconf@gnu.org>; Tue, 24 Oct 2000 05:51:49 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id LAA10444
	Tue, 24 Oct 2000 11:48:38 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13o2jw-0007tt-00; Tue, 24 Oct 2000 11:59:36 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13o0j8-0002BD-00; Tue, 24 Oct 2000 11:50:38 +0200
To: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>
Cc: <autoconf@gnu.org>
Subject: Re: autoupdate requires GNU sed
References: <000c01c03d9a$853b2e40$21c9ca95@mow.siemens.ru>
	<mv4k8ay7fd8.fsf@nostromo.lrde.epita.fr>
From: Akim Demaille <akim@epita.fr>
Date: 24 Oct 2000 11:50:38 +0200
In-Reply-To: Akim Demaille's message of "24 Oct 2000 11:33:39 +0200"
Message-ID: <mv48zre7ekx.fsf@nostromo.lrde.epita.fr>
Lines: 7
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "Akim" == Akim Demaille <akim@epita.fr> writes:

Akim> Admittedly `autoupdate --help/--version' should not fail when
Akim> GNU Sed is not installed.  I'll fix that.

Actually this would put hair in autoupdate, maybe we don't really need
that.


From oliva@lsd.ic.unicamp.br Tue Oct 24 07:25:53 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13o2DH-0008EB-00
	for <autoconf@gnu.org>; Tue, 24 Oct 2000 07:25:52 -0400
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id e9O3Swg06563;
	Tue, 24 Oct 2000 01:28:58 -0200
To: David Andrew Michael Noelle <dave@straylight.org>
Cc: autoconf@gnu.org
Subject: Re: No, I *don't* HAVE_IO_H!
References: <20001023144311.A27124@sim.no> <39F45B3F.67498AF9@straylight.org>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 24 Oct 2000 01:28:58 -0200
In-Reply-To: David Andrew Michael Noelle's message of "Mon, 23 Oct 2000 11:37:35 -0400"
Message-ID: <orpukqnchx.fsf@guarana.lsd.ic.unicamp.br>
Lines: 11
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On Oct 23, 2000, David Andrew Michael Noelle <dave@straylight.org> wrote:

> Can anyone tell me what might cause this?

A config.cache or config.site that incorrectly sets cache variables.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From dmorgan@symark.com Tue Oct 24 11:00:13 2000
Received: from firewall.symark.westlake.iswest.net ([207.178.203.34] helo=gateway.symark.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13o5Yi-0002kz-00; Tue, 24 Oct 2000 11:00:12 -0400
Received: (from mailer@localhost)
	by gateway.symark.com (8.9.3/8.9.3) id IAA13078;
	Tue, 24 Oct 2000 08:00:10 -0700
Received: from wombat.symark.com(128.1.1.33) by gateway.symark.com via smap (V2.1+anti-relay+anti-spam)
	id xma013063; Tue, 24 Oct 00 07:59:45 -0700
Message-ID: <39F5A4B3.B1CA2ACE@symark.com>
Date: Tue, 24 Oct 2000 08:03:15 -0700
From: David Morgan <dmorgan@symark.com>
Organization: Symark Software
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
CC: larsa@sim.no, Akim Demaille <akim@epita.fr>, Pavel Roskin <proski@gnu.org>,
        autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010191856350.19433-100000@woburn.localdomain>
		<mv44s28vt9a.fsf@nostromo.lrde.epita.fr>
		<39F067BD.DE7C002E@symark.com> <20001020174556.A10310@sim.no>
		<39F06B7E.DB74BC12@symark.com> <20001020175909.A10398@sim.no>
		<39F06E6B.3151A961@symark.com> <orwvf0skwo.fsf@guarana.lsd.ic.unicamp.br>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hi,

Sorry for the delay in replying, I've been out of the office for a day.

This proposal does work.

Regards
 David

Alexandre Oliva wrote:
> 
> On Oct 20, 2000, David Morgan <dmorgan@symark.com> wrote:
> 
> >> test s${CONFIG_FILES+et} = set || CONFIG_FILES=$config_files
> >>
> > This works !!!!
> 
> How about:
> 
> CONFIG_FILES=${CONFIG_FILES-$config_files}
> 
> ?
> 
> --
> Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
> Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
> CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
> Free Software Evangelist    *Please* write to mailing lists, not to me


From proski@gnu.org Tue Oct 24 11:05:33 2000
Received: from lolita.speakeasy.net ([216.254.0.13])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13o5dt-0002o3-00
	for <autoconf@gnu.org>; Tue, 24 Oct 2000 11:05:33 -0400
Received: (qmail 25732 invoked from network); 24 Oct 2000 15:03:11 -0000
Received: from unknown (HELO gonzo.speakeasy.net) (192.168.0.5)
  by 192.168.0.13 with SMTP; 24 Oct 2000 15:03:11 -0000
Received: (qmail 23999 invoked from network); 24 Oct 2000 15:05:18 -0000
Received: from unknown (HELO fonzie.nine.com) (12.38.119.2)
  by gonzo.speakeasy.net with SMTP; 24 Oct 2000 15:05:18 -0000
Date: Tue, 24 Oct 2000 11:15:47 -0400 (EDT)
From: Pavel Roskin <proski@gnu.org>
X-Sender: proski@fonzie.nine.com
To: Akim Demaille <akim@epita.fr>
cc: autoconf@gnu.org
Subject: Re: FreeBSD and QNX - first results
In-Reply-To: <mv4y9ze7in9.fsf@nostromo.lrde.epita.fr>
Message-ID: <Pine.LNX.4.21.0010241107490.3807-100000@fonzie.nine.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hello, Akim!

> | Hello!
> | One thing was broken recently:
> | 
> | /bin/sh -n autoconf
> | 
> | doesn't work on FreeBSD and QNX if autoconf is not in the current
> | directory. 
> 
> No kidding!?!  That's only with `-n' or any `sh autoconf' will fail?

Any "sh autoconf":

[proski@fonzie proski]$ ash autoconf
autoconf: Can't open autoconf
[proski@fonzie proski]$ bash autoconf
autoconf: configure.in: No such file or directory
[proski@fonzie proski]$

> | Also FreeBSD comes with its own sed that doesn't work with autoupdate. I
> | think we should change autoupdate to use perl instead of relying on GNU
> | sed. By the way, that "\b" seems to be undocumented - "info sed" for
> | sed-3.02 says nothing about it.
> 
> Anyway GNU Sed documentation doesn't document its regex.  But since
> it's atop regex, and won't use rx in the future, that's a safe
> assumption.

If GNU regex is not documented in "info sed" then "\b" is an undocumented
feature. At least from a very strict point of view.

> Still, I agree rewriting autoupdate in some other language would be
> fine.  I'd suggest waiting for 2.51.

The problem is that requiring GNU sed for autoupdate is essentially
requiring GNU sed for the testsuite which means not testing other sed's

> | The testsuite is supposed to ignore the failures caused by a non-GNU sed
> | but it probably doesn't (I haven't investigated it yet).
> 
> It does ignore them.

Then something else must be failing. I'll have a closer look.

Regards,
Pavel Roskin



From dmorgan@symark.com Tue Oct 24 11:25:59 2000
Received: from firewall.symark.westlake.iswest.net ([207.178.203.34] helo=gateway.symark.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13o5xf-0003A8-00; Tue, 24 Oct 2000 11:25:59 -0400
Received: (from mailer@localhost)
	by gateway.symark.com (8.9.3/8.9.3) id IAA14268;
	Tue, 24 Oct 2000 08:25:10 -0700
Received: from wombat.symark.com(128.1.1.33) by gateway.symark.com via smap (V2.1+anti-relay+anti-spam)
	id xma014266; Tue, 24 Oct 00 08:25:05 -0700
Message-ID: <39F5AAA3.1CDF1E5@symark.com>
Date: Tue, 24 Oct 2000 08:28:35 -0700
From: David Morgan <dmorgan@symark.com>
Organization: Symark Software
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: Pavel Roskin <proski@gnu.org>
CC: Akim Demaille <akim@epita.fr>, "autoconf@gnu.org" <autoconf@gnu.org>,
        "Harlan.Stenn@pfcs.com" <Harlan.Stenn@pfcs.com>
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010231116180.27428-100000@grace.speakeasy.org>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hi Pavel,

Did you download Neutrino or QNX 4?  My uname -r says H (I hoped for 425!)

As was said in other email the fix is to do the proper quoting and have
it done consistently - this will probably mean autoconf will then work on
QNX 4.

So I think the only thing that was broken for 4.25 was the test for
CONFIG_FILES.

Past that it is then harder to tell for 4.3.5 as the Makefile has problems.

Regards
 David

Pavel Roskin wrote:
> 
> Hello, Akim!
> 
> > As far as I'm concerned, I'm lost.  I'm no longer sure your problem is
> > really related to ${FOO=$bar}, or, more precisely, that it is *only*
> > related to this.
> 
> I installed QNX currently distributed from the QNX site (uname -r shows 6.00)
> and I couldn't reproduce the problem with ${FOO=$bar}
> 
> However, I haven't tested Autoconf yet. I hope to do it this evening.
> 
> In the meantime please don't fix things that are possibly not broken.
> 
> Regards,
> Pavel Roskin


From daniele@ripe.net Tue Oct 24 11:41:34 2000
Received: from birch.ripe.net ([193.0.1.96])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13o6Ck-0003S2-00
	for <autoconf@gnu.org>; Tue, 24 Oct 2000 11:41:34 -0400
Received: from x51.ripe.net (x51.ripe.net [193.0.1.51])
	by birch.ripe.net (8.8.8/8.8.8) with ESMTP id RAA19665;
	Tue, 24 Oct 2000 17:41:00 +0200 (CEST)
Date: Tue, 24 Oct 2000 17:41:00 +0200 (CEST)
From: Daniele Arena <daniele@ripe.net>
To: Akim Demaille <akim@epita.fr>
cc: autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
In-Reply-To: <mv4lmvpkykb.fsf@nostromo.lrde.epita.fr>
Message-ID: <Pine.BSI.4.05L.10010241731520.1436-100000@x51.ripe.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hi All,

Since there was no tarball;) I thought I would checkout the CVS just to
have some fun. I started to test here and there, and got some positive
tests (make checks) with a SPARC(-clone) running Solaris 7. Just a tiny
weird thing, it ignored every test in update.m4:

125. ./update.m4:10     ignored near `update.m4:10'
126. ./update.m4:11     ignored near `update.m4:11'
[...]
157. ./update.m4:42     ignored near `update.m4:42'

I hope it's normal, you'll know better.

Another thing, I also wanted to test the package on a BSDI3.1 box, but it
doesn't even configure:

% ./configure 
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for gm4... no
checking for gnum4... no
checking for m4... /usr/local/bin/m4
checking whether m4 supports frozen files... yes
checking for mawk... no
checking for gawk... gawk
checking for working help2man... missing
checking for perl... /usr/local/bin/perl
checking for a BSD compatible install... /usr/bin/install -c
creating ./config.status
./config.status: 7: Syntax error: end of file unexpected (expecting "}")


I didn't poke through config.status for errors; I tried replacing /bin/sh
in config.status with /bin/bash and config.status ran. If you want I can
send you the config.status produced.

Cheers,

Daniele.

P.S.: More tests will follow, depending on my time.


On 16 Oct 2000, Akim Demaille wrote:

> Daniele> When do you plan to publish the new tarball?
> 
> This week IMHO (In My Hopeful Opinion).




From proski@gnu.org Tue Oct 24 11:44:45 2000
Received: from lolita.speakeasy.net ([216.254.0.13])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13o6Fp-0003Ze-00
	for <autoconf@gnu.org>; Tue, 24 Oct 2000 11:44:45 -0400
Received: (qmail 17183 invoked from network); 24 Oct 2000 15:37:12 -0000
Received: from unknown (HELO gonzo.speakeasy.net) (192.168.0.5)
  by 192.168.0.13 with SMTP; 24 Oct 2000 15:37:12 -0000
Received: (qmail 26108 invoked from network); 24 Oct 2000 15:39:20 -0000
Received: from unknown (HELO fonzie.nine.com) (12.38.119.2)
  by gonzo.speakeasy.net with SMTP; 24 Oct 2000 15:39:20 -0000
Date: Tue, 24 Oct 2000 11:49:48 -0400 (EDT)
From: Pavel Roskin <proski@gnu.org>
X-Sender: proski@fonzie.nine.com
To: David Morgan <dmorgan@symark.com>
cc: "autoconf@gnu.org" <autoconf@gnu.org>
Subject: Re: Success (mostly) with the testsuite
In-Reply-To: <39F5AAA3.1CDF1E5@symark.com>
Message-ID: <Pine.LNX.4.21.0010241139500.4924-100000@fonzie.nine.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hello, David!

> Did you download Neutrino or QNX 4?  My uname -r says H (I hoped for 425!)

It was a 91M ISO image from http://packages.qnx.com/download/qnxrtp.iso
I think it is called Neutrino.

> As was said in other email the fix is to do the proper quoting and have
> it done consistently - this will probably mean autoconf will then work on
> QNX 4.
> 
> So I think the only thing that was broken for 4.25 was the test for
> CONFIG_FILES.

Nice to hear. I hope somebody will rewrite that statement in a very safe
manner.

You can also mail me /bin/sh. I hope we'll not be prosecuted for that :-)

> Past that it is then harder to tell for 4.3.5 as the Makefile has problems.

What 4.3.5? QNX 4.3.5?
What makefile problems?
Make sure you are using GNU make. The makefiles on CVS are for GNU make
only. The distribution tarball will (hopefully :-)) contain makefiles
suitable for other makes as well.

Regards,
Pavel Roskin



From dmorgan@symark.com Tue Oct 24 12:22:18 2000
Received: from firewall.symark.westlake.iswest.net ([207.178.203.34] helo=gateway.symark.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13o6qA-0003xE-00; Tue, 24 Oct 2000 12:22:18 -0400
Received: (from mailer@localhost)
	by gateway.symark.com (8.9.3/8.9.3) id JAA16194;
	Tue, 24 Oct 2000 09:22:11 -0700
Received: from wombat.symark.com(128.1.1.33) by gateway.symark.com via smap (V2.1+anti-relay+anti-spam)
	id xma016185; Tue, 24 Oct 00 09:21:49 -0700
Message-ID: <39F5B7EF.29F0E38@symark.com>
Date: Tue, 24 Oct 2000 09:25:19 -0700
From: David Morgan <dmorgan@symark.com>
Organization: Symark Software
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: Pavel Roskin <proski@gnu.org>
CC: "autoconf@gnu.org" <autoconf@gnu.org>
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010241139500.4924-100000@fonzie.nine.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Pavel Roskin wrote:
> 
> Hello, David!
> 
> > Did you download Neutrino or QNX 4?  My uname -r says H (I hoped for 425!)
> 
> It was a 91M ISO image from http://packages.qnx.com/download/qnxrtp.iso
> I think it is called Neutrino.

Neutrino is very different from QNX 4 - it is more Unix compliant - I think :)
> 
> > As was said in other email the fix is to do the proper quoting and have
> > it done consistently - this will probably mean autoconf will then work on
> > QNX 4.
> >
> > So I think the only thing that was broken for 4.25 was the test for
> > CONFIG_FILES.
> 
> Nice to hear. I hope somebody will rewrite that statement in a very safe
> manner.
> 
> You can also mail me /bin/sh. I hope we'll not be prosecuted for that :-)

But as you don't have the same OS do you still want it?
> 
> > Past that it is then harder to tell for 4.3.5 as the Makefile has problems.
> 
> What 4.3.5? QNX 4.3.5?

4.2.5 - seems one typo got by.

> What makefile problems?

The most basic one is that my srcdir is:

srcdir = //1/tmp/autoconf/. . . 

With the three . on the end - I'm pretty sure this is a problem.

Previous email I sent addressed the issues that cwd & pwd will return different
results under some circumstances.

I am investigating why I also get a circular dependency on //1/tmp/autoconf/.
(srcdir) once I correct the Makefile and why make is looking for configure.in
in /

> Make sure you are using GNU make. The makefiles on CVS are for GNU make
> only. The distribution tarball will (hopefully :-)) contain makefiles
> suitable for other makes as well.

GNU make is shipped with QNX it is 3.74 and from memory 3.76 does not configure
correctly - surprise :)

Regards
 David


From proski@gnu.org Tue Oct 24 12:34:11 2000
Received: from lolita.speakeasy.net ([216.254.0.13])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13o71e-00047Q-00
	for <autoconf@gnu.org>; Tue, 24 Oct 2000 12:34:10 -0400
Received: (qmail 1610 invoked from network); 24 Oct 2000 16:31:45 -0000
Received: from unknown (HELO gonzo.speakeasy.net) (192.168.0.5)
  by 192.168.0.13 with SMTP; 24 Oct 2000 16:31:45 -0000
Received: (qmail 5451 invoked from network); 24 Oct 2000 16:33:52 -0000
Received: from unknown (HELO fonzie.nine.com) (12.38.119.2)
  by gonzo.speakeasy.net with SMTP; 24 Oct 2000 16:33:52 -0000
Date: Tue, 24 Oct 2000 12:44:19 -0400 (EDT)
From: Pavel Roskin <proski@gnu.org>
X-Sender: proski@fonzie.nine.com
To: David Morgan <dmorgan@symark.com>
cc: "autoconf@gnu.org" <autoconf@gnu.org>
Subject: Re: Success (mostly) with the testsuite
In-Reply-To: <39F5B7EF.29F0E38@symark.com>
Message-ID: <Pine.LNX.4.21.0010241238060.7951-100000@fonzie.nine.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hello, David!

> Neutrino is very different from QNX 4 - it is more Unix compliant - I think :)

I see.

> > You can also mail me /bin/sh. I hope we'll not be prosecuted for that :-)
> 
> But as you don't have the same OS do you still want it?

At least I could try to reproduce some of the problems.

> > What makefile problems?
> 
> The most basic one is that my srcdir is:
> 
> srcdir = //1/tmp/autoconf/. . . 

It's an Autoconf problem. srcdir shouldn't be set to this value.

> With the three . on the end - I'm pretty sure this is a problem.

Of course it is.

> GNU make is shipped with QNX it is 3.74 and from memory 3.76 does not
> configure correctly - surprise :)

Let's restrict ourself to the version they are shipping. I guess they must
have patched GNU make to support a "less UNIX compliant" OS.

Regards,
Pavel Roskin



From oliva@lsd.ic.unicamp.br Tue Oct 24 12:44:08 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13o7B9-0004OD-00; Tue, 24 Oct 2000 12:44:03 -0400
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id e9OGhRm31406;
	Tue, 24 Oct 2000 14:43:27 -0200
To: Pavel Roskin <proski@gnu.org>
Cc: Akim Demaille <akim@epita.fr>, autoconf@gnu.org
Subject: Re: FreeBSD and QNX - first results
References: <Pine.LNX.4.21.0010241107490.3807-100000@fonzie.nine.com>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 24 Oct 2000 14:43:27 -0200
In-Reply-To: Pavel Roskin's message of "Tue, 24 Oct 2000 11:15:47 -0400 (EDT)"
Message-ID: <org0lmjikw.fsf@guarana.lsd.ic.unicamp.br>
Lines: 16
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On Oct 24, 2000, Pavel Roskin <proski@gnu.org> wrote:

> Any "sh autoconf":

Yep.  Not all shells search the PATH for a script.

> The problem is that requiring GNU sed for autoupdate is essentially
> requiring GNU sed for the testsuite which means not testing other sed's

Good point.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From dmorgan@symark.com Tue Oct 24 15:02:16 2000
Received: from firewall.symark.westlake.iswest.net ([207.178.203.34] helo=gateway.symark.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13o9Kx-0006Tx-00; Tue, 24 Oct 2000 15:02:16 -0400
Received: (from mailer@localhost)
	by gateway.symark.com (8.9.3/8.9.3) id MAA25754;
	Tue, 24 Oct 2000 12:02:14 -0700
Received: from wombat.symark.com(128.1.1.33) by gateway.symark.com via smap (V2.1+anti-relay+anti-spam)
	id xma025751; Tue, 24 Oct 00 12:01:59 -0700
Message-ID: <39F5DD7A.D94A0D5B@symark.com>
Date: Tue, 24 Oct 2000 12:05:30 -0700
From: David Morgan <dmorgan@symark.com>
Organization: Symark Software
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: Pavel Roskin <proski@gnu.org>
CC: "autoconf@gnu.org" <autoconf@gnu.org>
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010241238060.7951-100000@fonzie.nine.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Pavel Roskin wrote:
> 
> Hello, David!
> 
> > Neutrino is very different from QNX 4 - it is more Unix compliant - I think :)
> 
> I see.
> 
> > > You can also mail me /bin/sh. I hope we'll not be prosecuted for that :-)
> >
> > But as you don't have the same OS do you still want it?
> 
> At least I could try to reproduce some of the problems.
> 
> > > What makefile problems?
> >
> > The most basic one is that my srcdir is:
> >
> > srcdir = //1/tmp/autoconf/. . .
> 
> It's an Autoconf problem. srcdir shouldn't be set to this value.

I have been investigating the cause of this.

The best I can come up with so far is the line that does the sed replacement.

/^X\(\/\).*/{ s//\1/p; q;}

When presented with ac_file=Makefile this substitution is returning 
. XMakefile which I am not sure where we get this from.  It seems to work
on the command line when passed XMakefile so I am not sure.

I've tried this in a small script and the same wrong thing happens.
Given ac_file=Makefile I get . XMakefile

I'd appreciate a suggestion as to what to look at.  I'm taking a lunch
break and then will have another look with fresher eyes.

> 
> > With the three . on the end - I'm pretty sure this is a problem.
> 
> Of course it is.
> 
> > GNU make is shipped with QNX it is 3.74 and from memory 3.76 does not
> > configure correctly - surprise :)
> 
> Let's restrict ourself to the version they are shipping. I guess they must
> have patched GNU make to support a "less UNIX compliant" OS.
> 

I am at this


From dshparbe@oasis-technology.com Tue Oct 24 16:00:40 2000
Received: from office.oasis-technology.com ([199.212.40.99] helo=proxy.oasis-technology.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oAFU-0007NL-00
	for <autoconf@gnu.org>; Tue, 24 Oct 2000 16:00:40 -0400
Received: from gwnt.oasis-technology.com (gwnt.oasis-technology.com [10.10.0.33])
	by proxy.oasis-technology.com (8.10.2/8.10.2) with ESMTP id e9OK0Sw15335
	for <autoconf@gnu.org>; Tue, 24 Oct 2000 16:00:29 -0400 (EDT)
Message-Id: <200010242000.e9OK0Sw15335@proxy.oasis-technology.com>
Received: by gwnt.oasis-technology.com with Internet Mail Service (5.5.2650.21)
	id <VDDLTPD2>; Tue, 24 Oct 2000 16:00:30 -0400
From: Dmitri Shparber <dshparbe@oasis-technology.com>
To: "'autoconf@gnu.org'" <autoconf@gnu.org>
Subject: autoconf compliance
Date: Tue, 24 Oct 2000 15:59:28 -0400
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hello,

I just have a question regarding autoconf utility. Is this utilitie
compliant with 64 bit architecture machines running win2K? 

regards, Dmitry.


From oliva@lsd.ic.unicamp.br Tue Oct 24 16:07:48 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oAML-0007a6-00
	for <autoconf@gnu.org>; Tue, 24 Oct 2000 16:07:46 -0400
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id e9OK78711541;
	Tue, 24 Oct 2000 18:07:08 -0200
To: Dmitri Shparber <dshparbe@oasis-technology.com>
Cc: "'autoconf@gnu.org'" <autoconf@gnu.org>
Subject: Re: autoconf compliance
References: <200010242000.e9OK0Sw15335@proxy.oasis-technology.com>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 24 Oct 2000 18:07:08 -0200
In-Reply-To: Dmitri Shparber's message of "Tue, 24 Oct 2000 15:59:28 -0400"
Message-ID: <orzojuf1g3.fsf@guarana.lsd.ic.unicamp.br>
Lines: 14
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On Oct 24, 2000, Dmitri Shparber <dshparbe@oasis-technology.com> wrote:

> I just have a question regarding autoconf utility. Is this utilitie
> compliant with 64 bit architecture machines running win2K? 

I don't know of any 64-bit compliance problems in autoconf.  Which is
not that surprising, since it's just a set of shell-scripts and m4
macros.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From dmorgan@symark.com Tue Oct 24 17:16:49 2000
Received: from firewall.symark.westlake.iswest.net ([207.178.203.34] helo=gateway.symark.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oBRA-0000Jh-00; Tue, 24 Oct 2000 17:16:48 -0400
Received: (from mailer@localhost)
	by gateway.symark.com (8.9.3/8.9.3) id OAA00810;
	Tue, 24 Oct 2000 14:16:47 -0700
Received: from wombat.symark.com(128.1.1.33) by gateway.symark.com via smap (V2.1+anti-relay+anti-spam)
	id xma000798; Tue, 24 Oct 00 14:16:46 -0700
Message-ID: <39F5FD10.37D7081F@symark.com>
Date: Tue, 24 Oct 2000 14:20:16 -0700
From: David Morgan <dmorgan@symark.com>
Organization: Symark Software
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: Pavel Roskin <proski@gnu.org>, "autoconf@gnu.org" <autoconf@gnu.org>
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010241238060.7951-100000@fonzie.nine.com> <39F5DD7A.D94A0D5B@symark.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hi Pavel 

I have investigated further

> 
> The best I can come up with so far is the line that does the sed replacement.
> 
> /^X\(\/\).*/{ s//\1/p; q;}
> 
> When presented with ac_file=Makefile this substitution is returning
> . XMakefile which I am not sure where we get this from.  It seems to work
> on the command line when passed XMakefile so I am not sure.
> 
> I've tried this in a small script and the same wrong thing happens.
> Given ac_file=Makefile I get . XMakefile
> 
> I'd appreciate a suggestion as to what to look at.  I'm taking a lunch
> break and then will have another look with fresher eyes.
> 

The problem is the expr replacement and the sed on ac_dir.
This has a comment just before it of:
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.

I have come to see there is something wrong.

The expr parts returns '.' on stdout (correct) and 1 - which seems wrong.

The gotcha here is that doing this as separate operations:
ac_dir=`expr ...`
echo $?

appears to echo the return code of the assignment not the expr.

Having the expr separately and then printing the return code
expr ...
echo $?

returned a 1

With the expr giving me a general result of "." and with the sed doing its
own thing gives an output of ". ." from sed - this then
is appended to the "." giving me ". . ." for the ac_dir of Makefile.

I also think the sed expression is wrong.  Fixing the combination of the 
two may require the test to be broken into 2 parts.

The following general code worked for me:

ac_dir=`expr ...`
if test -z "$ac_dir"; then
  ac_dir=`sed ...`
fi

After this change in the configure script I am now running the test suite.

It seems test 4 tools.m4:188 locks up but I am looking at that now and I'll
let you know what I find.

Regards
 David


From proski@gnu.org Tue Oct 24 17:37:24 2000
Received: from lolita.speakeasy.net ([216.254.0.13])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13oBl6-0000Ru-00
	for <autoconf@gnu.org>; Tue, 24 Oct 2000 17:37:24 -0400
Received: (qmail 15798 invoked from network); 24 Oct 2000 21:35:13 -0000
Received: from unknown (HELO gonzo.speakeasy.net) (192.168.0.5)
  by 192.168.0.13 with SMTP; 24 Oct 2000 21:35:13 -0000
Received: (qmail 6030 invoked from network); 24 Oct 2000 21:37:19 -0000
Received: from unknown (HELO fonzie.nine.com) (12.38.119.2)
  by gonzo.speakeasy.net with SMTP; 24 Oct 2000 21:37:19 -0000
Date: Tue, 24 Oct 2000 17:47:47 -0400 (EDT)
From: Pavel Roskin <proski@gnu.org>
X-Sender: proski@fonzie.nine.com
To: Daniele Arena <daniele@ripe.net>
cc: autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
In-Reply-To: <Pine.BSI.4.05L.10010241731520.1436-100000@x51.ripe.net>
Message-ID: <Pine.LNX.4.21.0010241739580.13719-100000@fonzie.nine.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hello, Daniele!

> Since there was no tarball;) I thought I would checkout the CVS just to
> have some fun. I started to test here and there, and got some positive
> tests (make checks) with a SPARC(-clone) running Solaris 7. Just a tiny
> weird thing, it ignored every test in update.m4:
> 
> 125. ./update.m4:10     ignored near `update.m4:10'
> 126. ./update.m4:11     ignored near `update.m4:11'
> [...]
> 157. ./update.m4:42     ignored near `update.m4:42'
> 
> I hope it's normal, you'll know better.

It's normal (sort of) - autoupdate only works with GNU sed. I hope to fix
it some day. Currently tests for autoupdate are ignored on machines
without GNU sed.

> Another thing, I also wanted to test the package on a BSDI3.1 box, but it
> doesn't even configure:
> 
> % ./configure 
> checking for a BSD compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking whether make sets ${MAKE}... yes
> checking for working aclocal... found
> checking for working autoconf... found
> checking for working automake... found
> checking for working autoheader... found
> checking for working makeinfo... found
> checking for gm4... no
> checking for gnum4... no
> checking for m4... /usr/local/bin/m4
> checking whether m4 supports frozen files... yes
> checking for mawk... no
> checking for gawk... gawk
> checking for working help2man... missing
> checking for perl... /usr/local/bin/perl
> checking for a BSD compatible install... /usr/bin/install -c
> creating ./config.status
> ./config.status: 7: Syntax error: end of file unexpected (expecting "}")

I'll be very interested to see your config.status 

Regards,
Pavel Roskin



From daniele@ripe.net Wed Oct 25 03:44:15 2000
Received: from birch.ripe.net ([193.0.1.96])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oLEN-0000In-00; Wed, 25 Oct 2000 03:44:15 -0400
Received: from x51.ripe.net (x51.ripe.net [193.0.1.51])
	by birch.ripe.net (8.8.8/8.8.8) with ESMTP id JAA04641;
	Wed, 25 Oct 2000 09:44:14 +0200 (CEST)
Date: Wed, 25 Oct 2000 09:44:14 +0200 (CEST)
From: Daniele Arena <daniele@ripe.net>
To: Pavel Roskin <proski@gnu.org>
cc: autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
In-Reply-To: <Pine.LNX.4.21.0010241739580.13719-100000@fonzie.nine.com>
Message-ID: <Pine.BSI.4.05L.10010250941460.1436-101000@x51.ripe.net>
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED; BOUNDARY="1293669435-714920436-972459854=:1436"
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

--1293669435-714920436-972459854=:1436
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hi Pavel!

On Tue, 24 Oct 2000, Pavel Roskin wrote:

> Hello, Daniele!
> 

[...]

> > ./config.status: 7: Syntax error: end of file unexpected (expecting "}")
> 
> I'll be very interested to see your config.status 

Then here it is... Enjoy!:)

Cheers,

Daniele.

--1293669435-714920436-972459854=:1436
Content-Type: APPLICATION/octet-stream; name="config.status.gz"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.BSI.4.05L.10010250944140.1436@x51.ripe.net>
Content-Description: 
Content-Disposition: attachment; filename="config.status.gz"

H4sICDWN9jkAA2NvbmZpZy5zdGF0dXMAvRprc9s28nP4KxCaE1muRMa59HqV
qlSKbCee+jWWkuZqOTJFQhIvfKgE6Udj//fbBUAQpOQ4d3NzamqRi93FYrEv
LLT1nDizIHbY0tgi72hMUzejPnHzLIncLPDcMLwjszviJfE8WOQptQHvPI9J
tgwYmQchJVlCUuqlFAgBSomXpymNM0UCbJIYyYZJtAKClCR5tsozskoTP/dg
Np1/i+SMzvOQzJOU+HSWLxZBvABqDQNmDmJiOwJkh8mCBHMSZITeBixjtgHo
byl5m+RpDPLAtCDDLKQGYGWUZaQdE9P6+sfo/fTj/vno8PTkB0azB5O8eEG2
aZSHuBS2bJI3jk+vnTgPQ/LqzYvdLq4vNggpceDl5MPR0fB4r9cxaFid4O1g
4wzwRNoJWSUsuH18Dh3LmAe4plG+WiVpRvIYB28AD4cZLs3GtW2LgYPT08fZ
ut6UY/X4XxCZUR06dxEgpjs5GpE4D5gbexSUahVI5Ghw8o7c34ulwjrxXa7v
eY8LDoNfOVpv2IVd4VLja5c86HyG08HRUYUTh2zixQd0bhywxm98eLxfY4ig
zRxxpMoSIWs8h+N/ntWZcthmrnyoypaDanxBGx8G7/brekTYI7rEoZo+EbQu
7+nR0WC8JrGAPiKzGKxJLYBr/E8+HO+fHw5r/CV0M385WOUvgWv8j/dHI1jX
qDZBAd48QzFanaKA4hxg0YcHI/j7OyUxhbDDVq4H0SRzZ8SNfYDdkDCIMb6A
X0FICxiF4Jct3YwkqU9T2wAp47DXMBoGcOqZ5JnFISbyHu6dDcbvdTcREH0V
ArJhAWKg11GyCwAXmwdB6ZgR7V1Rb5kAs5cmuQcGPmmwlr3jtFqNK2P0fh+c
BOY5PTk4fDflr20Z34GTiJdTjNoMpD92v1AewaPXTvnsxuWLn3jqBaJE8cHl
sBJLvLqZYA/KAA14bJozd0F75sSYXFkRbYBWWebGWQCBU2QO+JsmEZBHq5AD
Xc8DRUO4x5wC8cp4JJUYH5B1h1gvycXp2Rii6+iSXBwcHu1f2jYME9Jetki7
vaThSoq8SgPgw5MWQls8HGK+yBD7I2Jf05QB+xK7AMR5NKNpjcRHEr41YgI/
iRsZJMIouaZ8SUnqpndinVJ17TYY1ZJ6X/AlX/mYQUAzmP5gQC4RVx/EPJEy
N8LsFfsBLhu5tNvIr4crveiM94/P0D8vtZ1RH03ZIinrGhR5G7kYxnBtgHUM
S7cUwzin3CZhrQx35hd4aGOFgFj9RZzbSbp4Y5ty36XacOdVigZhspyRhSow
YM0FB6XnV/brn2e2kgiwALhMwHVuf9y102BF7RgcZnYHCy44AxoRFrcIrmk8
ZannB2nPLiGHJ6Mxpg7TyVnKfYHrBvJi2zMxJsxJnAiNuMCMrcDx54EQETUH
5Uix9zcycIAOoHa5DnzwEDp38zADPtdumFObkLd3Ot6XOLnB4kTY+w19bAYR
W4BoKjkyqCduloV7EWsL48VLw09g8Z7LwHJ2YZO5Tez0dprcBoBFssJ9hCBx
u0qJeWvtmqRDGreT7YvPvcudSbMHUaJEddPFGipH7E22bcCWyGwZzDPxBPr3
8yi6gwCkZjPVC/AzifV19wfT6psPNdpuF6XdafLvnSbZImN0R/gXJxlEYCK4
tQhLlFrI0mWo65k7g1DMNxQjZBh4gWAKXGDSPIIoASUKkUurKpKHTj4rZa5n
1BW4Rd5D+A/R8ZI5n1kIwvkpl73X3Ld8Lh/VU/Egv8WX2B8RudM8jnEyGZer
pkzgX7sdJ21ZUPNn4JZzFzEFm1vgvon6G5RS+yrI3cvnHXz6SHT5rIobm10e
8sjLgoNc6lKQYFUfz2E/wC9pdkNhf2TcxZSKjy5kTp17BIHbjWYgcQIRQaga
QrmyJmMMYZOnDMmpwY8CUQILDGJ4jEQWKATbLQWDWe/FA34vN62KJ6W1NYk4
jrQ+V4gvSUXq7RRoPEjciwf5Lb4kemnrMgFjiIU6wdJfwe5M4wk7LfQmlwOP
6ql4eGzK9/uDPThxlJNKwNPTrrlCxbEaRbpvkOY3l1fgmUJrDa24eIpUQ1XU
WjnyJLmGW9DrFcxT9DpuQV8tdZ7iUMWu8ijqo+/joaopUuxMESwhUNI0TVJb
RFPdrfIY64hFHPyFubPwrN3/0qOqvIMYElzgK6NAxjUCHl0Lk4R6iBoivapg
7gM9xnp44UBlYJgpRVoUGTGAAooDtTKmBcx4FkYEGl9fuykMZzSdQxWPigGu
PuTfEaSoJOaFe8LngfIdEztMzA/JVt0B1NEYlvS1sjOVMuhBnoqHIry6WpEH
FQf1siS9a/Got0ySL1zDAayMV4RuCHsDPFjZ0YCDgow698ZXmDxL3RVpoDqn
oljqWb92SRpBBgKZs2iFrQOubUtDakBJoNMS69cGbMcrsvs3svuj8VAReJth
NqBNgtyUzFxShPBV2gZqYXx8tnd43nMA/CCki1a9q+08ctkX8vKnn1CW6Asq
AGNl+0+wEUHieOwT/5hN8qpsQVwBgUG01gjw470QAfElxHggSh0wYcnTstrW
+eBk7/QYhupiwEq4gppALql1w/XcGG3O+8a2YcEtJzPJmxevOAdu2F1UobGF
WtR9FBQpm1q8T5Kocq8ocEX97kHNCiYQcBdIqTTDCivsi3HPXrqrFY2ZsBtu
9WDVvMVTL6Ll27LazdKZmsqkt8hZmmQgLXEXLrKFLM2ju3CjNFgsM8KwkMV4
z4+TLJ8BGmikMqvNO1J42HRafaffd7qEOf1W8dTqwuHKcvr4BQDxYDnMuZhM
XrQuHfjrLDBGIFUfWXTFE7DgTwKfs3Ea5A3up4OS2DjpL79MhvunBwZr9fmR
FohE9cPxEYwl0RTO7PPgtt+yvoqnBzVcjPAjQJh4bqgNJYvUjabgQzHDWDiN
4djVb7HWLfyn0GA+MBfkrU31gGIoFPYIDtORwmCGg5vw5JBChfOhK/EUqyWY
UDnhHcM9quHQrGTB8X3cQVrD8pKolAkVsgkJQqwu+CNCK5Qg9sLcrzORUIWV
hL6OyLekjoNZaY3NPFHjkOlrwwBRo/vD96fTYb9VBZz0W+0azljDGR4cDd6N
dMDZ2Rro06c66KAO2Ns/gFfS3jsbDH/Dht3ELA66Eyjt92Q7GMD8uAswRXq0
V2d2dPhWf5VH2enZ+em788Exrl+CHtZwRsPzw7PxN1H2BuOBjkDaEfn769cK
T66g3yoWoEbkIvotvgYFHgyPTocDcE/XqzrZ4MP4FAPUBlY4dDz4Tc4SQelU
GRLVqxgUNbEaRqrDk4PTfgupKvYx2h9PBdOS2Xg63h+NsavWb9l2yeW1HhZ4
XIlKFQx+/63fWrg3XxQE4s/Zq+PBiYpBxBEtO0yWtz/uOr4bBzSkjp/cxGHi
+szxrqGek+t2ooAxjMBYh73SrfZs//xoTZQVTcMKhtjWkVAI8zR6TBm+m/ps
mkHuKlbO4yZPBCM4NWciL2GED7KcH3KxhkrIDCquNuN14yqgHhV5CGIvIzdB
tuQMWIRNEwgcEe+W8qYYCYMIqpwWfH+hmFX2gkWQQblzOjpwdnk19P6s/eGT
Le4YIvd2Ckyn2GZlvdf/EFCEzFN30duFWU4EX0hHRfMP6xJJP6MC6SBIIUch
Fy7nBkwa+z2rPiNQHiGNO89QdPcJHlggS1E7paRe5LMevIrmjFXB6xLenyGk
SM2WEJq0F1hMFFlZdFKg6tkF7xMYD36X8GcQ/OFPk1QToJYPUVHiWCtubhSv
/4waalldzuekzUgVrSJtVRuiF10TAusYSlZ5usKyW3ZSQncGh3E0AwmYQZr1
lugAqrGJtXuWKC5wDgCZ85UwVTTINAGD5E6zXS+lrvoNgvV9GLbEgGLD20qq
LpulyQ1I5cZ3hSAVJ2ja+iKYYI9Y2U0ClSDUBlwSafuM4KEF6PCidJZc04J6
m5edjQ4eyJ3+hdv+a9D+Y3pZPLxs/3y503eezxpYuHogd1XjTW2n2pbmGLiL
cgpV8/0lWhqFRZYl3zPdTk0Uuz0nj/M1JWO5k1VqfQZ52/BdzKR1Vb1bNBp1
EvID2b0qMdG7LWHEJRAduaSENyBac+yr0qb5ufN79FR1aNgNg3OYB2AEj5TV
hoGRAsh4IwhKZDgr6Qjo/vKu59aSaCbpkdsO3/AEjCbOqYjG8irXTPIM0S46
kMC0b9u2Ly/NVtFfFrcCvPlfUNhBbNqql1kKhW0B2Kudjvzb2SHYaw1ivHLn
Fy4s84PCsQm3Q2l3FbjkOA1ideWklqQuni4+dy53OvzuqUb3DaKOvYMUssvA
5ft/TQZTVVZWEIAySaVDvEUG/r9y2EkXTvChmwXXEDL43QIEmmQ1LZ4xtMn6
SaTMfFYcKwPKZCLBGwlhw580ETuk8Qnb7BefnctJ03H4A/6/4+xYDTK5JxO5
znUqx5k0EfU70J5kNWlWMGyCnZAGSIYD2iEeD9dCzRoTpWnjGRI7n7UlTZyJ
tih4tpyvcNZzJrvOqkv+xMvNkgiRxZrsnSfRnmDUfIwFc2DE5jBuREWU4OuB
XeKXspqGig5FZdzWQshX4X7lOHcgOPTCgkEzv3bkI7dwOOWk3BaK9trGj45o
Aya3SGSP1y49U01lFsGId0AQhBHpCi+m8UhNM/KJhwVO1xVduW7RGOmbV7JW
0aeztBfH0lmr5o1PdCS8vJYNGA3Ke3/86lquB5mwfA4HtZ7pCFeVq7iXXvp5
YvMbbFNeKgyIaduOyV2Kut6y1qup8LTVNEnG9EhQomjxwOHGCCcAp7XgNqBK
mKqgiqFIC3qg1W8axYbbsJfq5nFzokZeMvloAUShoxQ6XNMSEGriW6imLogk
4tUGUyuKQsGoLnBVMV2JrM28tsLyvu68iIQrN1sKyTUiFPTbsxkbptpERTZc
1tXvc0tPs+quVtz4rtMUS9ExqgJUMAsJir281UIDBILbthYJ+H7xJiPm6gKP
D2ETd66FFUOWKuribsqTc8987Pd3PGuXFiGTF7lXafC7P9Xfi1R/2GeKvLcn
f8ggPE7ch4rf60EdPRjySke6Y3jX4b38q+i6IW5teRW1JX7cwGsWBuV5EgWe
yJR+QhlyF2V56q5WvBPOaeSZruid82sAUbPwq3P5m4hZHoRISmmLJFjx3wSM
ykFxSk09PixTr9QV8IHQgLGxI0pFmGFehBKJow5vhcnNiSqH2vIupKyThIXg
Z90Gm+XGQCibsSTMM+33MyIuoEXMTfHzHxGz1FZ0xA2P6l3PA9BdqQwymUyu
rHmD96qLKxiMt2oGIetciVjx3hJNxSghS+XEJ6V/q/StwyV/bcKwwqvmz84j
zEdJnnr0Ee7rPPTpGK2yKquUOrf/vXbngVKsvPISx44rsZnbgqQpaAUlP6E7
ny/Is8udj9iD4k89XtFajm8YcGb81okRGzy1cNFvWTVI2QpKZYNZVqkFvAy9
MKZVsbXGIAzKJzFi6l6CngSmvk3xUqt6tCrOrxAujCLqVQ4W3xNHo2tSMNGj
qNpxdWwWs1TmESDM1uL2UVzyG/8G3YXSu+QsAAA=
--1293669435-714920436-972459854=:1436--


From akim@epita.fr Wed Oct 25 05:45:32 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oN7j-0001qg-00; Wed, 25 Oct 2000 05:45:32 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id LAA21655
	Wed, 25 Oct 2000 11:46:07 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13oPBE-0003nh-00; Wed, 25 Oct 2000 11:57:16 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13oN9j-0007VY-00; Wed, 25 Oct 2000 11:47:35 +0200
To: David Morgan <dmorgan@symark.com>
Cc: Pavel Roskin <proski@gnu.org>, autoconf@gnu.org, Harlan.Stenn@pfcs.com
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010191856350.19433-100000@woburn.localdomain>
	<39F065A7.CFD5163A@symark.com>
	<mv4em17a0fc.fsf@nostromo.lrde.epita.fr>
From: Akim Demaille <akim@epita.fr>
Date: 25 Oct 2000 11:47:35 +0200
In-Reply-To: Akim Demaille's message of "23 Oct 2000 20:15:51 +0200"
Message-ID: <mv4snplmevc.fsf@nostromo.lrde.epita.fr>
Lines: 131
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "Akim" == Akim Demaille <akim@epita.fr> writes:

Akim> David, could you run it too?

Here is his answer.

----------------------------------------------------------------------

From: David Morgan <dmorgan@symark.com>
Subject: Re: Success (mostly) with the testsuite
To: Akim Demaille <akim@epita.fr>
X-Sent: 18 hours, 25 minutes, 49 seconds ago
Organization: Symark Software

Hi,

Here are the results (attached)

Regards
 David

Akim Demaille wrote:
> 
> As far as I'm concerned, I'm lost.  I'm no longer sure your problem is
> really related to ${FOO=$bar}, or, more precisely, that it is *only*
> related to this.
> 
> This debate already partly happened, see `config.status is broken
> under Ultrix' on
> 
>         http://sources.redhat.com/ml/autoconf/2000-01/threads.html
> 
> Unfortunately, a lot of messages seem to be missing, and moreover
> Harlan and I exchanged several private messages about this :(  I lost
> track of the precise diagnostic.
> 
> Harlan, do you still have an Ultrix handy?  In that case, how does the
> following script behave?  David, could you run it too?
> 
>   --------------------------------------------------------------------------------
> 
>    test.shName: test.sh
>           Type: Bourne Shell Program (application/x-sh)+ nl=

+ tab=	
+ space= 
+ IFS= 	
+ foo=One line
+ bar=Two
lines
+ print Direct use
Direct use
+ print {One}
{One}
+ print {line}
{line}
+ print {Two
lines}
{Two
lines}
+ print

+ print Indirect Use with Quotes
Indirect Use with Quotes
+ : One line
+ : Two
lines
+ print {One}
{One}
+ print {line}
{line}
+ print {Two
lines}
{Two
lines}
+ print

+ print Indirect Use without Quotes
Indirect Use without Quotes
+ : One line
+ : Two
lines
+ print {line}
{line}
+ print {Two
lines}
{Two
lines}
+ print

+ print NL in IFS
NL in IFS
+ IFS= 	

+ print

+ print Direct use
Direct use
+ print {One}
{One}
+ print {line}
{line}
+ print {Two}
{Two}
+ print {lines}
{lines}
+ print

+ print Indirect Use with Quotes
Indirect Use with Quotes
+ : One line
+ : Two
lines
+ print {One}
{One}
+ print {line}
{line}
+ print {Two}
{Two}
+ print {lines}
{lines}
+ print

+ print Indirect Use without Quotes
Indirect Use without Quotes
+ : One line
+ : Two lines
+ print {line}
{line}
+ print {lines}
{lines}


From akim@epita.fr Wed Oct 25 05:49:46 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oNBp-0001wR-00; Wed, 25 Oct 2000 05:49:45 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id LAA22099
	Wed, 25 Oct 2000 11:50:30 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13oPFT-0003pC-00; Wed, 25 Oct 2000 12:01:39 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13oNDy-0007WE-00; Wed, 25 Oct 2000 11:51:58 +0200
To: Daniele Arena <daniele@ripe.net>
Cc: Pavel Roskin <proski@gnu.org>, autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
References: <Pine.BSI.4.05L.10010250941460.1436-101000@x51.ripe.net>
From: Akim Demaille <akim@epita.fr>
Date: 25 Oct 2000 11:51:58 +0200
In-Reply-To: Daniele Arena's message of "Wed, 25 Oct 2000 09:44:14 +0200 (CEST)"
Message-ID: <mv4og09meo1.fsf@nostromo.lrde.epita.fr>
Lines: 17
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "Daniele" == Daniele Arena <daniele@ripe.net> writes:

>> > ./config.status: 7: Syntax error: end of file unexpected
>> (expecting "}")
>> 
>> I'll be very interested to see your config.status

Daniele> Then here it is... Enjoy!:)

When, the error message is not enough to understand what's going wrong
(and it makes no sense to me).

Could you run

        /bin/sh -x ./config.status >config.status.log 2>&1

and send us config.status.log?


From akim@epita.fr Wed Oct 25 05:51:29 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oNDU-0001yR-00; Wed, 25 Oct 2000 05:51:29 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id LAA22229
	Wed, 25 Oct 2000 11:52:00 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13oPGw-0003pr-00; Wed, 25 Oct 2000 12:03:10 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13oNFR-0007WQ-00; Wed, 25 Oct 2000 11:53:29 +0200
To: David Morgan <dmorgan@symark.com>
Cc: Pavel Roskin <proski@gnu.org>, "autoconf@gnu.org" <autoconf@gnu.org>
Subject: Various systems (was: Success (mostly) with the testsuite)
References: <Pine.LNX.4.21.0010241139500.4924-100000@fonzie.nine.com>
	<39F5B7EF.29F0E38@symark.com>
From: Akim Demaille <akim@epita.fr>
Date: 25 Oct 2000 11:53:28 +0200
In-Reply-To: David Morgan's message of "Tue, 24 Oct 2000 09:25:19 -0700"
Message-ID: <mv4k8axmelj.fsf_-_@nostromo.lrde.epita.fr>
Lines: 7
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "David" == David Morgan <dmorgan@symark.com> writes:

David> Neutrino is very different from QNX 4 - it is more Unix
David> compliant - I think :)

It would be great to document the various system just like we started
with the different shells.


From akim@epita.fr Wed Oct 25 06:12:43 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oNY2-0006GV-00; Wed, 25 Oct 2000 06:12:43 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id MAA24099
	Wed, 25 Oct 2000 12:12:45 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13oPb1-0003ug-00; Wed, 25 Oct 2000 12:23:55 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13oNZU-00022V-00; Wed, 25 Oct 2000 12:14:12 +0200
To: David Morgan <dmorgan@symark.com>, Paul Eggert <eggert@twinsun.com>
Cc: Pavel Roskin <proski@gnu.org>, "autoconf@gnu.org" <autoconf@gnu.org>
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010241238060.7951-100000@fonzie.nine.com>
	<39F5DD7A.D94A0D5B@symark.com> <39F5FD10.37D7081F@symark.com>
From: Akim Demaille <akim@epita.fr>
Date: 25 Oct 2000 12:14:12 +0200
In-Reply-To: David Morgan's message of "Tue, 24 Oct 2000 14:20:16 -0700"
Message-ID: <mv4g0llmdmz.fsf@nostromo.lrde.epita.fr>
Lines: 42
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

--=-=-=

>>>>> "David" == David Morgan <dmorgan@symark.com> writes:

David> The problem is the expr replacement and the sed on ac_dir.

David> The expr parts returns '.' on stdout (correct) and 1 - which
David> seems wrong.

So to summarize, the problem is that if you run this:

AC_INIT
echo AC_SHELL_DIRNAME(foo)

you get `. . .' instead of just `.', right?

The first `.' is coming from `expr', which is right, but seems to be
failing anyway.

And then you say that sed is responsible for the two other dots,
right?  This is weird.  Where is it coming from?  Ouch.  In fact I can
reproduce this extra dot too.

/tmp % echo "Xfoo" |                                             nostromo 12:08
pipe>     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/p; q; }
pipe quote>   /^X\(\/\/\)[^/].*/{ s//\1/p; q; }
pipe quote>     /^X\(\/\/\)$/{ s//\1/p; q; }
pipe quote>     /^X\(\/\).*/{ s//\1/p; q; }
pipe quote>     s/.*/./p; q'
.
.


Arg! -n is missing, so since there is a `p', it's printed twice.

Paul, what do you prefer?  I chose not to add `-n' but to remove the
`p', if you think there is a difference and you prefer the other
solution, I'll adjust the code.


David, could you run this script?


--=-=-=
Content-Disposition: attachment; filename=configure

#! /bin/sh

expr Xfoo : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     Xfoo : 'X\(//\)[^/]' \| \
     Xfoo : 'X\(//\)$' \| \
     Xfoo : 'X\(/\)' \| \
      .   : '\(.\)'
echo $?

echo ====
echo "Xfoo" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'
echo $?

--=-=-=--


From daniele@ripe.net Wed Oct 25 06:18:19 2000
Received: from birch.ripe.net ([193.0.1.96])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oNdT-0006RV-00; Wed, 25 Oct 2000 06:18:19 -0400
Received: from x51.ripe.net (x51.ripe.net [193.0.1.51])
	by birch.ripe.net (8.8.8/8.8.8) with ESMTP id MAA14675;
	Wed, 25 Oct 2000 12:17:43 +0200 (CEST)
Date: Wed, 25 Oct 2000 12:17:43 +0200 (CEST)
From: Daniele Arena <daniele@ripe.net>
To: Akim Demaille <akim@epita.fr>
cc: Pavel Roskin <proski@gnu.org>, autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
In-Reply-To: <mv4og09meo1.fsf@nostromo.lrde.epita.fr>
Message-ID: <Pine.BSI.4.05L.10010251212420.360-101000@x51.ripe.net>
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED; BOUNDARY="1293669435-361820651-972469063=:360"
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

--1293669435-361820651-972469063=:360
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hi Akim,

You can find it attached hereby.

Any other questions, I'm here.

Cheers,

Daniele.

On 25 Oct 2000, Akim Demaille wrote:

> When, the error message is not enough to understand what's going wrong
> (and it makes no sense to me).
> 
> Could you run
> 
>         /bin/sh -x ./config.status >config.status.log 2>&1
> 
> and send us config.status.log?


--1293669435-361820651-972469063=:360
Content-Type: APPLICATION/octet-stream; name="config.status.log.gz"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.BSI.4.05L.10010251217430.360@x51.ripe.net>
Content-Description: 
Content-Disposition: attachment; filename="config.status.log.gz"

H4sICPOx9jkAA2NvbmZpZy5zdGF0dXMubG9nALVVbW/bNhD+PP2KS2GkW6OX
KHXrRJlWG67bGrCToHYGbK6h0RItC7Eoj6QCp8D++47Ui2VlwzAU1Qfp7vjc
8e4h73QGkgoJFgPjrCmSMMiZoNLXbzToL0wGNx8PyjAYTCZNdT6ejpr6cP7b
3ejI+X7w8RhxO5kM5kemm/vp6PN42DRNR7MZOs6KxNjWN1Aaf5j58INR44bv
7wbzT6hGdJXH/ppsBUWNhpsMbCfM2DqJbSGJzAWaBY1AmPYrxzRRS6nfBsw+
jSYT31klzBEb1Iv1YJ1sqfBhSh6oEiHtOgeZsIMSZWGtGFA/imNxQBUqkUX0
or5QBLkgMfX/OMrpJSQMJSYTgl6gE4E1z1IMku622kjCMONRwmKQGcgNNcKc
c8pkmX3OiUwyZhvGvdrAa/MCi9u7+fj2ZraExYfxZLS0bcQCWBsTLGtDt7uy
ih1PMKjcJAKU1VR7MaD7RCr0rwr9SLnAvQ7oysDydEV5yyVSLvrgig2ijL2U
wGmaPVJdX8YJfyqKLtm0LI5nS8MHpeS7CAmA42pWTxihqlyRkjC1KwiSamiU
KDZUPMtSkX1V88Kbj6Z36lIuG8dWP40z0LGOiNX5gYpiGMNnC8Izvte9MT5T
ZEgC8ifU0f+MgkVyman1fsxyO+PxL3Z9v8qz8NvnH1NGMWPsDeSu8q9P7sLu
Xq3sujJEoXGT4dDYv3FtnuyozbARV0+YdxUZYeU8iZNHygLBwyjhvt20jW9m
84Fqtlxw3XCa5O0WrLDseEqjIKJrkm+l8L1qVJ3DiQ/nqCmL9z+5bTP6bd7P
+rgaP5KTnb7lQUGx33l3DTwFi6+hI9MdnJ7qZeg0QLqo2hM678CFC3Bfg/tG
V+qgo0KkO7/8KIsTCrfXe22piZgS8QDnvZ6abQ9IOLQA1aj/foNMD1jH7Dv9
vnONUt+sJPMaR0fH6asPGgqh4whn8eXLqbl08O3E12oroVzM0r+vQmipwOsw
TnFBUrIPcMNgmzCczt3Lwqosa05i3y30Fa1FyqIalmaclp7ewTFMI+GXd0uz
5YIV47ssrXv55xGnjshXwsaVCn4ClvgHhMqn+it5avQ5/QWxvg6s34NlJZxb
V8tXfedkpX47RP57lOIUv0Ira5WftX7uZrllgnS/41jPGbgtoi4ORGl2NLB7
iciKLEXc1dsmL7jcJMY1u5fRNVy9/SZ+jo+laqa6qcq6/6PQ1nTzoOfB7IlJ
sgfKecY9wGogWxdjO2dYLQ3V8PuxkNQv48VfL37SRBw6WJFUdnCrq3S3Xhh/
AwA6gvdVCQAA
--1293669435-361820651-972469063=:360--


From akim@epita.fr Wed Oct 25 06:24:10 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oNj8-0006TZ-00; Wed, 25 Oct 2000 06:24:10 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id MAA25210
	Wed, 25 Oct 2000 12:24:52 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13oPmj-0003zB-00; Wed, 25 Oct 2000 12:36:01 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13oNlD-00067p-00; Wed, 25 Oct 2000 12:26:19 +0200
To: David Morgan <dmorgan@symark.com>
Cc: Pavel Roskin <proski@gnu.org>, autoconf@gnu.org, Harlan.Stenn@pfcs.com
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010191856350.19433-100000@woburn.localdomain>
	<39F065A7.CFD5163A@symark.com>
	<mv4em17a0fc.fsf@nostromo.lrde.epita.fr>
	<mv4snplmevc.fsf@nostromo.lrde.epita.fr>
From: Akim Demaille <akim@epita.fr>
Date: 25 Oct 2000 12:26:19 +0200
In-Reply-To: Akim Demaille's message of "25 Oct 2000 11:47:35 +0200"
Message-ID: <mv4bsw9md2s.fsf@nostromo.lrde.epita.fr>
Lines: 91
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

| + print Direct use

print ?!?!?  There are only `echo's in this script.  What a strange
way of tracing a script.

| Direct use
| {One}
| {line}
| {Two
| lines}

This is correct.

| Indirect Use with Quotes
| {One}
| {line}
| {Two
| lines}

This is correct.

| Indirect Use without Quotes
| {line}
| {Two
| lines}

This is *incorrect*.

We have

foo="One line"
: ${foo2=$foo}
for i in $foo2
do
  echo "{$i}"
done

so apparently on the *last* member of $foo was passed to foo2.


| Direct use
| {One}
| {line}
| {Two}
| {lines}

Correct.

| Indirect Use with Quotes
| {One}
| {line}
| {Two}
| {lines}

Correct.


| Indirect Use without Quotes
| {line}
| {lines}

Very *incorrect*.  This corresponds to

| foo="One line"
| bar="Two
| lines"
| 
| IFS="$space$tab$nl"
| 
| : ${foo4=$foo}
| : ${bar4=$bar}
| 
| for i in $foo4
| do
|   echo "{$i}"
| done
| 
| for i in $bar4
| do
|   echo "{$i}"
| done

So indeed it seems that your shell is losing the first item(s?) of the
rhs, items being separated by the IFS.

It is surprising, btw, that your shell didn't complain of anything.

Is there anybody here with an Ultrix who could run the script I sent?
There are Ultrices at Cygnus, right?  I'd like to be sure of the
behavior of Ultrix before deciding of the right fix.


From akim@epita.fr Wed Oct 25 06:38:48 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oNxH-0006jp-00; Wed, 25 Oct 2000 06:38:47 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id MAA26350
	Wed, 25 Oct 2000 12:39:40 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13oQ14-00042V-00; Wed, 25 Oct 2000 12:50:50 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13oNzX-0006DU-00; Wed, 25 Oct 2000 12:41:07 +0200
To: Daniele Arena <daniele@ripe.net>
Cc: Pavel Roskin <proski@gnu.org>, autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
References: <Pine.BSI.4.05L.10010251212420.360-101000@x51.ripe.net>
From: Akim Demaille <akim@epita.fr>
Date: 25 Oct 2000 12:41:07 +0200
In-Reply-To: Daniele Arena's message of "Wed, 25 Oct 2000 12:17:43 +0200 (CEST)"
Message-ID: <mv466mhmce4.fsf@nostromo.lrde.epita.fr>
Lines: 4
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

--=-=-=

Same process, could you run this one please?


--=-=-=
Content-Disposition: attachment; filename=config.status

#! /bin/sh -x

ac_nl='
'
IFS=" 	$ac_nl"

debug=:
me=`echo "$0" | sed 's,.*/,,'`
SHELL=${CONFIG_SHELL-/bin/sh}

config_files="Makefile"

ac_given_srcdir=.
ac_given_INSTALL="/usr/bin/install -c"
# If no file are specified by the user, then we need to provide default
# value.  By we need to know if files were specified by the user.
ac_need_defaults=:

CONFIG_FILES=$config_files

# Create a (secure) tmp directory for tmp files.
: ${TMPDIR=/tmp}
{
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
  test -n "$tmp" && test -d "$tmp"
}  ||
{
  tmp=$TMPDIR/cs$$-$RANDOM
  (umask 077 && mkdir $tmp)
} ||
{
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
   exit 1;
}


#
# CONFIG_FILES section.
#

# No need to generate the scripts if there are no CONFIG_FILES.
# This happens for instance when ./config.status config.h
if test -n "$CONFIG_FILES"; then
  # Protect against being on the right side of a sed subst in config.status.
  sed 's/,@/@@/; s/@,/@@/; s/,;t t$/@;t t/; /@;t t$/s/[\\&,]/\\&/g;
   s/@@/,@/; s/@@/@,/; s/@;t t$/,;t t/' >$tmp/subs.sed <<\CEOF
s,@SHELL@,/bin/sh,;t t
s,@exec_prefix@,${prefix},;t t
s,@prefix@,/usr/local,;t t
s,@program_transform_name@,s,x,x,,;t t
s,@bindir@,${exec_prefix}/bin,;t t
s,@sbindir@,${exec_prefix}/sbin,;t t
s,@libexecdir@,${exec_prefix}/libexec,;t t
s,@datadir@,${prefix}/share,;t t
s,@sysconfdir@,${prefix}/etc,;t t
s,@sharedstatedir@,${prefix}/com,;t t
s,@localstatedir@,${prefix}/var,;t t
s,@libdir@,${exec_prefix}/lib,;t t
s,@includedir@,${prefix}/include,;t t
s,@oldincludedir@,/usr/include,;t t
s,@infodir@,${prefix}/info,;t t
s,@mandir@,${prefix}/man,;t t
s,@ECHO_C@,,;t t
s,@ECHO_N@,-n,;t t
s,@ECHO_T@,,;t t
s,@CFLAGS@,,;t t
s,@CPPFLAGS@,,;t t
s,@CXXFLAGS@,,;t t
s,@FFLAGS@,,;t t
s,@DEFS@, -DPACKAGE=\"autoconf\" -DVERSION=\"2.49b\" ,;t t
s,@LDFLAGS@,,;t t
s,@LIBS@,,;t t
s,@INSTALL_PROGRAM@,${INSTALL},;t t
s,@INSTALL_SCRIPT@,${INSTALL},;t t
s,@INSTALL_DATA@,${INSTALL} -m 644,;t t
s,@PACKAGE@,autoconf,;t t
s,@VERSION@,2.49b,;t t
s,@ACLOCAL@,aclocal,;t t
s,@AUTOCONF@,autoconf,;t t
s,@AUTOMAKE@,automake,;t t
s,@AUTOHEADER@,autoheader,;t t
s,@MAKEINFO@,makeinfo,;t t
s,@SET_MAKE@,,;t t
s,@AT_TESTPATH@,..,;t t
s,@M4@,/usr/local/bin/m4,;t t
s,@AWK@,gawk,;t t
s,@HELP2MAN@,/bin/sh /export/tmpx51/daniele/downloads/cvs/autoconf/missing help2man,;t t
s,@PERL@,/usr/local/bin/perl,;t t
s,@PERLSCRIPTS@,autoscan,;t t
s,@standards_texi@,,;t t
CEOF

  # Split the substitutions into bite-sized pieces for seds with
  # small command number limits, like on Digital OSF/1 and HP-UX.
  ac_max_sed_lines=48
  ac_sed_frag=1 # Number of current file.
  ac_beg=1 # First line for current file.
  ac_end=$ac_max_sed_lines # Line after last line for current file.
  ac_more_lines=:
  ac_sed_cmds=
  while $ac_more_lines; do
    if test $ac_beg -gt 1; then
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    else
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    fi
    if test ! -s $tmp/subs.frag; then
      ac_more_lines=false
    else
      # The purpose of the label and of the branching condition is to
      # speed up the sed processing (if there are no `@' at all, there
      # is no need to browse any of the substitutions).
      # These are the two extra sed commands mentioned above.
      (echo ':t
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
      if test -z "$ac_sed_cmds"; then
  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
      else
  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
      fi
      ac_sed_frag=`expr $ac_sed_frag + 1`
      ac_beg=$ac_end
      ac_end=`expr $ac_end + $ac_max_sed_lines`
    fi
  done
  if test -z "$ac_sed_cmds"; then
    ac_sed_cmds=cat
  fi
fi # test -n "$CONFIG_FILES"

ac_file=$CONFIG_FILES
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  case $ac_file in
  - | *:- | *:-:* ) # input from stdin
        cat >$tmp/stdin
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  * )   ac_file_in=$ac_file.in ;;
  esac

  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  ac_dir=`expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
      X"$ac_file" : 'X\(//\)[^/]' \| \
      X"$ac_file" : 'X\(//\)$' \| \
      X"$ac_file" : 'X\(/\)' \| \
      .   : '\(.\)' 2>/dev/null ||
echo "X"$ac_file"" | sed '
	    /^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/p; q; }
	    /^X\(\/\/\)[^/].*/{ s//\1/p; q; }
	    /^X\(\/\/\)$/{ s//\1/p; q; }
	    /^X\(\/\).*/{ s//\1/p; q; }
	    s/.*/./p; q'`
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    { case "$ac_dir" in
  [\\/]* | ?:[\\/]* ) ac_incr_dir=;;
  *)                      ac_incr_dir=.;;
esac
ac_dummy=""$ac_dir""
for ac_mkdir_dir in `IFS=/; set X $ac_dummy; shift; echo "$@"`; do
  ac_incr_dir=$ac_incr_dir/$ac_mkdir_dir
  test -d $ac_incr_dir || mkdir $ac_incr_dir
done; }

    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
    # A "../" for each directory in $ac_dir_suffix.
    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
  else
    ac_dir_suffix= ac_dots=
  fi

  case $ac_given_srcdir in
  .)  srcdir=.
      if test -z "$ac_dots"; then top_srcdir=.
      else top_srcdir=`echo $ac_dots | sed 's,/$,,'`; fi ;;
  [\\/]* | ?:[\\/]* )
      srcdir=$ac_given_srcdir$ac_dir_suffix;
      top_srcdir=$ac_given_srcdir ;;
  *) # Relative path.
    srcdir=$ac_dots$ac_given_srcdir$ac_dir_suffix
    top_srcdir=$ac_dots$ac_given_srcdir ;;
  esac

  case $ac_given_INSTALL in
  [\\/$]* | ?:[\\/]* ) INSTALL=$ac_given_INSTALL ;;
  *) INSTALL=$ac_dots$ac_given_INSTALL ;;
  esac

  if test x"$ac_file" != x-; then
    echo creating $ac_file
    rm -f "$ac_file"
  fi
  configure_input="Generated automatically from `echo $ac_file_in |
                                                 sed 's,.*/,,'` by configure."

  # Don't redirect the output to AC_FILE directly: use `mv' so that
  # updating is atomic, and doesn't need trapping.

  # First look for the input files in the build tree, otherwise in the
  # src tree.
  ac_file_inputs=`IFS=:
    for f in $ac_file_in; do
      case $f in
      -) echo $tmp/stdin ;;
      [\\/$]* | ?:[\\/]*)
         # Absolute
         test -f "$f" || { echo "configure: error: cannot find input file \\\`$f'" >&2; exit 1; }
         echo $f;;
      *) # Relative
         if test -f "$f"; then
           # Build tree
           echo $f
         elif test -f "$ac_given_srcdir/$f"; then
           # Source tree
           echo $ac_given_srcdir/$f
         else
           # /dev/null tree
           { echo "configure: error: cannot find input file \\\`$f'" >&2; exit 1; }
         fi;;
      esac
    done` || { (exit 1); exit; }
  sed "/^[ 	]*VPATH[ 	]*=[^:]*$/d

:t
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
s,@configure_input@,$configure_input,;t t
s,@srcdir@,$srcdir,;t t
s,@top_srcdir@,$top_srcdir,;t t
s,@INSTALL@,$INSTALL,;t t
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  rm -f $tmp/stdin
  if test x"$ac_file" != x-; then
    mv $tmp/out $ac_file
  else
    cat $tmp/out
    rm -f $tmp/out
  fi

exit 0

--=-=-=--


From daniele@ripe.net Wed Oct 25 06:48:20 2000
Received: from birch.ripe.net ([193.0.1.96])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oO6W-0006oF-00; Wed, 25 Oct 2000 06:48:20 -0400
Received: from x51.ripe.net (x51.ripe.net [193.0.1.51])
	by birch.ripe.net (8.8.8/8.8.8) with ESMTP id MAA21683;
	Wed, 25 Oct 2000 12:47:48 +0200 (CEST)
Date: Wed, 25 Oct 2000 12:47:47 +0200 (CEST)
From: Daniele Arena <daniele@ripe.net>
To: Akim Demaille <akim@epita.fr>
cc: Pavel Roskin <proski@gnu.org>, autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
In-Reply-To: <mv466mhmce4.fsf@nostromo.lrde.epita.fr>
Message-ID: <Pine.BSI.4.05L.10010251245530.360-200000@x51.ripe.net>
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED; BOUNDARY="1293669435-888308151-972470867=:360"
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

--1293669435-888308151-972470867=:360
Content-Type: TEXT/PLAIN; charset=US-ASCII

At your orders, sir...;-)

Cheers,

Daniele.

On 25 Oct 2000, Akim Demaille wrote:

> Same process, could you run this one please?
> 
> 

--1293669435-888308151-972470867=:360
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="config.status.log"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.BSI.4.05L.10010251247470.360@x51.ripe.net>
Content-Description: 
Content-Disposition: attachment; filename="config.status.log"

KyBhY19ubD0NCg0KKyBJRlM9IAkNCg0KKyBkZWJ1Zz06DQorIGVjaG8gLi9j
b25maWcuc3RhdHVzDQorIHNlZCBzLC4qLywsDQorIG1lPWNvbmZpZy5zdGF0
dXMNCisgU0hFTEw9L2Jpbi9zaA0KKyBjb25maWdfZmlsZXM9TWFrZWZpbGUN
CisgYWNfZ2l2ZW5fc3JjZGlyPS4NCisgYWNfZ2l2ZW5fSU5TVEFMTD0vdXNy
L2Jpbi9pbnN0YWxsIC1jDQorIGFjX25lZWRfZGVmYXVsdHM9Og0KKyBDT05G
SUdfRklMRVM9TWFrZWZpbGUNCisgOiAvdG1wDQorIHRtcD0NCisgdG1wPS90
bXAvY3MyMjkwLQ0KKyB1bWFzayAwNzcNCisgbWtkaXIgL3RtcC9jczIyOTAt
DQorIHRlc3QgLW4gTWFrZWZpbGUNCisgc2VkIHMvLEAvQEAvOyBzL0AsL0BA
Lzsgcy8sO3QgdCQvQDt0IHQvOyAvQDt0IHQkL3MvW1xcJixdL1xcJi9nOw0K
ICAgcy9AQC8sQC87IHMvQEAvQCwvOyBzL0A7dCB0JC8sO3QgdC8NCisgYWNf
bWF4X3NlZF9saW5lcz00OA0KKyBhY19zZWRfZnJhZz0xDQorIGFjX2JlZz0x
DQorIGFjX2VuZD00OA0KKyBhY19tb3JlX2xpbmVzPToNCisgYWNfc2VkX2Nt
ZHM9DQorIDoNCisgdGVzdCAxIC1ndCAxDQorIHNlZCA0OHEgL3RtcC9jczIy
OTAtL3N1YnMuc2VkDQorIHRlc3QgISAtcyAvdG1wL2NzMjI5MC0vc3Vicy5m
cmFnDQorIGVjaG8gOnQNCiAgL0BbYS16QS1aX11bYS16QS1aXzAtOV0qQC8h
Yg0KKyBjYXQgL3RtcC9jczIyOTAtL3N1YnMuZnJhZw0KKyB0ZXN0IC16IA0K
KyBhY19zZWRfY21kcz1zZWQgLWYgL3RtcC9jczIyOTAtL3N1YnMtMS5zZWQN
CisgZXhwciAxICsgMQ0KKyBhY19zZWRfZnJhZz0yDQorIGFjX2JlZz00OA0K
KyBleHByIDQ4ICsgNDgNCisgYWNfZW5kPTk2DQorIDoNCisgdGVzdCA0OCAt
Z3QgMQ0KKyBzZWQgMSw0OGQ7IDk2cSAvdG1wL2NzMjI5MC0vc3Vicy5zZWQN
CisgdGVzdCAhIC1zIC90bXAvY3MyMjkwLS9zdWJzLmZyYWcNCisgYWNfbW9y
ZV9saW5lcz1mYWxzZQ0KKyBmYWxzZQ0KKyB0ZXN0IC16IHNlZCAtZiAvdG1w
L2NzMjI5MC0vc3Vicy0xLnNlZA0KKyBhY19maWxlPU1ha2VmaWxlDQorIGFj
X2ZpbGVfaW49TWFrZWZpbGUuaW4NCisgZXhwciBYTWFrZWZpbGUgOiBYXCgu
KlteL11cKS8vKlteL11bXi9dKi8qJCB8IFhNYWtlZmlsZSA6IFhcKC8vXClb
Xi9dIHwgWE1ha2VmaWxlIDogWFwoLy9cKSQgfCBYTWFrZWZpbGUgOiBYXCgv
XCkgfCAuIDogXCguXCkNCisgYWNfZGlyPS4NCisgdGVzdCAuICE9IE1ha2Vm
aWxlDQorIHRlc3QgLiAhPSAuDQorIGFjX2Rpcl9zdWZmaXg9IGFjX2RvdHM9
DQorIHNyY2Rpcj0uDQorIHRlc3QgLXogDQorIHRvcF9zcmNkaXI9Lg0KKyBJ
TlNUQUxMPS91c3IvYmluL2luc3RhbGwgLWMNCisgdGVzdCB4TWFrZWZpbGUg
IT0geC0NCisgZWNobyBjcmVhdGluZyBNYWtlZmlsZQ0KY3JlYXRpbmcgTWFr
ZWZpbGUNCisgcm0gLWYgTWFrZWZpbGUNCisgZWNobyBNYWtlZmlsZS5pbg0K
KyBzZWQgcywuKi8sLA0KKyBjb25maWd1cmVfaW5wdXQ9R2VuZXJhdGVkIGF1
dG9tYXRpY2FsbHkgZnJvbSBNYWtlZmlsZS5pbiBieSBjb25maWd1cmUuDQou
L2NvbmZpZy5zdGF0dXM6IDc6IFN5bnRheCBlcnJvcjogZW5kIG9mIGZpbGUg
dW5leHBlY3RlZCAoZXhwZWN0aW5nICJ9IikNCg==
--1293669435-888308151-972470867=:360--


From akim@epita.fr Wed Oct 25 08:25:13 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oPcH-0008Sy-00; Wed, 25 Oct 2000 08:25:13 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id OAA05589
	Wed, 25 Oct 2000 14:26:04 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13oRg3-0004K1-00; Wed, 25 Oct 2000 14:37:15 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13oPeT-0006GP-00; Wed, 25 Oct 2000 14:27:29 +0200
To: Daniele Arena <daniele@ripe.net>
Cc: Pavel Roskin <proski@gnu.org>, autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
References: <Pine.BSI.4.05L.10010251245530.360-200000@x51.ripe.net>
From: Akim Demaille <akim@epita.fr>
Date: 25 Oct 2000 14:27:29 +0200
In-Reply-To: Daniele Arena's message of "Wed, 25 Oct 2000 12:47:47 +0200 (CEST)"
Message-ID: <mv4vguhkswe.fsf@nostromo.lrde.epita.fr>
Lines: 4
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

--=-=-=

how about this one?


--=-=-=
Content-Disposition: attachment; filename=config.status

#! /bin/sh -x

ac_nl='
'
IFS=" 	$ac_nl"

debug=:
me=`echo "$0" | sed 's,.*/,,'`
SHELL=${CONFIG_SHELL-/bin/sh}

config_files="Makefile"

ac_given_srcdir=.
ac_given_INSTALL="/usr/bin/install -c"
# If no file are specified by the user, then we need to provide default
# value.  By we need to know if files were specified by the user.
ac_need_defaults=:

CONFIG_FILES=$config_files

# Create a (secure) tmp directory for tmp files.
: ${TMPDIR=/tmp}
{
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
  test -n "$tmp" && test -d "$tmp"
}  ||
{
  tmp=$TMPDIR/cs$$-$RANDOM
  (umask 077 && mkdir $tmp)
} ||
{
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
   exit 1;
}


#
# CONFIG_FILES section.
#

# No need to generate the scripts if there are no CONFIG_FILES.
# This happens for instance when ./config.status config.h
if test -n "$CONFIG_FILES"; then
  # Protect against being on the right side of a sed subst in config.status.
  sed 's/,@/@@/; s/@,/@@/; s/,;t t$/@;t t/; /@;t t$/s/[\\&,]/\\&/g;
   s/@@/,@/; s/@@/@,/; s/@;t t$/,;t t/' >$tmp/subs.sed <<\CEOF
s,@SHELL@,/bin/sh,;t t
s,@exec_prefix@,${prefix},;t t
s,@prefix@,/usr/local,;t t
s,@program_transform_name@,s,x,x,,;t t
s,@bindir@,${exec_prefix}/bin,;t t
s,@sbindir@,${exec_prefix}/sbin,;t t
s,@libexecdir@,${exec_prefix}/libexec,;t t
s,@datadir@,${prefix}/share,;t t
s,@sysconfdir@,${prefix}/etc,;t t
s,@sharedstatedir@,${prefix}/com,;t t
s,@localstatedir@,${prefix}/var,;t t
s,@libdir@,${exec_prefix}/lib,;t t
s,@includedir@,${prefix}/include,;t t
s,@oldincludedir@,/usr/include,;t t
s,@infodir@,${prefix}/info,;t t
s,@mandir@,${prefix}/man,;t t
s,@ECHO_C@,,;t t
s,@ECHO_N@,-n,;t t
s,@ECHO_T@,,;t t
s,@CFLAGS@,,;t t
s,@CPPFLAGS@,,;t t
s,@CXXFLAGS@,,;t t
s,@FFLAGS@,,;t t
s,@DEFS@, -DPACKAGE=\"autoconf\" -DVERSION=\"2.49b\" ,;t t
s,@LDFLAGS@,,;t t
s,@LIBS@,,;t t
s,@INSTALL_PROGRAM@,${INSTALL},;t t
s,@INSTALL_SCRIPT@,${INSTALL},;t t
s,@INSTALL_DATA@,${INSTALL} -m 644,;t t
s,@PACKAGE@,autoconf,;t t
s,@VERSION@,2.49b,;t t
s,@ACLOCAL@,aclocal,;t t
s,@AUTOCONF@,autoconf,;t t
s,@AUTOMAKE@,automake,;t t
s,@AUTOHEADER@,autoheader,;t t
s,@MAKEINFO@,makeinfo,;t t
s,@SET_MAKE@,,;t t
s,@AT_TESTPATH@,..,;t t
s,@M4@,/usr/local/bin/m4,;t t
s,@AWK@,gawk,;t t
s,@HELP2MAN@,/bin/sh /export/tmpx51/daniele/downloads/cvs/autoconf/missing help2man,;t t
s,@PERL@,/usr/local/bin/perl,;t t
s,@PERLSCRIPTS@,autoscan,;t t
s,@standards_texi@,,;t t
CEOF

  # Split the substitutions into bite-sized pieces for seds with
  # small command number limits, like on Digital OSF/1 and HP-UX.
  ac_max_sed_lines=48
  ac_sed_frag=1 # Number of current file.
  ac_beg=1 # First line for current file.
  ac_end=$ac_max_sed_lines # Line after last line for current file.
  ac_more_lines=:
  ac_sed_cmds=
  while $ac_more_lines; do
    if test $ac_beg -gt 1; then
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    else
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    fi
    if test ! -s $tmp/subs.frag; then
      ac_more_lines=false
    else
      # The purpose of the label and of the branching condition is to
      # speed up the sed processing (if there are no `@' at all, there
      # is no need to browse any of the substitutions).
      # These are the two extra sed commands mentioned above.
      (echo ':t
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
      if test -z "$ac_sed_cmds"; then
  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
      else
  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
      fi
      ac_sed_frag=`expr $ac_sed_frag + 1`
      ac_beg=$ac_end
      ac_end=`expr $ac_end + $ac_max_sed_lines`
    fi
  done
  if test -z "$ac_sed_cmds"; then
    ac_sed_cmds=cat
  fi
fi # test -n "$CONFIG_FILES"

ac_file=$CONFIG_FILES
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  case $ac_file in
  - | *:- | *:-:* ) # input from stdin
        cat >$tmp/stdin
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  * )   ac_file_in=$ac_file.in ;;
  esac

  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  ac_dir=`expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
      X"$ac_file" : 'X\(//\)[^/]' \| \
      X"$ac_file" : 'X\(//\)$' \| \
      X"$ac_file" : 'X\(/\)' \| \
      .   : '\(.\)' 2>/dev/null ||
echo "X"$ac_file"" | sed '
	    /^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
	    /^X\(\/\/\)[^/].*/{ s//\1/; q; }
	    /^X\(\/\/\)$/{ s//\1/; q; }
	    /^X\(\/\).*/{ s//\1/; q; }
	    s/.*/./; q'`
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    { case "$ac_dir" in
  [\\/]* | ?:[\\/]* ) ac_incr_dir=;;
  *)                      ac_incr_dir=.;;
esac
ac_dummy=""$ac_dir""
for ac_mkdir_dir in `IFS=/; set X $ac_dummy; shift; echo "$@"`; do
  ac_incr_dir=$ac_incr_dir/$ac_mkdir_dir
  test -d $ac_incr_dir || mkdir $ac_incr_dir
done; }

    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
    # A "../" for each directory in $ac_dir_suffix.
    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
  else
    ac_dir_suffix= ac_dots=
  fi

  case $ac_given_srcdir in
  .)  srcdir=.
      if test -z "$ac_dots"; then top_srcdir=.
      else top_srcdir=`echo $ac_dots | sed 's,/$,,'`; fi ;;
  [\\/]* | ?:[\\/]* )
      srcdir=$ac_given_srcdir$ac_dir_suffix;
      top_srcdir=$ac_given_srcdir ;;
  *) # Relative path.
    srcdir=$ac_dots$ac_given_srcdir$ac_dir_suffix
    top_srcdir=$ac_dots$ac_given_srcdir ;;
  esac

  case $ac_given_INSTALL in
  [\\/$]* | ?:[\\/]* ) INSTALL=$ac_given_INSTALL ;;
  *) INSTALL=$ac_dots$ac_given_INSTALL ;;
  esac

  if test x"$ac_file" != x-; then
    echo creating $ac_file
    rm -f "$ac_file"
  fi
  configure_input="Generated automatically"

  # Don't redirect the output to AC_FILE directly: use `mv' so that
  # updating is atomic, and doesn't need trapping.

  # First look for the input files in the build tree, otherwise in the
  # src tree.
  ac_file_inputs=`IFS=:
    for f in $ac_file_in; do
      case $f in
      -) echo $tmp/stdin ;;
      [\\/$]* | ?:[\\/]*)
         # Absolute
         test -f "$f" || { echo "configure: error:" >&2; exit 1; }
         echo $f;;
      *) # Relative
         if test -f "$f"; then
           # Build tree
           echo $f
         elif test -f "$ac_given_srcdir/$f"; then
           # Source tree
           echo $ac_given_srcdir/$f
         else
           # /dev/null tree
           { echo "configure: error:" >&2; exit 1; }
         fi;;
      esac
    done` || { (exit 1); exit; }
  sed "/^[ 	]*VPATH[ 	]*=[^:]*$/d

:t
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
s,@configure_input@,$configure_input,;t t
s,@srcdir@,$srcdir,;t t
s,@top_srcdir@,$top_srcdir,;t t
s,@INSTALL@,$INSTALL,;t t
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  rm -f $tmp/stdin
  if test x"$ac_file" != x-; then
    mv $tmp/out $ac_file
  else
    cat $tmp/out
    rm -f $tmp/out
  fi

exit 0

--=-=-=--


From daniele@ripe.net Wed Oct 25 08:32:32 2000
Received: from birch.ripe.net ([193.0.1.96])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oPjM-0008UY-00; Wed, 25 Oct 2000 08:32:32 -0400
Received: from x51.ripe.net (x51.ripe.net [193.0.1.51])
	by birch.ripe.net (8.8.8/8.8.8) with ESMTP id OAA17459;
	Wed, 25 Oct 2000 14:31:54 +0200 (CEST)
Date: Wed, 25 Oct 2000 14:31:54 +0200 (CEST)
From: Daniele Arena <daniele@ripe.net>
To: Akim Demaille <akim@epita.fr>
cc: Pavel Roskin <proski@gnu.org>, autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
In-Reply-To: <mv4vguhkswe.fsf@nostromo.lrde.epita.fr>
Message-ID: <Pine.BSI.4.05L.10010251429471.360-200000@x51.ripe.net>
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED; BOUNDARY="1293669435-2141658986-972477114=:360"
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

--1293669435-2141658986-972477114=:360
Content-Type: TEXT/PLAIN; charset=US-ASCII

This one seemed to be working better... At least it gave no errors on exit
and it did create a Makefile. Hope it's fixed?

Cheers,

Daniele.

On 25 Oct 2000, Akim Demaille wrote:

> how about this one?
> 
> 

--1293669435-2141658986-972477114=:360
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="config.status.log"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.BSI.4.05L.10010251431540.360@x51.ripe.net>
Content-Description: 
Content-Disposition: attachment; filename="config.status.log"

KyBhY19ubD0NCg0KKyBJRlM9IAkNCg0KKyBkZWJ1Zz06DQorIGVjaG8gLi9j
b25maWcuc3RhdHVzDQorIHNlZCBzLC4qLywsDQorIG1lPWNvbmZpZy5zdGF0
dXMNCisgU0hFTEw9L2Jpbi9zaA0KKyBjb25maWdfZmlsZXM9TWFrZWZpbGUN
CisgYWNfZ2l2ZW5fc3JjZGlyPS4NCisgYWNfZ2l2ZW5fSU5TVEFMTD0vdXNy
L2Jpbi9pbnN0YWxsIC1jDQorIGFjX25lZWRfZGVmYXVsdHM9Og0KKyBDT05G
SUdfRklMRVM9TWFrZWZpbGUNCisgOiAvdG1wDQorIHRtcD0NCisgdG1wPS90
bXAvY3MzNjY0LQ0KKyB1bWFzayAwNzcNCisgbWtkaXIgL3RtcC9jczM2NjQt
DQorIHRlc3QgLW4gTWFrZWZpbGUNCisgc2VkIHMvLEAvQEAvOyBzL0AsL0BA
Lzsgcy8sO3QgdCQvQDt0IHQvOyAvQDt0IHQkL3MvW1xcJixdL1xcJi9nOw0K
ICAgcy9AQC8sQC87IHMvQEAvQCwvOyBzL0A7dCB0JC8sO3QgdC8NCisgYWNf
bWF4X3NlZF9saW5lcz00OA0KKyBhY19zZWRfZnJhZz0xDQorIGFjX2JlZz0x
DQorIGFjX2VuZD00OA0KKyBhY19tb3JlX2xpbmVzPToNCisgYWNfc2VkX2Nt
ZHM9DQorIDoNCisgdGVzdCAxIC1ndCAxDQorIHNlZCA0OHEgL3RtcC9jczM2
NjQtL3N1YnMuc2VkDQorIHRlc3QgISAtcyAvdG1wL2NzMzY2NC0vc3Vicy5m
cmFnDQorIGVjaG8gOnQNCiAgL0BbYS16QS1aX11bYS16QS1aXzAtOV0qQC8h
Yg0KKyBjYXQgL3RtcC9jczM2NjQtL3N1YnMuZnJhZw0KKyB0ZXN0IC16IA0K
KyBhY19zZWRfY21kcz1zZWQgLWYgL3RtcC9jczM2NjQtL3N1YnMtMS5zZWQN
CisgZXhwciAxICsgMQ0KKyBhY19zZWRfZnJhZz0yDQorIGFjX2JlZz00OA0K
KyBleHByIDQ4ICsgNDgNCisgYWNfZW5kPTk2DQorIDoNCisgdGVzdCA0OCAt
Z3QgMQ0KKyBzZWQgMSw0OGQ7IDk2cSAvdG1wL2NzMzY2NC0vc3Vicy5zZWQN
CisgdGVzdCAhIC1zIC90bXAvY3MzNjY0LS9zdWJzLmZyYWcNCisgYWNfbW9y
ZV9saW5lcz1mYWxzZQ0KKyBmYWxzZQ0KKyB0ZXN0IC16IHNlZCAtZiAvdG1w
L2NzMzY2NC0vc3Vicy0xLnNlZA0KKyBhY19maWxlPU1ha2VmaWxlDQorIGFj
X2ZpbGVfaW49TWFrZWZpbGUuaW4NCisgZXhwciBYTWFrZWZpbGUgOiBYXCgu
KlteL11cKS8vKlteL11bXi9dKi8qJCB8IFhNYWtlZmlsZSA6IFhcKC8vXClb
Xi9dIHwgWE1ha2VmaWxlIDogWFwoLy9cKSQgfCBYTWFrZWZpbGUgOiBYXCgv
XCkgfCAuIDogXCguXCkNCisgYWNfZGlyPS4NCisgdGVzdCAuICE9IE1ha2Vm
aWxlDQorIHRlc3QgLiAhPSAuDQorIGFjX2Rpcl9zdWZmaXg9IGFjX2RvdHM9
DQorIHNyY2Rpcj0uDQorIHRlc3QgLXogDQorIHRvcF9zcmNkaXI9Lg0KKyBJ
TlNUQUxMPS91c3IvYmluL2luc3RhbGwgLWMNCisgdGVzdCB4TWFrZWZpbGUg
IT0geC0NCisgZWNobyBjcmVhdGluZyBNYWtlZmlsZQ0KY3JlYXRpbmcgTWFr
ZWZpbGUNCisgcm0gLWYgTWFrZWZpbGUNCisgY29uZmlndXJlX2lucHV0PUdl
bmVyYXRlZCBhdXRvbWF0aWNhbGx5DQorIElGUz06DQorIHRlc3QgLWYgTWFr
ZWZpbGUuaW4NCisgZWNobyBNYWtlZmlsZS5pbg0KKyBhY19maWxlX2lucHV0
cz1NYWtlZmlsZS5pbg0KKyBzZWQgL15bIAldKlZQQVRIWyAJXSo9W146XSok
L2QNCg0KOnQNCi9AW2EtekEtWl9dW2EtekEtWl8wLTldKkAvIWINCnMsQGNv
bmZpZ3VyZV9pbnB1dEAsR2VuZXJhdGVkIGF1dG9tYXRpY2FsbHksO3QgdA0K
cyxAc3JjZGlyQCwuLDt0IHQNCnMsQHRvcF9zcmNkaXJALC4sO3QgdA0KcyxA
SU5TVEFMTEAsL3Vzci9iaW4vaW5zdGFsbCAtYyw7dCB0DQogTWFrZWZpbGUu
aW4NCisgZXZhbCBzZWQgLWYgL3RtcC9jczM2NjQtL3N1YnMtMS5zZWQNCisg
c2VkIC1mIC90bXAvY3MzNjY0LS9zdWJzLTEuc2VkDQorIHJtIC1mIC90bXAv
Y3MzNjY0LS9zdGRpbg0KKyB0ZXN0IHhNYWtlZmlsZSAhPSB4LQ0KKyBtdiAv
dG1wL2NzMzY2NC0vb3V0IE1ha2VmaWxlDQorIGV4aXQgMA0K
--1293669435-2141658986-972477114=:360--


From akim@epita.fr Wed Oct 25 08:50:30 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oQ0k-0000PF-00; Wed, 25 Oct 2000 08:50:30 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id OAA08376
	Wed, 25 Oct 2000 14:51:11 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13oS4N-0004Tl-00; Wed, 25 Oct 2000 15:02:23 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13oQ2l-0006Kc-00; Wed, 25 Oct 2000 14:52:35 +0200
To: Daniele Arena <daniele@ripe.net>
Cc: Pavel Roskin <proski@gnu.org>, autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
References: <Pine.BSI.4.05L.10010251429471.360-200000@x51.ripe.net>
From: Akim Demaille <akim@epita.fr>
Date: 25 Oct 2000 14:52:35 +0200
In-Reply-To: Daniele Arena's message of "Wed, 25 Oct 2000 14:31:54 +0200 (CEST)"
Message-ID: <mv4n1ftkrqk.fsf@nostromo.lrde.epita.fr>
Lines: 76
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "Daniele" == Daniele Arena <daniele@ripe.net> writes:

Daniele> This one seemed to be working better... At least it gave no
Daniele> errors on exit and it did create a Makefile. Hope it's fixed?

OK, then the problem is that your shell is bad at following escaped
quotes.  What I changed is this snippet:

  ac_file_inputs=`IFS=:
    for f in $ac_file_in; do
      case $f in
      -) echo $tmp/stdin ;;
      [\\/$]* | ?:[\\/]*)
         # Absolute
         test -f "$f" || { echo "configure: error: cannot find input file \\\`$f'" >&2; exit 1; }
         echo $f;;
      *) # Relative
         if test -f "$f"; then
           # Build tree
           echo $f
         elif test -f "$ac_given_srcdir/$f"; then
           # Source tree
           echo $ac_given_srcdir/$f
         else
           # /dev/null tree
           { echo "configure: error: cannot find input file \\\`$f'" >&2; exit 1; }
         fi;;
      esac
    done` || { (exit 1); exit; }

I remove the 

        cannot find input file \\\`$f'

part of the error messages.  This is a real pain.  Is your system
really `alive' in the sense that other people might use it today?
Isn't it a system that its users should update?  Because if it is,
maybe we can diagnose that it is too broken.  Otherwise we will have
to struggle a lot to get something working on it.

Do you install GNU package by hand on your system?  Do they compile
cleanly?  For instance, can you compile the textutils?

Anyway, I'd propose simply not to use `$f' here, but simply this:

  ac_file_inputs=`IFS=:
    for f in $ac_file_in; do
      case $f in
      -) echo $tmp/stdin ;;
      [\\/$]* | ?:[\\/]*)
         # Absolute
         test -f "$f" || { echo "configure: error: cannot find input file: $f" >&2; exit 1; }
         echo $f;;
      *) # Relative
         if test -f "$f"; then
           # Build tree
           echo $f
         elif test -f "$ac_given_srcdir/$f"; then
           # Source tree
           echo $ac_given_srcdir/$f
         else
           # /dev/null tree
           { echo "configure: error: cannot find input file: $f" >&2; exit 1; }
         fi;;
      esac
    done` || { (exit 1); exit; }

But it bugs me somewhat.

Maybe we should go to using `read'.  Pavel, Alexandre, what would you
say?  I confess I'm quite attached to a standard layout of the error
messages, hence I do prefer the original.

Or we go back to the old and painful way of creating that list :(

Is xargs portable?


From Alexander.Thiel@tc.pci.uni-heidelberg.de Wed Oct 25 09:11:30 2000
Received: from relay.uni-heidelberg.de ([129.206.100.212])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oQL4-0000YJ-00
	for <autoconf@gnu.org>; Wed, 25 Oct 2000 09:11:30 -0400
Received: from indy.pci.uni-heidelberg.de (indy.pci.uni-heidelberg.de [129.206.21.90])
	by relay.uni-heidelberg.de (8.9.3+Sun/8.9.3) with ESMTP id PAA14530
	for <autoconf@gnu.org>; Wed, 25 Oct 2000 15:11:28 +0200 (MET DST)
Received: from hilbert.pci.uni-heidelberg.de (hilbert.pci.uni-heidelberg.de [129.206.21.113])
	by indy.pci.uni-heidelberg.de (980427.SGI.8.8.8/8.8.7) with ESMTP id PAA27191
	for <autoconf@gnu.org>; Wed, 25 Oct 2000 15:11:23 +0200 (MDT)
Received: from localhost (localhost [[UNIX: localhost]])
	by hilbert.pci.uni-heidelberg.de (8.9.3/8.8.7) id PAA05631
	for autoconf@gnu.org; Wed, 25 Oct 2000 15:11:22 +0200
From: Alexander Thiel <Alexander.Thiel@tc.pci.uni-heidelberg.de>
Date: Wed, 25 Oct 2000 15:11:22 +0200
X-Mailer: KMail [version 1.1.99]
Content-Type: text/plain;
  charset="iso-8859-1"
To: autoconf@gnu.org
Subject: Adding new machines to config.sub
MIME-Version: 1.0
Message-Id: <00102515112200.05422@hilbert>
Content-Transfer-Encoding: 8bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hello,

I noticed that config.sub (at least the version that comes with 
autoconf-2.13) does not yet recognise the newer Alpha processors:

> config.guess
alphaev6-dec-osf5.0
> config.sub `config.guess`
Invalid configuration `alphaev6-dec-osf5.0': machine `alphaev6-dec' not 
recognized 

Is there a patched version of config.sub, or do you want me update it and 
send in the diffs.

Cheers,
	Alex


From akim@epita.fr Wed Oct 25 09:25:00 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oQY6-0000on-00
	for <autoconf@gnu.org>; Wed, 25 Oct 2000 09:25:00 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id PAA11851
	Wed, 25 Oct 2000 15:22:15 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13oSYQ-0004ev-00; Wed, 25 Oct 2000 15:33:26 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13oQWp-0006N5-00; Wed, 25 Oct 2000 15:23:39 +0200
To: Alexander Thiel <Alexander.Thiel@tc.pci.uni-heidelberg.de>
Cc: autoconf@gnu.org
Subject: Re: Adding new machines to config.sub
References: <00102515112200.05422@hilbert>
From: Akim Demaille <akim@epita.fr>
Date: 25 Oct 2000 15:23:39 +0200
In-Reply-To: Alexander Thiel's message of "Wed, 25 Oct 2000 15:11:22 +0200"
Message-ID: <mv4em15kqas.fsf@nostromo.lrde.epita.fr>
Lines: 9
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "Alexander" == Alexander Thiel <Alexander.Thiel@tc.pci.uni-heidelberg.de> writes:

Alexander> Is there a patched version of config.sub, or do you want me
Alexander> update it and send in the diffs.

See the module `config' on subversions.gnu.org, and send diffs to
config-patches@gnu.org.

        Akim


From daniele@ripe.net Wed Oct 25 09:25:44 2000
Received: from birch.ripe.net ([193.0.1.96])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oQYp-0000px-00; Wed, 25 Oct 2000 09:25:43 -0400
Received: from x51.ripe.net (x51.ripe.net [193.0.1.51])
	by birch.ripe.net (8.8.8/8.8.8) with ESMTP id PAA03367;
	Wed, 25 Oct 2000 15:25:09 +0200 (CEST)
Date: Wed, 25 Oct 2000 15:25:09 +0200 (CEST)
From: Daniele Arena <daniele@ripe.net>
To: Akim Demaille <akim@epita.fr>
cc: Pavel Roskin <proski@gnu.org>, autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
In-Reply-To: <mv4n1ftkrqk.fsf@nostromo.lrde.epita.fr>
Message-ID: <Pine.BSI.4.05L.10010251505390.360-100000@x51.ripe.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hi Akim,

Glad that you finally got the "bug".

On 25 Oct 2000, Akim Demaille wrote:

> OK, then the problem is that your shell is bad at following escaped
> quotes.  What I changed is this snippet:

[...]

> I remove the 
> 
>         cannot find input file \\\`$f'
> 
> part of the error messages.  This is a real pain.  Is your system
> really `alive' in the sense that other people might use it today?
> Isn't it a system that its users should update?  Because if it is,
> maybe we can diagnose that it is too broken.  Otherwise we will have
> to struggle a lot to get something working on it.

This is a nice question. Thanks for asking.:) I'll put aside my personal
considerations, and advocate the cause of BSDI 3.1 . This OS is indeed
quite old-fashioned (last version is 4.1), but probably no more than AIX
3.2 is. AFAIK, it is not "broken" in the sense that an OS upgrade is
recommended. We here are using it a lot as a desktop OS. True, we're not
making an intensive use of Autoconf, and have other platforms where we can
run it. But it could become harder if other GNU packages start to become
uncompilable. I don't know, apart from us, how many people are using this
OS in the world.

That actually brings a "philosophical" question I always wanted to ask to
GNU people (RMS, are you there?:); and that is, how far goes the support
for oldish OSs in GNU packages? (More so in a "key" package like
autoconf). Is there a list of obsoleted OSs for which you do not grant
functionality? Did I maybe miss the answer to that in some FAQ?

> Do you install GNU package by hand on your system?  Do they compile
> cleanly?  For instance, can you compile the textutils?

I had no problem until now. I hadn't compiled textutils until 20 minutes
ago, but now I did and it all went smoothly.

I guess you'll have to decide if you want to support BSDI 3.1 or not...
BTW, I unfortunately have no BSDI 4.1 where to test to see if the shell
behaviour has changed or not.

Whatever happens, thanks for the good job you're doing!

> Anyway, I'd propose simply not to use `$f' here, but simply this:

[...]

> But it bugs me somewhat.
> 
> Maybe we should go to using `read'.  Pavel, Alexandre, what would you
> say?  I confess I'm quite attached to a standard layout of the error
> messages, hence I do prefer the original.
> 
> Or we go back to the old and painful way of creating that list :(
> 
> Is xargs portable?
> 


Cheers,

Daniele.






From akim@epita.fr Wed Oct 25 09:37:09 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oQjh-00012D-00; Wed, 25 Oct 2000 09:36:59 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id PAA13264
	Wed, 25 Oct 2000 15:34:49 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13oSka-0004rL-00; Wed, 25 Oct 2000 15:46:00 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13oQhy-0006OG-00; Wed, 25 Oct 2000 15:35:10 +0200
To: Daniele Arena <daniele@ripe.net>
Cc: Pavel Roskin <proski@gnu.org>, autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
References: <Pine.BSI.4.05L.10010251505390.360-100000@x51.ripe.net>
From: Akim Demaille <akim@epita.fr>
Date: 25 Oct 2000 15:35:10 +0200
In-Reply-To: Daniele Arena's message of "Wed, 25 Oct 2000 15:25:09 +0200 (CEST)"
Message-ID: <mv4aebtkprl.fsf@nostromo.lrde.epita.fr>
Lines: 36
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "Daniele" == Daniele Arena <daniele@ripe.net> writes:

Daniele> This is a nice question. Thanks for asking.:) I'll put aside
Daniele> my personal considerations, and advocate the cause of BSDI
Daniele> 3.1 . 

Arg, sorry, I was lost again, thinking the failure was observed on QNX
something.  In fact the recent change I made to enhance config.log
maybe useful in config.status too: plenty of data on the machine.

Nah, that's really the point of config.log.  I should just ask for
config.log too :)

Anyway...

Daniele> That actually brings a "philosophical" question I always
Daniele> wanted to ask to GNU people (RMS, are you there?:); and that
Daniele> is, how far goes the support for oldish OSs in GNU packages? 

Quite far.  BSDI 3.1 is a target we aim at, we still support even
older systems.


Daniele> (More so in a "key" package like autoconf). Is there a list
Daniele> of obsoleted OSs for which you do not grant functionality? 

Nope, but it might happen in the future.  Currently, but for very rare
cases, there is no reason for Autoconf not to provide better support.


Daniele> I had no problem until now. I hadn't compiled textutils until
Daniele> 20 minutes ago, but now I did and it all went smoothly.

That's a clear sign we have to maintain your architecture alive :)

Akim


From dmorgan@symark.com Wed Oct 25 11:10:40 2000
Received: from firewall.symark.westlake.iswest.net ([207.178.203.34] helo=gateway.symark.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oSCO-0002ej-00; Wed, 25 Oct 2000 11:10:40 -0400
Received: (from mailer@localhost)
	by gateway.symark.com (8.9.3/8.9.3) id IAA16309;
	Wed, 25 Oct 2000 08:10:39 -0700
Received: from wombat.symark.com(128.1.1.33) by gateway.symark.com via smap (V2.1+anti-relay+anti-spam)
	id xma016304; Wed, 25 Oct 00 08:10:36 -0700
Message-ID: <39F6F8BF.6F5E73E9@symark.com>
Date: Wed, 25 Oct 2000 08:14:07 -0700
From: David Morgan <dmorgan@symark.com>
Organization: Symark Software
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: Akim Demaille <akim@epita.fr>
CC: Paul Eggert <eggert@twinsun.com>, Pavel Roskin <proski@gnu.org>,
        "autoconf@gnu.org" <autoconf@gnu.org>
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010241238060.7951-100000@fonzie.nine.com>
		<39F5DD7A.D94A0D5B@symark.com> <39F5FD10.37D7081F@symark.com> <mv4g0llmdmz.fsf@nostromo.lrde.epita.fr>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Akim Demaille wrote:
> 
> >>>>> "David" == David Morgan <dmorgan@symark.com> writes:
> 
> David> The problem is the expr replacement and the sed on ac_dir.
> 
> David> The expr parts returns '.' on stdout (correct) and 1 - which
> David> seems wrong.
> 
> So to summarize, the problem is that if you run this:
> 
> AC_INIT
> echo AC_SHELL_DIRNAME(foo)
> 
> you get `. . .' instead of just `.', right?
> 
> The first `.' is coming from `expr', which is right, but seems to be
> failing anyway.
> 
> And then you say that sed is responsible for the two other dots,
> right?  This is weird.  Where is it coming from?  Ouch.  In fact I can
> reproduce this extra dot too.
> 
> /tmp % echo "Xfoo" |                                             nostromo 12:08
> pipe>     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/p; q; }
> pipe quote>   /^X\(\/\/\)[^/].*/{ s//\1/p; q; }
> pipe quote>     /^X\(\/\/\)$/{ s//\1/p; q; }
> pipe quote>     /^X\(\/\).*/{ s//\1/p; q; }
> pipe quote>     s/.*/./p; q'
> .
> .
> 
> Arg! -n is missing, so since there is a `p', it's printed twice.
> 
> Paul, what do you prefer?  I chose not to add `-n' but to remove the
> `p', if you think there is a difference and you prefer the other
> solution, I'll adjust the code.
> 
> David, could you run this script?
> 
>   --------------------------------------------------------------------------------
> 
>    configureName: configure
>             Type: Plain Text (text/plain)

Ok,

The script results are:

.
1
====
.
0

Which is what I had seen.

At least it's not just me for the sed problem :)

So what next for this one?

Regards
 David


From dmorgan@symark.com Wed Oct 25 11:12:40 2000
Received: from firewall.symark.westlake.iswest.net ([207.178.203.34] helo=gateway.symark.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oSEJ-0002fJ-00; Wed, 25 Oct 2000 11:12:39 -0400
Received: (from mailer@localhost)
	by gateway.symark.com (8.9.3/8.9.3) id IAA16492;
	Wed, 25 Oct 2000 08:12:39 -0700
Received: from wombat.symark.com(128.1.1.33) by gateway.symark.com via smap (V2.1+anti-relay+anti-spam)
	id xma016464; Wed, 25 Oct 00 08:12:13 -0700
Message-ID: <39F6F920.A9F6C5B6@symark.com>
Date: Wed, 25 Oct 2000 08:15:44 -0700
From: David Morgan <dmorgan@symark.com>
Organization: Symark Software
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: Akim Demaille <akim@epita.fr>
CC: Pavel Roskin <proski@gnu.org>, "autoconf@gnu.org" <autoconf@gnu.org>
Subject: Re: Various systems (was: Success (mostly) with the testsuite)
References: <Pine.LNX.4.21.0010241139500.4924-100000@fonzie.nine.com>
		<39F5B7EF.29F0E38@symark.com> <mv4k8axmelj.fsf_-_@nostromo.lrde.epita.fr>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Akim,

What are you asking for here?

The machine is a i386-pc-qnx based on config.guess

What details do we really need to keep though?

Regards
 David

Akim Demaille wrote:
> 
> >>>>> "David" == David Morgan <dmorgan@symark.com> writes:
> 
> David> Neutrino is very different from QNX 4 - it is more Unix
> David> compliant - I think :)
> 
> It would be great to document the various system just like we started
> with the different shells.


From dmorgan@symark.com Wed Oct 25 11:25:32 2000
Received: from firewall.symark.westlake.iswest.net ([207.178.203.34] helo=gateway.symark.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oSQl-0002le-00; Wed, 25 Oct 2000 11:25:32 -0400
Received: (from mailer@localhost)
	by gateway.symark.com (8.9.3/8.9.3) id IAA17006;
	Wed, 25 Oct 2000 08:24:39 -0700
Received: from wombat.symark.com(128.1.1.33) by gateway.symark.com via smap (V2.1+anti-relay+anti-spam)
	id xma016976; Wed, 25 Oct 00 08:24:18 -0700
Message-ID: <39F6FBF5.27830B2A@symark.com>
Date: Wed, 25 Oct 2000 08:27:49 -0700
From: David Morgan <dmorgan@symark.com>
Organization: Symark Software
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: Akim Demaille <akim@epita.fr>
CC: Pavel Roskin <proski@gnu.org>, autoconf@gnu.org, Harlan.Stenn@pfcs.com
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010191856350.19433-100000@woburn.localdomain>
		<39F065A7.CFD5163A@symark.com>
		<mv4em17a0fc.fsf@nostromo.lrde.epita.fr>
		<mv4snplmevc.fsf@nostromo.lrde.epita.fr> <mv4bsw9md2s.fsf@nostromo.lrde.epita.fr>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hi Akim,

Akim Demaille wrote:
> 
> | + print Direct use
> 
> print ?!?!?  There are only `echo's in this script.  What a strange
> way of tracing a script.

No comment
...

> 
> | Indirect Use without Quotes
> | {line}
> | {Two
> | lines}
> 
> This is *incorrect*.
> 
> We have
> 
> foo="One line"
> : ${foo2=$foo}
> for i in $foo2
> do
>   echo "{$i}"
> done
> 
> so apparently on the *last* member of $foo was passed to foo2.

That's what it appears an echo of $foo2 just returns line.

...
> 
> | Indirect Use without Quotes
> | {line}
> | {lines}
> 
> Very *incorrect*.  This corresponds to
> 
> | foo="One line"
> | bar="Two
> | lines"
> |
> | IFS="$space$tab$nl"
> |
> | : ${foo4=$foo}
> | : ${bar4=$bar}
> |
> | for i in $foo4
> | do
> |   echo "{$i}"
> | done
> |
> | for i in $bar4
> | do
> |   echo "{$i}"
> | done
> 
> So indeed it seems that your shell is losing the first item(s?) of the
> rhs, items being separated by the IFS.

Only when passed as ${var2=$var1} and not ${var2="$var1"}
> 
> It is surprising, btw, that your shell didn't complain of anything.

No complaints.

We aren't checking any $? here and when I did it seems to be 0.

> 
> Is there anybody here with an Ultrix who could run the script I sent?
> There are Ultrices at Cygnus, right?  I'd like to be sure of the
> behavior of Ultrix before deciding of the right fix.

Thanks for the help - I'm sure other people on QNX (including QNX themselves)
will appreciate it.

Regards
 David


From akim@epita.fr Wed Oct 25 11:43:50 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oSgx-000338-00; Wed, 25 Oct 2000 11:42:15 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id RAA26676
	Wed, 25 Oct 2000 17:42:56 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13oUkb-0005RF-00; Wed, 25 Oct 2000 17:54:09 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13oSiu-0002ex-00; Wed, 25 Oct 2000 17:44:16 +0200
To: David Morgan <dmorgan@symark.com>
Cc: Pavel Roskin <proski@gnu.org>, "autoconf@gnu.org" <autoconf@gnu.org>
Subject: Re: Various systems (was: Success (mostly) with the testsuite)
References: <Pine.LNX.4.21.0010241139500.4924-100000@fonzie.nine.com>
	<39F5B7EF.29F0E38@symark.com>
	<mv4k8axmelj.fsf_-_@nostromo.lrde.epita.fr>
	<39F6F920.A9F6C5B6@symark.com>
From: Akim Demaille <akim@epita.fr>
Date: 25 Oct 2000 17:44:15 +0200
In-Reply-To: David Morgan's message of "Wed, 25 Oct 2000 08:15:44 -0700"
Message-ID: <mv4g0llj580.fsf@nostromo.lrde.epita.fr>
Lines: 12
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "David" == David Morgan <dmorgan@symark.com> writes:

David> Akim, What are you asking for here?

Some humanity in all this mess :)

What I mean is that I like to know what's behind the names.  I'd like
the documentation to present the systems just like we started
presenting a few shells.  Something which says what QNX is, give some
information about its posixness, some urls etc.

        Akim


From akim@epita.fr Wed Oct 25 11:45:14 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oSjZ-00038P-00; Wed, 25 Oct 2000 11:45:14 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id RAA26955
	Wed, 25 Oct 2000 17:45:33 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13oUn7-0005Sk-00; Wed, 25 Oct 2000 17:56:45 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13oSlQ-000869-00; Wed, 25 Oct 2000 17:46:52 +0200
To: David Morgan <dmorgan@symark.com>
Cc: Paul Eggert <eggert@twinsun.com>, Pavel Roskin <proski@gnu.org>,
        "autoconf@gnu.org" <autoconf@gnu.org>
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010241238060.7951-100000@fonzie.nine.com>
	<39F5DD7A.D94A0D5B@symark.com> <39F5FD10.37D7081F@symark.com>
	<mv4g0llmdmz.fsf@nostromo.lrde.epita.fr>
	<39F6F8BF.6F5E73E9@symark.com>
From: Akim Demaille <akim@epita.fr>
Date: 25 Oct 2000 17:46:52 +0200
In-Reply-To: David Morgan's message of "Wed, 25 Oct 2000 08:14:07 -0700"
Message-ID: <mv4bsw8kjo3.fsf@nostromo.lrde.epita.fr>
Lines: 12
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

| The script results are:
| 
| .
| 1

Does it *always* fail, or it's just the operator | which does not
erase failures?

expr 'a' : '\(a\)'; echo $?

expr 'a' : '\(b\)' '|' 'a' : '\(a\)'; echo $?


From dmorgan@symark.com Wed Oct 25 11:49:41 2000
Received: from firewall.symark.westlake.iswest.net ([207.178.203.34] helo=gateway.symark.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oSo8-0003BH-00; Wed, 25 Oct 2000 11:49:40 -0400
Received: (from mailer@localhost)
	by gateway.symark.com (8.9.3/8.9.3) id IAA18907;
	Wed, 25 Oct 2000 08:49:39 -0700
Received: from wombat.symark.com(128.1.1.33) by gateway.symark.com via smap (V2.1+anti-relay+anti-spam)
	id xma018879; Wed, 25 Oct 00 08:49:21 -0700
Message-ID: <39F701D4.870867F4@symark.com>
Date: Wed, 25 Oct 2000 08:52:52 -0700
From: David Morgan <dmorgan@symark.com>
Organization: Symark Software
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: Akim Demaille <akim@epita.fr>
CC: Pavel Roskin <proski@gnu.org>, "autoconf@gnu.org" <autoconf@gnu.org>
Subject: Re: Various systems (was: Success (mostly) with the testsuite)
References: <Pine.LNX.4.21.0010241139500.4924-100000@fonzie.nine.com>
		<39F5B7EF.29F0E38@symark.com>
		<mv4k8axmelj.fsf_-_@nostromo.lrde.epita.fr>
		<39F6F920.A9F6C5B6@symark.com> <mv4g0llj580.fsf@nostromo.lrde.epita.fr>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hi Akim,

How about as info for you

QNX is a realtime Operating System running on Intel architecture.

Platform:
QNX 4.25

www.qnx.com

Man pages at:
http://support.qnx.com/support/docs/qnx4/

Platform:
QNX Neutrino
www.qnx.com
Man pages at:
http://support.qnx.com/support/docs/neutrino_qrp/index.html

Hope this helps

Regards
 David

Akim Demaille wrote:
> 
> >>>>> "David" == David Morgan <dmorgan@symark.com> writes:
> 
> David> Akim, What are you asking for here?
> 
> Some humanity in all this mess :)
> 
> What I mean is that I like to know what's behind the names.  I'd like
> the documentation to present the systems just like we started
> presenting a few shells.  Something which says what QNX is, give some
> information about its posixness, some urls etc.
> 
>         Akim


From dmorgan@symark.com Wed Oct 25 11:55:11 2000
Received: from firewall.symark.westlake.iswest.net ([207.178.203.34] helo=gateway.symark.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oStS-0003Es-00; Wed, 25 Oct 2000 11:55:10 -0400
Received: (from mailer@localhost)
	by gateway.symark.com (8.9.3/8.9.3) id IAA19117;
	Wed, 25 Oct 2000 08:55:10 -0700
Received: from wombat.symark.com(128.1.1.33) by gateway.symark.com via smap (V2.1+anti-relay+anti-spam)
	id xma019100; Wed, 25 Oct 00 08:54:40 -0700
Message-ID: <39F70313.6AB97164@symark.com>
Date: Wed, 25 Oct 2000 08:58:11 -0700
From: David Morgan <dmorgan@symark.com>
Organization: Symark Software
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: Akim Demaille <akim@epita.fr>
CC: "autoconf@gnu.org" <autoconf@gnu.org>, Paul Eggert <eggert@twinsun.com>,
        Pavel Roskin <proski@gnu.org>
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010241238060.7951-100000@fonzie.nine.com>
		<39F5DD7A.D94A0D5B@symark.com> <39F5FD10.37D7081F@symark.com>
		<mv4g0llmdmz.fsf@nostromo.lrde.epita.fr>
		<39F6F8BF.6F5E73E9@symark.com> <mv4bsw8kjo3.fsf@nostromo.lrde.epita.fr>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Akim Demaille wrote:
> 
> | The script results are:
> |
> | .
> | 1
> 
> Does it *always* fail, or it's just the operator | which does not
> erase failures?
> 
> expr 'a' : '\(a\)'; echo $?
> 
> expr 'a' : '\(b\)' '|' 'a' : '\(a\)'; echo $?

It always fails

Both cases return 'a' and an exit code of 1.

Looks like a buggy OS at this point as I tried the failure case of just

expr 'a' : '\(b\)' ; echo $?

And I get a 0 with no output.

Regards
 David


From akim@epita.fr Wed Oct 25 12:07:40 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oT5X-0003NT-00; Wed, 25 Oct 2000 12:07:40 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id SAA29350
	Wed, 25 Oct 2000 18:08:20 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13oV9A-0005bT-00; Wed, 25 Oct 2000 18:19:32 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13oT7T-0003sK-00; Wed, 25 Oct 2000 18:09:39 +0200
To: David Morgan <dmorgan@symark.com>
Cc: "autoconf@gnu.org" <autoconf@gnu.org>, Paul Eggert <eggert@twinsun.com>,
        Pavel Roskin <proski@gnu.org>
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010241238060.7951-100000@fonzie.nine.com>
	<39F5DD7A.D94A0D5B@symark.com> <39F5FD10.37D7081F@symark.com>
	<mv4g0llmdmz.fsf@nostromo.lrde.epita.fr>
	<39F6F8BF.6F5E73E9@symark.com>
	<mv4bsw8kjo3.fsf@nostromo.lrde.epita.fr>
	<39F70313.6AB97164@symark.com>
From: Akim Demaille <akim@epita.fr>
Date: 25 Oct 2000 18:09:39 +0200
In-Reply-To: David Morgan's message of "Wed, 25 Oct 2000 08:58:11 -0700"
Message-ID: <mv43dhkkim4.fsf@nostromo.lrde.epita.fr>
Lines: 33
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "David" == David Morgan <dmorgan@symark.com> writes:

David> Akim Demaille wrote:
>> | The script results are: | | .  | 1
>> 
>> Does it *always* fail, or it's just the operator | which does not
>> erase failures?
>> 
>> expr 'a' : '\(a\)'; echo $?
>> 
>> expr 'a' : '\(b\)' '|' 'a' : '\(a\)'; echo $?

David> It always fails

David> Both cases return 'a' and an exit code of 1.

David> Looks like a buggy OS at this point as I tried the failure case
David> of just

David> expr 'a' : '\(b\)' ; echo $?

David> And I get a 0 with no output.

Nia?  Are you saying `expr' is always exiting the negation of the
expected answer?

expr 'a' : '\(a\)' || echo failure
expr 'a' : '\(b\)' && echo failure

gives twice failure?  How does the following behave?

expr 'a' : 'a' || echo failure
expr 'a' : 'b' && echo failure


From dmorgan@symark.com Wed Oct 25 12:13:21 2000
Received: from firewall.symark.westlake.iswest.net ([207.178.203.34] helo=gateway.symark.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oTB3-0003Rr-00; Wed, 25 Oct 2000 12:13:21 -0400
Received: (from mailer@localhost)
	by gateway.symark.com (8.9.3/8.9.3) id JAA19940;
	Wed, 25 Oct 2000 09:13:10 -0700
Received: from wombat.symark.com(128.1.1.33) by gateway.symark.com via smap (V2.1+anti-relay+anti-spam)
	id xma019936; Wed, 25 Oct 00 09:12:58 -0700
Message-ID: <39F7075D.C60BF367@symark.com>
Date: Wed, 25 Oct 2000 09:16:29 -0700
From: David Morgan <dmorgan@symark.com>
Organization: Symark Software
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: Pavel Roskin <proski@gnu.org>
CC: "autoconf@gnu.org" <autoconf@gnu.org>
Subject: Failure of testsuite/autoupdate
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hi Pavel,

I am trying the testsuite on QNX and in test 7 we lock up totally.

I investigated the cause and it is quite amusing.

There is a line 91 (in my version) which has

$sed --version > /dev/null 2>&1 || ...

The sed on QNX will just stop at this point as it has no input and
just sits and waits for input.

I changed this to:

$sed --version < /dev/null > /dev/null 2>&1 || ...

And the test suite continued.

I also noticed a few lines below there is code:

dir=`echo "$0" | sed ... `

shouldn't this be:

dir=`echo "$0" | $sed ...`

As $sed is set from the environment variable if necessary.

We then stop in the semantic checks in test 26 in semantics.m4:425

This appears to be a similar problem as hitting Ctrl-D continues the 
testsuite.

The autoupdate tests have the similar problem of needing a Ctrl-D.

The other oddity is that the tests seem to be one per line in syntax.m4
and update.m4.  Is this a change I had missed?

Regards
 David


From akim@epita.fr Wed Oct 25 12:13:59 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oT9d-0003Oa-00; Wed, 25 Oct 2000 12:13:59 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id SAA29404
	Wed, 25 Oct 2000 18:08:52 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13oV9g-0005cE-00; Wed, 25 Oct 2000 18:20:04 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13oT80-0004vq-00; Wed, 25 Oct 2000 18:10:12 +0200
To: David Morgan <dmorgan@symark.com>
Cc: Pavel Roskin <proski@gnu.org>, "autoconf@gnu.org" <autoconf@gnu.org>
Subject: Re: Various systems (was: Success (mostly) with the testsuite)
References: <Pine.LNX.4.21.0010241139500.4924-100000@fonzie.nine.com>
	<39F5B7EF.29F0E38@symark.com>
	<mv4k8axmelj.fsf_-_@nostromo.lrde.epita.fr>
	<39F6F920.A9F6C5B6@symark.com>
	<mv4g0llj580.fsf@nostromo.lrde.epita.fr>
	<39F701D4.870867F4@symark.com>
From: Akim Demaille <akim@epita.fr>
Date: 25 Oct 2000 18:10:11 +0200
In-Reply-To: David Morgan's message of "Wed, 25 Oct 2000 08:52:52 -0700"
Message-ID: <mv4y9zcj40s.fsf@nostromo.lrde.epita.fr>
Lines: 5
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "David" == David Morgan <dmorgan@symark.com> writes:

David> Hope this helps

Yes, it does, thanks!


From dmorgan@symark.com Wed Oct 25 12:27:41 2000
Received: from firewall.symark.westlake.iswest.net ([207.178.203.34] helo=gateway.symark.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oTOv-0003kG-00; Wed, 25 Oct 2000 12:27:41 -0400
Received: (from mailer@localhost)
	by gateway.symark.com (8.9.3/8.9.3) id JAA20875;
	Wed, 25 Oct 2000 09:27:40 -0700
Received: from wombat.symark.com(128.1.1.33) by gateway.symark.com via smap (V2.1+anti-relay+anti-spam)
	id xma020868; Wed, 25 Oct 00 09:27:36 -0700
Message-ID: <39F70ACB.1256ADC1@symark.com>
Date: Wed, 25 Oct 2000 09:31:07 -0700
From: David Morgan <dmorgan@symark.com>
Organization: Symark Software
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: Akim Demaille <akim@epita.fr>
CC: "autoconf@gnu.org" <autoconf@gnu.org>, Paul Eggert <eggert@twinsun.com>,
        Pavel Roskin <proski@gnu.org>
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010241238060.7951-100000@fonzie.nine.com>
		<39F5DD7A.D94A0D5B@symark.com> <39F5FD10.37D7081F@symark.com>
		<mv4g0llmdmz.fsf@nostromo.lrde.epita.fr>
		<39F6F8BF.6F5E73E9@symark.com>
		<mv4bsw8kjo3.fsf@nostromo.lrde.epita.fr>
		<39F70313.6AB97164@symark.com> <mv43dhkkim4.fsf@nostromo.lrde.epita.fr>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hi Akim,

This gets weirder

Akim Demaille wrote:
> 
> >>>>> "David" == David Morgan <dmorgan@symark.com> writes:
> 
> David> Akim Demaille wrote:
> >> | The script results are: | | .  | 1
> >>
> >> Does it *always* fail, or it's just the operator | which does not
> >> erase failures?
> >>
> >> expr 'a' : '\(a\)'; echo $?
> >>
> >> expr 'a' : '\(b\)' '|' 'a' : '\(a\)'; echo $?
> 
> David> It always fails
> 
> David> Both cases return 'a' and an exit code of 1.
> 
> David> Looks like a buggy OS at this point as I tried the failure case
> David> of just
> 
> David> expr 'a' : '\(b\)' ; echo $?
> 
> David> And I get a 0 with no output.
> 
> Nia?  Are you saying `expr' is always exiting the negation of the
> expected answer?
> 
> expr 'a' : '\(a\)' || echo failure

Gives:
a
failure

> expr 'a' : '\(b\)' && echo failure

Gives:
0
> 
> gives twice failure?  How does the following behave?
> 
> expr 'a' : 'a' || echo failure

Gives:
1
> expr 'a' : 'b' && echo failure

Gives
0

I'd take a guess and say that the expr command doesn't return the right
results for the regular expressions at all.  Please note when I say gives
above this REALLY is the output not exit codes as it may appear.

Regards
 David


From proski@gnu.org Wed Oct 25 12:30:41 2000
Received: from lolita.speakeasy.net ([216.254.0.13])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13oTRo-0003m7-00
	for <autoconf@gnu.org>; Wed, 25 Oct 2000 12:30:40 -0400
Received: (qmail 1072 invoked from network); 25 Oct 2000 16:28:27 -0000
Received: from unknown (HELO gonzo.speakeasy.net) (192.168.0.5)
  by 192.168.0.13 with SMTP; 25 Oct 2000 16:28:27 -0000
Received: (qmail 29984 invoked from network); 25 Oct 2000 16:30:39 -0000
Received: from unknown (HELO fonzie.nine.com) (12.38.119.2)
  by gonzo.speakeasy.net with SMTP; 25 Oct 2000 16:30:39 -0000
Date: Wed, 25 Oct 2000 12:41:09 -0400 (EDT)
From: Pavel Roskin <proski@gnu.org>
X-Sender: proski@fonzie.nine.com
To: David Morgan <dmorgan@symark.com>
cc: "autoconf@gnu.org" <autoconf@gnu.org>
Subject: Re: Failure of testsuite/autoupdate
In-Reply-To: <39F7075D.C60BF367@symark.com>
Message-ID: <Pine.LNX.4.21.0010251234580.21242-100000@fonzie.nine.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hello, David!

> $sed --version > /dev/null 2>&1 || ...
> 
> The sed on QNX will just stop at this point as it has no input and
> just sits and waits for input.

I thought about this construct, but I decided not to fix since the right 
fix is not to depend on GNU sed at all.

> I also noticed a few lines below there is code:
> 
> dir=`echo "$0" | sed ... `
> 
> shouldn't this be:
> 
> dir=`echo "$0" | $sed ...`

I think "sed" is supposed to be the native sed, while $sed is GNU
sed. Anyway, it's all very dirty and should be cleaned up ASAP.

However, if I don't find a better solution soon I'll add </dev/null where
appropriate.

Regards,
Pavel Roskin



From dmorgan@symark.com Wed Oct 25 12:38:42 2000
Received: from firewall.symark.westlake.iswest.net ([207.178.203.34] helo=gateway.symark.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oTZZ-00043u-00; Wed, 25 Oct 2000 12:38:41 -0400
Received: (from mailer@localhost)
	by gateway.symark.com (8.9.3/8.9.3) id JAA21276;
	Wed, 25 Oct 2000 09:38:40 -0700
Received: from wombat.symark.com(128.1.1.33) by gateway.symark.com via smap (V2.1+anti-relay+anti-spam)
	id xma021240; Wed, 25 Oct 00 09:38:18 -0700
Message-ID: <39F70D4D.7E712DEE@symark.com>
Date: Wed, 25 Oct 2000 09:41:49 -0700
From: David Morgan <dmorgan@symark.com>
Organization: Symark Software
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: Pavel Roskin <proski@gnu.org>
CC: "autoconf@gnu.org" <autoconf@gnu.org>
Subject: Re: Failure of testsuite/autoupdate
References: <Pine.LNX.4.21.0010251234580.21242-100000@fonzie.nine.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hi Pavel,

Having pressed Ctrl-D numerous times I can at least tell you the suite 
passes.

Regards
 David

Pavel Roskin wrote:
> 
> Hello, David!
> 
> > $sed --version > /dev/null 2>&1 || ...
> >
> > The sed on QNX will just stop at this point as it has no input and
> > just sits and waits for input.
> 
> I thought about this construct, but I decided not to fix since the right
> fix is not to depend on GNU sed at all.
> 
> > I also noticed a few lines below there is code:
> >
> > dir=`echo "$0" | sed ... `
> >
> > shouldn't this be:
> >
> > dir=`echo "$0" | $sed ...`
> 
> I think "sed" is supposed to be the native sed, while $sed is GNU
> sed. Anyway, it's all very dirty and should be cleaned up ASAP.
> 
> However, if I don't find a better solution soon I'll add </dev/null where
> appropriate.
> 
> Regards,
> Pavel Roskin


From akim@epita.fr Wed Oct 25 13:22:35 2000
Received: from [194.98.116.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oUG3-0004jF-00; Wed, 25 Oct 2000 13:22:35 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id TAA06371
	Wed, 25 Oct 2000 19:23:15 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13oWJh-0005uY-00; Wed, 25 Oct 2000 19:34:29 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13oUHx-0000tn-00; Wed, 25 Oct 2000 19:24:33 +0200
To: Pavel Roskin <proski@gnu.org>
Cc: David Morgan <dmorgan@symark.com>, "autoconf@gnu.org" <autoconf@gnu.org>
Subject: Re: Failure of testsuite/autoupdate
References: <Pine.LNX.4.21.0010251234580.21242-100000@fonzie.nine.com>
From: Akim Demaille <akim@epita.fr>
Date: 25 Oct 2000 19:24:33 +0200
In-Reply-To: Pavel Roskin's message of "Wed, 25 Oct 2000 12:41:09 -0400 (EDT)"
Message-ID: <mv4k8awj0ku.fsf@nostromo.lrde.epita.fr>
Lines: 18
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "Pavel" == Pavel Roskin <proski@gnu.org> writes:

Pavel> I thought about this construct, but I decided not to fix since
Pavel> the right fix is not to depend on GNU sed at all.

Don't do that Pavel, that's wasting your time (unless you refer to
using Perl now).


Pavel> I think "sed" is supposed to be the native sed, while $sed is
Pavel> GNU sed.

Correct.

Pavel> However, if I don't find a better solution soon I'll add
Pavel> </dev/null where appropriate.

That's a good thing to do.  Apply it whenever you want.


From proski@gnu.org Wed Oct 25 18:15:04 2000
Received: from lolita.speakeasy.net ([216.254.0.13])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13oYp6-0000rB-00
	for <autoconf@gnu.org>; Wed, 25 Oct 2000 18:15:04 -0400
Received: (qmail 19559 invoked from network); 25 Oct 2000 22:12:50 -0000
Received: from unknown (HELO gonzo.speakeasy.net) (192.168.0.5)
  by 192.168.0.13 with SMTP; 25 Oct 2000 22:12:50 -0000
Received: (qmail 21919 invoked from network); 25 Oct 2000 22:15:02 -0000
Received: from unknown (HELO fonzie.nine.com) (12.38.119.2)
  by gonzo.speakeasy.net with SMTP; 25 Oct 2000 22:15:02 -0000
Date: Wed, 25 Oct 2000 18:25:30 -0400 (EDT)
From: Pavel Roskin <proski@gnu.org>
X-Sender: proski@fonzie.nine.com
To: autoconf@gnu.org
Subject: Problems with "exit"
Message-ID: <Pine.LNX.4.21.0010251821230.4992-100000@fonzie.nine.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hello!

The problem with FreeBSD ignoring "exit 77" can be reproduced on "the
other OS :-)" using zsh.

configure.in:
AC_INIT
exit 59
AC_OUTPUT(Makefile)

$ export PS1
$ autoconf
$ bash configure; echo $?
59
$ zsh configure; echo $?
0
$ grep exit config.log 
configure: exit 0

I'm leaving now, so this bizarre behavior is left on exersize of Europeans
:-)

Regards,
Pavel Roskin



From ben@valinux.com Wed Oct 25 18:33:43 2000
Received: from nat-su-33.valinux.com ([198.186.202.33] helo=trill.valinux.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oZ78-00018b-00
	for <autoconf@gnu.org>; Wed, 25 Oct 2000 18:33:42 -0400
Received: (from ben@localhost)
	by trill.valinux.com (8.9.3/8.9.3) id PAA08771;
	Wed, 25 Oct 2000 15:23:49 -0700
Message-Id: <200010252223.PAA08771@trill.valinux.com>
To: autoconf@gnu.org
Subject: Why is srcdir passed as .
Date: Wed, 25 Oct 2000 15:23:48 -0700
From: Ben Woodard <ben@valinux.com>
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

I am having a problem with my configure script where when configure is
called for the subprojects a parameter --srcdir=. is passed into them
when I just do configure. I expected that the srcdir would be ".." I
dug around in aceneral.m4 and found that it is quite deliberate. Why
is it done like this?

In autoconf 2.13, acgeneral.m4 line 2558 it has:

    case "$srcdir" in
    .) # No --srcdir option.  We are building in place.
      ac_sub_srcdir=$srcdir ;;
    /*) # Absolute path.
      ac_sub_srcdir=$srcdir/$ac_config_dir ;;
    *) # Relative path.
      ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
    esac

I don't see why you special case out ".". When I cut out that special
case. Things still seem to work. Is there some case that I'm not
testing in which this would cause problems.

-ben




From mdejong@cygnus.com Wed Oct 25 18:40:35 2000
Received: from runyon.cygnus.com ([205.180.230.5] helo=cygnus.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oZDn-0001Gs-00
	for <autoconf@gnu.org>; Wed, 25 Oct 2000 18:40:35 -0400
Received: from cse.cygnus.com (cse.cygnus.com [205.180.230.236])
	by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id PAA07667
	for <autoconf@gnu.org>; Wed, 25 Oct 2000 15:40:30 -0700 (PDT)
Received: (mdejong@localhost) by cse.cygnus.com (8.8.8+Sun/8.6.4) id PAA19163; Wed, 25 Oct 2000 15:40:30 -0700 (PDT)
Date: Wed, 25 Oct 2000 15:40:30 -0700 (PDT)
From: Mo DeJong <mdejong@cygnus.com>
To: autoconf@gnu.org
Subject: Re: Why is srcdir passed as .
In-Reply-To: <200010252223.PAA08771@trill.valinux.com>
Message-ID: <Pine.SOL.3.91.1001025153758.13148A@cse.cygnus.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On Wed, 25 Oct 2000, Ben Woodard wrote:

> I am having a problem with my configure script where when configure is
> called for the subprojects a parameter --srcdir=. is passed into them
> when I just do configure. I expected that the srcdir would be ".." I
> dug around in aceneral.m4 and found that it is quite deliberate. Why
> is it done like this?
> 
> In autoconf 2.13, acgeneral.m4 line 2558 it has:
> 
>     case "$srcdir" in
>     .) # No --srcdir option.  We are building in place.
>       ac_sub_srcdir=$srcdir ;;
>     /*) # Absolute path.
>       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
>     *) # Relative path.
>       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
>     esac
> 
> I don't see why you special case out ".". When I cut out that special
> case. Things still seem to work. Is there some case that I'm not
> testing in which this would cause problems.
> 
> -ben


Good question. I have a bunch of configure scripts where
I have to do:

srcdir=`cd $srcdir ; pwd`

at the top of the file to get around problems created
by this special case. Because of it, I can not cd
to some dir and then cd back to $srcdir. Whats the deal?

Mo DeJong
Red Hat Inc


From dmorgan@symark.com Wed Oct 25 20:01:51 2000
Received: from firewall.symark.westlake.iswest.net ([207.178.203.34] helo=gateway.symark.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oaUR-0002fA-00
	for <autoconf@gnu.org>; Wed, 25 Oct 2000 20:01:51 -0400
Received: (from mailer@localhost)
	by gateway.symark.com (8.9.3/8.9.3) id RAA09544
	for <autoconf@gnu.org>; Wed, 25 Oct 2000 17:01:49 -0700
Received: from wombat.symark.com(128.1.1.33) by gateway.symark.com via smap (V2.1+anti-relay+anti-spam)
	id xma009540; Wed, 25 Oct 00 17:01:21 -0700
Message-ID: <39F77525.C06199D2@symark.com>
Date: Wed, 25 Oct 2000 17:04:53 -0700
From: David Morgan <dmorgan@symark.com>
Organization: Symark Software
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: autoconf@gnu.org
Subject: -ldir added when not needed
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

I have seen this problem in 2.13 and cvs

The macro AC_HEADER_DIRENT in acspecific.m4 has a call in it to

AC_CHECK_LIB(dir, opendir, LIBS="$LIBS -ldir")

This is problematic on compilers which do not emit an error return code
with missing libraries but instead happily link and complain when they
can't find the library.  This gets really tiresome in a user's autoconf'd 
compile where there are numerous messages about library not found and the
compile completes successfully.

I'd like the line to be:
AC_CHECK_FUNCS(dir, break, AC_CHECK_LIB(dir, opendir, LIBS="$LIBS -ldir"))

If some one would be kind enough to tell me how to submit patches I can do
that for this one.

This will also occur when the library exists and does not resolve the symbol
so maybe AC_CHECK_LIB needs a further change.

Regards
 David


From rra@stanford.edu Wed Oct 25 20:33:33 2000
Received: from windlord.stanford.edu ([171.64.13.23])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13oaz7-00032W-00
	for <autoconf@gnu.org>; Wed, 25 Oct 2000 20:33:33 -0400
Received: (qmail 8003 invoked by uid 50); 26 Oct 2000 00:33:31 -0000
To: autoconf@gnu.org
Subject: Re: -ldir added when not needed
References: <39F77525.C06199D2@symark.com>
In-Reply-To: David Morgan's message of "Wed, 25 Oct 2000 17:04:53 -0700"
From: Russ Allbery <rra@stanford.edu>
Organization: The Eyrie
Date: 25 Oct 2000 17:33:30 -0700
Message-ID: <ylsnpkjvad.fsf@windlord.stanford.edu>
Lines: 22
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

David Morgan <dmorgan@symark.com> writes:

> I have seen this problem in 2.13 and cvs
> The macro AC_HEADER_DIRENT in acspecific.m4 has a call in it to

> AC_CHECK_LIB(dir, opendir, LIBS="$LIBS -ldir")

> This is problematic on compilers which do not emit an error return code
> with missing libraries but instead happily link and complain when they
> can't find the library.  This gets really tiresome in a user's autoconf'd 
> compile where there are numerous messages about library not found and the
> compile completes successfully.

> I'd like the line to be:
> AC_CHECK_FUNCS(dir, break, AC_CHECK_LIB(dir, opendir, LIBS="$LIBS -ldir"))

Even better, it should be:

AC_SEARCH_LIBS(opendir, dir)

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


From eggert@twinsun.com Thu Oct 26 02:22:23 2000
Received: from alcor.twinsun.com ([198.147.65.9])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13ogQg-0006vy-00; Thu, 26 Oct 2000 02:22:22 -0400
Received: from green-office.twinsun.com ([192.54.239.71]) by alcor.twinsun.com (8.9.3/8.9.3) with ESMTP id XAA02868; Wed, 25 Oct 2000 23:22:20 -0700 (PDT)
Received: (eggert@localhost) by green-office.twinsun.com (8.9.3+Sun/8.9.3) id XAA23501; Wed, 25 Oct 2000 23:22:20 -0700 (PDT)
Date: Wed, 25 Oct 2000 23:22:20 -0700 (PDT)
From: Paul Eggert <eggert@twinsun.com>
Message-Id: <200010260622.XAA23501@green-office.twinsun.com>
To: akim@epita.fr
CC: dmorgan@symark.com, proski@gnu.org, autoconf@gnu.org
In-reply-to: <mv4g0llmdmz.fsf@nostromo.lrde.epita.fr> (akim@epita.fr)
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010241238060.7951-100000@fonzie.nine.com>
	<39F5DD7A.D94A0D5B@symark.com> <39F5FD10.37D7081F@symark.com> <mv4g0llmdmz.fsf@nostromo.lrde.epita.fr>
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

   From: Akim Demaille <akim@epita.fr>
   Date: 25 Oct 2000 12:14:12 +0200

   /tmp % echo "Xfoo" |                                             nostromo 12:08
   pipe>     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/p; q; }
   pipe quote>   /^X\(\/\/\)[^/].*/{ s//\1/p; q; }
   pipe quote>     /^X\(\/\/\)$/{ s//\1/p; q; }
   pipe quote>     /^X\(\/\).*/{ s//\1/p; q; }
   pipe quote>     s/.*/./p; q'
   .
   .

   Arg! -n is missing, so since there is a `p', it's printed twice.

Sorry about that.  I never had a broken machine to test the sed
replacement on.  :-)

   Paul, what do you prefer?  I chose not to add `-n' but to remove the
   `p', if you think there is a difference and you prefer the other
   solution, I'll adjust the code.

I assume you removed all the "p"s, and not just the last one.  If so,
I think your change is OK.  The only difference in behavior is if
"foo" contains a newline, and the sed replacement mishandles newlines
anyway, so that's not a real problem.


From akim@epita.fr Thu Oct 26 04:19:11 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oiFi-0008ME-00; Thu, 26 Oct 2000 04:19:11 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id KAA18787
	Thu, 26 Oct 2000 10:20:07 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13okJj-0007Jw-00; Thu, 26 Oct 2000 10:31:27 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13oiHY-00014t-00; Thu, 26 Oct 2000 10:21:04 +0200
To: Pavel Roskin <proski@gnu.org>
Cc: autoconf@gnu.org
Subject: Re: Problems with "exit"
References: <Pine.LNX.4.21.0010251821230.4992-100000@fonzie.nine.com>
From: Akim Demaille <akim@epita.fr>
Date: 26 Oct 2000 10:21:04 +0200
In-Reply-To: Pavel Roskin's message of "Wed, 25 Oct 2000 18:25:30 -0400 (EDT)"
Message-ID: <mv4r954ggi7.fsf@nostromo.lrde.epita.fr>
Lines: 14
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "Pavel" == Pavel Roskin <proski@gnu.org> writes:

Pavel> Hello!  The problem with FreeBSD ignoring "exit 77" can be
Pavel> reproduced on "the other OS :-)" using zsh.

Pavel> configure.in: AC_INIT exit 59 AC_OUTPUT(Makefile)

Pavel> $ export PS1 $ autoconf $ bash configure; echo $?  59 $ zsh
Pavel> configure; echo $?  0 $ grep exit config.log configure: exit 0

Pavel> I'm leaving now, so this bizarre behavior is left on exersize
Pavel> of Europeans :-)

Probably due to the trap 0 we installed.  It should be fixed.


From akim@epita.fr Thu Oct 26 04:24:48 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oiL9-0008SM-00; Thu, 26 Oct 2000 04:24:48 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id KAA19101
	Thu, 26 Oct 2000 10:23:58 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13okNS-0007Ns-00; Thu, 26 Oct 2000 10:35:18 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13oiLG-000153-00; Thu, 26 Oct 2000 10:24:54 +0200
To: Paul Eggert <eggert@twinsun.com>
Cc: dmorgan@symark.com, proski@gnu.org, autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010241238060.7951-100000@fonzie.nine.com>
	<39F5DD7A.D94A0D5B@symark.com> <39F5FD10.37D7081F@symark.com>
	<mv4g0llmdmz.fsf@nostromo.lrde.epita.fr>
	<200010260622.XAA23501@green-office.twinsun.com>
From: Akim Demaille <akim@epita.fr>
Date: 26 Oct 2000 10:24:54 +0200
In-Reply-To: Paul Eggert's message of "Wed, 25 Oct 2000 23:22:20 -0700 (PDT)"
Message-ID: <mv4n1fsggbt.fsf@nostromo.lrde.epita.fr>
Lines: 9
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "Paul" == Paul Eggert <eggert@twinsun.com> writes:

Paul> I assume you removed all the "p"s, and not just the last one.

Yep, I did.  I think we are going to drop the `expr' branch.  BSDI's
`expr' is so deeply broken that it hides it successes, which results
in twice the dirname.

Pfff.  This is discouraging.


From oliva@lsd.ic.unicamp.br Thu Oct 26 04:30:48 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oiQy-0008V3-00; Thu, 26 Oct 2000 04:30:48 -0400
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id e9Q8UgV06334;
	Thu, 26 Oct 2000 06:30:42 -0200
To: Akim Demaille <akim@epita.fr>
Cc: Daniele Arena <daniele@ripe.net>, Pavel Roskin <proski@gnu.org>,
   autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
References: <Pine.BSI.4.05L.10010251505390.360-100000@x51.ripe.net>
	<mv4aebtkprl.fsf@nostromo.lrde.epita.fr>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 26 Oct 2000 06:30:42 -0200
In-Reply-To: Akim Demaille's message of "25 Oct 2000 15:35:10 +0200"
Message-ID: <or4s20c8ct.fsf@guarana.lsd.ic.unicamp.br>
Lines: 30
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On Oct 25, 2000, Akim Demaille <akim@epita.fr> wrote:

>>>>>> "Daniele" == Daniele Arena <daniele@ripe.net> writes:

Daniele> That actually brings a "philosophical" question I always
Daniele> wanted to ask to GNU people (RMS, are you there?:); and that
Daniele> is, how far goes the support for oldish OSs in GNU packages? 

> Quite far.  BSDI 3.1 is a target we aim at, we still support even
> older systems.

I'll add to that that `autoconf' should support as many systems as
possible, so as to give maintainers of other GNU packages the option
of supporting whatever systems they want to.  The GNU project doesn't
mandate all maintainers to support all systems in the world, but if
someone contributes ports that don't make a package too
unmaintainable, maintainers are encouraged to absorb them.

Daniele> I had no problem until now. I hadn't compiled textutils until
Daniele> 20 minutes ago, but now I did and it all went smoothly.

> That's a clear sign we have to maintain your architecture alive :)

Yup

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From Dautrevaux@microprocess.com Thu Oct 26 04:35:41 2000
Received: from [194.206.157.151] (helo=iis000.microdata.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oiVg-00008V-00
	for <autoconf@gnu.org>; Thu, 26 Oct 2000 04:35:41 -0400
Received: by IIS000 with Internet Mail Service (5.5.2650.21)
	id <VGY0MZF8>; Thu, 26 Oct 2000 10:25:10 +0200
Message-ID: <17B78BDF120BD411B70100500422FC6309E13E@IIS000>
From: Bernard Dautrevaux <Dautrevaux@microprocess.com>
To: 'Mo DeJong' <mdejong@cygnus.com>, autoconf@gnu.org
Subject: RE: Why is srcdir passed as .
Date: Thu, 26 Oct 2000 10:24:05 +0200
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

> -----Original Message-----
> From: Mo DeJong [mailto:mdejong@cygnus.com]
> Sent: Thursday, October 26, 2000 12:41 AM
> To: autoconf@gnu.org
> Subject: Re: Why is srcdir passed as .
> 
> 
> On Wed, 25 Oct 2000, Ben Woodard wrote:
> 
> > I am having a problem with my configure script where when 
> configure is
> > called for the subprojects a parameter --srcdir=. is passed 
> into them
> > when I just do configure. I expected that the srcdir would be ".." I
> > dug around in aceneral.m4 and found that it is quite deliberate. Why
> > is it done like this?
> > 
> > In autoconf 2.13, acgeneral.m4 line 2558 it has:
> > 
> >     case "$srcdir" in
> >     .) # No --srcdir option.  We are building in place.
> >       ac_sub_srcdir=$srcdir ;;
> >     /*) # Absolute path.
> >       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
> >     *) # Relative path.
> >       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
> >     esac
> > 
> > I don't see why you special case out ".". When I cut out 
> that special
> > case. Things still seem to work. Is there some case that I'm not
> > testing in which this would cause problems.
> > 
> > -ben
> 
> 
> Good question. I have a bunch of configure scripts where
> I have to do:
> 
> srcdir=`cd $srcdir ; pwd`
> 
> at the top of the file to get around problems created
> by this special case. Because of it, I can not cd
> to some dir and then cd back to $srcdir. Whats the deal?

I think there is two problems here:

Ben seems to use $srcdir where it meant $top_srcdir :-) (If we build
in-place, then $srcdir == $builddir in all the tree).

Mo on the contrary is bothered by the fact that $srcdir is relative; just
calling "./configure -srcdir=/absolute/path/to/srcdir" shoudl solve the
problem.

Regards,

	Bernard

PS: IIUC, the special case of "." is just to avoid getting, in some second
level subdirectory name lib/somelib, srcdir set to
"../lib/../../lib/somelib" which is almost equivalent (but a lot longer) to
"." ;-) The "almost" above is for the case where "lib" is in fact a link to
"../../commonlibs". In this case "." would be correct while
"../lib/../../lib/somelib" would yield a "file not found" error somewhere
;-?


--------------------------------------------
Bernard Dautrevaux
Microprocess Ingenierie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel:	+33 (0) 1 47 68 80 80
Fax:	+33 (0) 1 47 88 97 85
e-mail:	dautrevaux@microprocess.com
		b.dautrevaux@usa.net
-------------------------------------------- 


From oliva@lsd.ic.unicamp.br Thu Oct 26 04:39:10 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oiZ3-0000HZ-00
	for <autoconf@gnu.org>; Thu, 26 Oct 2000 04:39:09 -0400
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id e9Q8d5t06387;
	Thu, 26 Oct 2000 06:39:05 -0200
To: Akim Demaille <akim@epita.fr>
Cc: Alexander Thiel <Alexander.Thiel@tc.pci.uni-heidelberg.de>,
   autoconf@gnu.org
Subject: Re: Adding new machines to config.sub
References: <00102515112200.05422@hilbert>
	<mv4em15kqas.fsf@nostromo.lrde.epita.fr>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 26 Oct 2000 06:39:05 -0200
In-Reply-To: Akim Demaille's message of "25 Oct 2000 15:23:39 +0200"
Message-ID: <orvgugatee.fsf@guarana.lsd.ic.unicamp.br>
Lines: 15
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On Oct 25, 2000, Akim Demaille <akim@epita.fr> wrote:

>>>>>> "Alexander" == Alexander Thiel <Alexander.Thiel@tc.pci.uni-heidelberg.de> writes:
Alexander> Is there a patched version of config.sub, or do you want me
Alexander> update it and send in the diffs.

> See the module `config' on subversions.gnu.org

... or get the latest version from ftp://ftp.gnu.org/pub/gnu/config/

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From oliva@lsd.ic.unicamp.br Thu Oct 26 04:40:50 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oiaf-0000Mt-00; Thu, 26 Oct 2000 04:40:49 -0400
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id e9Q8YiY06365;
	Thu, 26 Oct 2000 06:34:44 -0200
To: Akim Demaille <akim@epita.fr>
Cc: Daniele Arena <daniele@ripe.net>, Pavel Roskin <proski@gnu.org>,
   autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
References: <Pine.BSI.4.05L.10010251429471.360-200000@x51.ripe.net>
	<mv4n1ftkrqk.fsf@nostromo.lrde.epita.fr>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 26 Oct 2000 06:34:44 -0200
In-Reply-To: Akim Demaille's message of "25 Oct 2000 14:52:35 +0200"
Message-ID: <orzojsatln.fsf@guarana.lsd.ic.unicamp.br>
Lines: 38
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On Oct 25, 2000, Akim Demaille <akim@epita.fr> wrote:

>>>>>> "Daniele" == Daniele Arena <daniele@ripe.net> writes:
Daniele> This one seemed to be working better... At least it gave no
Daniele> errors on exit and it did create a Makefile. Hope it's fixed?

> OK, then the problem is that your shell is bad at following escaped
> quotes.

>   ac_file_inputs=`IFS=:
[snip]
>          test -f "$f" || { echo "configure: error: cannot find input file \\\`$f'" >&2; exit 1; }

I don't think a shell is required to do it.  Remember the problem I
had told you about:

     foo="`something with a "quote" mark`"
in which ^ this would match ^ this?

This is just another instance of the same problem, with a different
quote mark.

Maybe we should set ac_backquote and ac_singlequote upfront, and use
it in error messages instead?

> Maybe we should go to using `read'

What do you mean?  In what sense would this help?

> Is xargs portable?

Nope.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From oliva@lsd.ic.unicamp.br Thu Oct 26 04:45:07 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oieo-0000OU-00
	for <autoconf@gnu.org>; Thu, 26 Oct 2000 04:45:06 -0400
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id e9Q8itY06431;
	Thu, 26 Oct 2000 06:44:55 -0200
To: Ben Woodard <ben@valinux.com>
Cc: autoconf@gnu.org
Subject: Re: Why is srcdir passed as .
References: <200010252223.PAA08771@trill.valinux.com>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 26 Oct 2000 06:44:55 -0200
In-Reply-To: Ben Woodard's message of "Wed, 25 Oct 2000 15:23:48 -0700"
Message-ID: <orr954at4o.fsf@guarana.lsd.ic.unicamp.br>
Lines: 22
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On Oct 25, 2000, Ben Woodard <ben@valinux.com> wrote:

> I am having a problem with my configure script where when configure is
> called for the subprojects a parameter --srcdir=. is passed into them
> when I just do configure.

srcdir is supposed to be the top-level directory of the project (or
subproject), not the top-level of the whole tree.

The rationale is that you can just grab whatever set of packages, put
them as sub-directories of your package, create a top-level configure
and Makefile and everything will just work.

If instead --srcdir were passed as the top-level directory, you'd have
to adjust every sub-package so as to ``know'' it's been packaged
differently.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From akim@epita.fr Thu Oct 26 04:47:17 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oigv-0000PL-00; Thu, 26 Oct 2000 04:47:17 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id KAA21683
	Thu, 26 Oct 2000 10:47:58 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13okkg-0007bp-00; Thu, 26 Oct 2000 10:59:18 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13oiiT-00016k-00; Thu, 26 Oct 2000 10:48:53 +0200
To: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Cc: Daniele Arena <daniele@ripe.net>, Pavel Roskin <proski@gnu.org>,
        autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
References: <Pine.BSI.4.05L.10010251429471.360-200000@x51.ripe.net>
	<mv4n1ftkrqk.fsf@nostromo.lrde.epita.fr>
	<orzojsatln.fsf@guarana.lsd.ic.unicamp.br>
From: Akim Demaille <akim@epita.fr>
Date: 26 Oct 2000 10:48:53 +0200
In-Reply-To: Alexandre Oliva's message of "26 Oct 2000 06:34:44 -0200"
Message-ID: <mv41yx4gf7u.fsf@nostromo.lrde.epita.fr>
Lines: 43
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

| On Oct 25, 2000, Akim Demaille <akim@epita.fr> wrote:
| >>>>>> "Daniele" == Daniele Arena <daniele@ripe.net> writes:
| Daniele> This one seemed to be working better... At least it gave no
| Daniele> errors on exit and it did create a Makefile. Hope it's fixed?
| 
| > OK, then the problem is that your shell is bad at following escaped
| > quotes.
| 
| >   ac_file_inputs=`IFS=:
| [snip]
| >          test -f "$f" || { echo "configure: error: cannot find input file \\\`$f'" >&2; exit 1; }
| 
| I don't think a shell is required to do it.  Remember the problem I
| had told you about:
| 
|      foo="`something with a "quote" mark`"
| in which ^ this would match ^ this?

Yeah, I know this guy!  Andreas Schwab sent a huge patch IIRC :)

| This is just another instance of the same problem, with a different
| quote mark.

Agreed.  Nevertheless this is the first shell that triggers the
problem, while it's been in Autoconf since quite a while now.

| Maybe we should set ac_backquote and ac_singlequote upfront, and use
| it in error messages instead?

Why not.  That's hacky, but that's a way out :)

| > Maybe we should go to using `read'
| 
| What do you mean?  In what sense would this help?

I meant still keeping a for-echo loop, but using `read' outside.

| > Is xargs portable?
| 
| Nope.

:(


From oliva@lsd.ic.unicamp.br Thu Oct 26 05:08:36 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oj1Y-0000d5-00; Thu, 26 Oct 2000 05:08:36 -0400
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id e9Q98Vh06660;
	Thu, 26 Oct 2000 07:08:31 -0200
To: Akim Demaille <akim@epita.fr>
Cc: Paul Eggert <eggert@twinsun.com>, dmorgan@symark.com, proski@gnu.org,
   autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010241238060.7951-100000@fonzie.nine.com>
	<39F5DD7A.D94A0D5B@symark.com> <39F5FD10.37D7081F@symark.com>
	<mv4g0llmdmz.fsf@nostromo.lrde.epita.fr>
	<200010260622.XAA23501@green-office.twinsun.com>
	<mv4n1fsggbt.fsf@nostromo.lrde.epita.fr>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 26 Oct 2000 07:08:31 -0200
In-Reply-To: Akim Demaille's message of "26 Oct 2000 10:24:54 +0200"
Message-ID: <or66mgas1c.fsf@guarana.lsd.ic.unicamp.br>
Lines: 14
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On Oct 26, 2000, Akim Demaille <akim@epita.fr> wrote:

> Yep, I did.  I think we are going to drop the `expr' branch.

Yep.  We've had too much trouble with `expr' so far.

Maybe we could test whether `expr' works for us, and set `expr=false'
if it doesn't, then use $expr...

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From akim@epita.fr Thu Oct 26 05:38:28 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13ojUR-00011Z-00; Thu, 26 Oct 2000 05:38:27 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id LAA26385
	Thu, 26 Oct 2000 11:38:44 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13olXo-0007rl-00; Thu, 26 Oct 2000 11:50:04 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13ojVZ-0006Wc-00; Thu, 26 Oct 2000 11:39:37 +0200
To: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Cc: Paul Eggert <eggert@twinsun.com>, dmorgan@symark.com, proski@gnu.org,
        autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010241238060.7951-100000@fonzie.nine.com>
	<39F5DD7A.D94A0D5B@symark.com> <39F5FD10.37D7081F@symark.com>
	<mv4g0llmdmz.fsf@nostromo.lrde.epita.fr>
	<200010260622.XAA23501@green-office.twinsun.com>
	<mv4n1fsggbt.fsf@nostromo.lrde.epita.fr>
	<or66mgas1c.fsf@guarana.lsd.ic.unicamp.br>
From: Akim Demaille <akim@epita.fr>
Date: 26 Oct 2000 11:39:37 +0200
In-Reply-To: Alexandre Oliva's message of "26 Oct 2000 07:08:31 -0200"
Message-ID: <mv4snpkeyau.fsf@nostromo.lrde.epita.fr>
Lines: 11
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "Alexandre" == Alexandre Oliva <oliva@lsd.ic.unicamp.br> writes:

Alexandre> On Oct 26, 2000, Akim Demaille <akim@epita.fr> wrote:
>> Yep, I did.  I think we are going to drop the `expr' branch.

Alexandre> Yep.  We've had too much trouble with `expr' so far.

Alexandre> Maybe we could test whether `expr' works for us, and set
Alexandre> `expr=false' if it doesn't, then use $expr...

I like that!


From larsa@sim.no Thu Oct 26 08:00:31 2000
Received: from trh.sim.no ([195.1.220.136] helo=sim.no)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13olhu-0006mM-00
	for <autoconf@gnu.org>; Thu, 26 Oct 2000 08:00:31 -0400
Received: (qmail 25387 invoked by uid 2000); 26 Oct 2000 12:00:26 -0000
Date: Thu, 26 Oct 2000 14:00:25 +0200
From: "Lars J. Aas" <larsa@sim.no>
To: Bernard Dautrevaux <Dautrevaux@microprocess.com>
Cc: 'Mo DeJong' <mdejong@cygnus.com>, autoconf@gnu.org
Subject: Re: Why is srcdir passed as .
Message-ID: <20001026140025.A25375@sim.no>
Reply-To: larsa@sim.no
References: <17B78BDF120BD411B70100500422FC6309E13E@IIS000>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <17B78BDF120BD411B70100500422FC6309E13E@IIS000>; from Dautrevaux@microprocess.com on Thu, Oct 26, 2000 at 10:24:05AM +0200
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On Thu, Oct 26, 2000 at 10:24:05AM +0200, Bernard Dautrevaux wrote:
: Mo on the contrary is bothered by the fact that $srcdir is relative; just
: calling "./configure -srcdir=/absolute/path/to/srcdir" shoudl solve the
: problem.

I assume $srcdir is found from $0 on configure invocation, so using
/absolute/path/to/srcdir/configure should probably be just as easy...

  Lars J


From akim@epita.fr Thu Oct 26 08:33:44 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13omE3-0007Hc-00; Thu, 26 Oct 2000 08:33:43 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id OAA09878
	Thu, 26 Oct 2000 14:34:37 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13ooI3-0008VZ-00; Thu, 26 Oct 2000 14:45:59 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13omFk-0004zh-00; Thu, 26 Oct 2000 14:35:28 +0200
To: APatche <autoconf-patches@gnu.org>, Autoconf List <autoconf@gnu.org>
Subject: Re: More macro dispatching
References: <mv4og07g5rl.fsf@nostromo.lrde.epita.fr>
From: Akim Demaille <akim@epita.fr>
Date: 26 Oct 2000 14:35:28 +0200
In-Reply-To: Akim Demaille's message of "26 Oct 2000 14:13:02 +0200"
Message-ID: <mv4snpjeq5r.fsf@nostromo.lrde.epita.fr>
Lines: 18
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

In order to properly implement the proposal of Alexandre (expr=false
when we can't trust it), more responsibility should be moved into
Mash, in particular things like _AC_INIT_PREPARE_ENVIRONMENT.  It is a
good thing, it is independent from Autoconf and useful to any Mash
project (understand `autoscript' or `autosh' here).

But to be really clean, some form of AC_REQUIRE would be good too.
This time, it is not related to sh in any way, so I'm proposing to
move AC_REQUIRE, AC_DEFUN and company into m4sugar.  Again, I think
this is a good thing, some other projects than Autoconf might want it.
It'd be m4_defun, m4_require etc.

Alexandre and Lars think it's a good thing to do.  They emphasized it
should be done for any other macro which interest is not limited to
Autoconf.

Would someone have a different opinion?


From dickey@herndon4.his.com Thu Oct 26 08:36:03 2000
Received: from herndon4.his.com ([209.67.207.7])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13omGJ-0007Jd-00
	for <autoconf@gnu.org>; Thu, 26 Oct 2000 08:36:03 -0400
Received: from localhost (dickey@localhost)
	by herndon4.his.com (8.9.3/8.9.3) with ESMTP id IAA29583;
	Thu, 26 Oct 2000 08:35:46 -0400 (EDT)
Date: Thu, 26 Oct 2000 08:35:46 -0400 (EDT)
From: "Thomas E. Dickey" <dickey@herndon4.his.com>
Reply-To: dickey@herndon4.his.com
To: "Lars J. Aas" <larsa@sim.no>
cc: Bernard Dautrevaux <Dautrevaux@microprocess.com>,
        "'Mo DeJong'" <mdejong@cygnus.com>, autoconf@gnu.org
Subject: Re: Why is srcdir passed as .
In-Reply-To: <20001026140025.A25375@sim.no>
Message-ID: <Pine.BSI.4.21.0010260830490.29384-100000@herndon4.his.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On Thu, 26 Oct 2000, Lars J. Aas wrote:

> On Thu, Oct 26, 2000 at 10:24:05AM +0200, Bernard Dautrevaux wrote:
> : Mo on the contrary is bothered by the fact that $srcdir is relative; just
> : calling "./configure -srcdir=/absolute/path/to/srcdir" shoudl solve the
> : problem.
> 
> I assume $srcdir is found from $0 on configure invocation, so using
> /absolute/path/to/srcdir/configure should probably be just as easy...

Is it true (for a shell) that $0 is always a full pathname?  (it could
be a relative one, which complicates things a little).

-- 
T.E.Dickey <dickey@herndon4.his.com>
http://dickey.his.com
ftp://dickey.his.com



From Dautrevaux@microprocess.com Thu Oct 26 08:55:31 2000
Received: from [194.206.157.151] (helo=iis000.microdata.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13omZ7-0007dO-00
	for <autoconf@gnu.org>; Thu, 26 Oct 2000 08:55:30 -0400
Received: by IIS000 with Internet Mail Service (5.5.2650.21)
	id <VGY0MZ25>; Thu, 26 Oct 2000 14:44:57 +0200
Message-ID: <17B78BDF120BD411B70100500422FC6309E140@IIS000>
From: Bernard Dautrevaux <Dautrevaux@microprocess.com>
To: "'dickey@herndon4.his.com'" <dickey@herndon4.his.com>, "Lars J. Aas"
	 <larsa@sim.no>
Cc: Bernard Dautrevaux <Dautrevaux@microprocess.com>, 'Mo DeJong'
	 <mdejong@cygnus.com>, autoconf@gnu.org
Subject: RE: Why is srcdir passed as .
Date: Thu, 26 Oct 2000 14:44:00 +0200
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

> -----Original Message-----
> From: Thomas E. Dickey [mailto:dickey@herndon4.his.com]
> Sent: Thursday, October 26, 2000 2:36 PM
> To: Lars J. Aas
> Cc: Bernard Dautrevaux; 'Mo DeJong'; autoconf@gnu.org
> Subject: Re: Why is srcdir passed as .
> 
> 
> On Thu, 26 Oct 2000, Lars J. Aas wrote:
> 
> > On Thu, Oct 26, 2000 at 10:24:05AM +0200, Bernard Dautrevaux wrote:
> > : Mo on the contrary is bothered by the fact that $srcdir 
> is relative; just
> > : calling "./configure -srcdir=/absolute/path/to/srcdir" 
> shoudl solve the
> > : problem.
> > 
> > I assume $srcdir is found from $0 on configure invocation, so using
> > /absolute/path/to/srcdir/configure should probably be just 
> as easy...
> 
> Is it true (for a shell) that $0 is always a full pathname?  (it could
> be a relative one, which complicates things a little).

It is *not*... but it is each time the script was refered to by an absolute
path name, so Lars recipe will work fine :-)

Regards,

	Bernard

--------------------------------------------
Bernard Dautrevaux
Microprocess Ingenierie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel:	+33 (0) 1 47 68 80 80
Fax:	+33 (0) 1 47 88 97 85
e-mail:	dautrevaux@microprocess.com
		b.dautrevaux@usa.net
-------------------------------------------- 


From Dautrevaux@microprocess.com Thu Oct 26 08:57:45 2000
Received: from [194.206.157.151] (helo=iis000.microdata.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13ombI-0007fE-00; Thu, 26 Oct 2000 08:57:45 -0400
Received: by IIS000 with Internet Mail Service (5.5.2650.21)
	id <VGY0MZ28>; Thu, 26 Oct 2000 14:47:12 +0200
Message-ID: <17B78BDF120BD411B70100500422FC6309E141@IIS000>
From: Bernard Dautrevaux <Dautrevaux@microprocess.com>
To: 'Akim Demaille' <akim@epita.fr>, APatche <autoconf-patches@gnu.org>, 
	Autoconf List <autoconf@gnu.org>
Subject: RE: More macro dispatching
Date: Thu, 26 Oct 2000 14:46:34 +0200
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

> -----Original Message-----
> From: Akim Demaille [mailto:akim@epita.fr]
> Sent: Thursday, October 26, 2000 2:35 PM
> To: APatche; Autoconf List
> Subject: Re: More macro dispatching
> 
> 
> 
> In order to properly implement the proposal of Alexandre (expr=false
> when we can't trust it), more responsibility should be moved into
> Mash, in particular things like _AC_INIT_PREPARE_ENVIRONMENT.  It is a
> good thing, it is independent from Autoconf and useful to any Mash
> project (understand `autoscript' or `autosh' here).
> 
> But to be really clean, some form of AC_REQUIRE would be good too.
> This time, it is not related to sh in any way, so I'm proposing to
> move AC_REQUIRE, AC_DEFUN and company into m4sugar.  Again, I think
> this is a good thing, some other projects than Autoconf might want it.
> It'd be m4_defun, m4_require etc.
> 
> Alexandre and Lars think it's a good thing to do.  They emphasized it
> should be done for any other macro which interest is not limited to
> Autoconf.
> 
> Would someone have a different opinion?
> 

I think it would be nice,... as long as the corresponding AC_xxx macros are
still recognised with an "obsoleted by" warning of course :-)

Bernard

--------------------------------------------
Bernard Dautrevaux
Microprocess Ingenierie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel:	+33 (0) 1 47 68 80 80
Fax:	+33 (0) 1 47 88 97 85
e-mail:	dautrevaux@microprocess.com
		b.dautrevaux@usa.net
-------------------------------------------- 


From akim@epita.fr Thu Oct 26 10:29:48 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oo2O-0000XV-00
	for <autoconf@gnu.org>; Thu, 26 Oct 2000 10:29:48 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id QAA20245
	Thu, 26 Oct 2000 16:29:00 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13oq4k-0000S5-00; Thu, 26 Oct 2000 16:40:22 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13oo2M-0007b1-00; Thu, 26 Oct 2000 16:29:46 +0200
To: dickey@herndon4.his.com
Cc: "Lars J. Aas" <larsa@sim.no>,
        Bernard Dautrevaux <Dautrevaux@microprocess.com>,
        "'Mo DeJong'" <mdejong@cygnus.com>, autoconf@gnu.org
Subject: Re: Why is srcdir passed as .
References: <Pine.BSI.4.21.0010260830490.29384-100000@herndon4.his.com>
From: Akim Demaille <akim@epita.fr>
Date: 26 Oct 2000 16:29:46 +0200
In-Reply-To: "Thomas E. Dickey"'s message of "Thu, 26 Oct 2000 08:35:46 -0400 (EDT)"
Message-ID: <mv4itqfekv9.fsf@nostromo.lrde.epita.fr>
Lines: 7
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "Thomas" == Thomas E Dickey <dickey@herndon4.his.com> writes:

Thomas> Is it true (for a shell) that $0 is always a full pathname?
Thomas> (it could be a relative one, which complicates things a
Thomas> little).

I've never met any counterexample.  A brand lot scripts out there use it.


From dickey@herndon4.his.com Thu Oct 26 11:08:35 2000
Received: from herndon4.his.com ([209.67.207.7])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oodv-0001Ak-00
	for <autoconf@gnu.org>; Thu, 26 Oct 2000 11:08:35 -0400
Received: from localhost (dickey@localhost)
	by herndon4.his.com (8.9.3/8.9.3) with ESMTP id LAA16261;
	Thu, 26 Oct 2000 11:03:10 -0400 (EDT)
Date: Thu, 26 Oct 2000 11:03:10 -0400 (EDT)
From: "Thomas E. Dickey" <dickey@herndon4.his.com>
Reply-To: dickey@herndon4.his.com
To: Akim Demaille <akim@epita.fr>
cc: "Lars J. Aas" <larsa@sim.no>,
        Bernard Dautrevaux <Dautrevaux@microprocess.com>,
        "'Mo DeJong'" <mdejong@cygnus.com>, autoconf@gnu.org
Subject: Re: Why is srcdir passed as .
In-Reply-To: <mv4itqfekv9.fsf@nostromo.lrde.epita.fr>
Message-ID: <Pine.BSI.4.21.0010261044170.14702-100000@herndon4.his.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On 26 Oct 2000, Akim Demaille wrote:

> >>>>> "Thomas" == Thomas E Dickey <dickey@herndon4.his.com> writes:
> 
> Thomas> Is it true (for a shell) that $0 is always a full pathname?
> Thomas> (it could be a relative one, which complicates things a
> Thomas> little).
> 
> I've never met any counterexample.  A brand lot scripts out there use it.

$0 is a full pathname if that's the way the script was invoked (I assume
that's what you are saying - if it was not invoked with a full pathname,
it really depends on the shell that was used to look up the name of
the script).

-- 
T.E.Dickey <dickey@herndon4.his.com>
http://dickey.his.com
ftp://dickey.his.com



From akim@epita.fr Thu Oct 26 11:11:41 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oogv-0001C9-00; Thu, 26 Oct 2000 11:11:41 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id RAA23638
	Thu, 26 Oct 2000 17:10:42 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13oqj7-0000dE-00; Thu, 26 Oct 2000 17:22:05 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13oogh-0007hP-00; Thu, 26 Oct 2000 17:11:27 +0200
To: David Morgan <dmorgan@symark.com>
Cc: Pavel Roskin <proski@gnu.org>, autoconf@gnu.org, Harlan.Stenn@pfcs.com,
        Tom Tromey <tromey@cygnus.com>
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010191856350.19433-100000@woburn.localdomain>
	<39F065A7.CFD5163A@symark.com>
	<mv4em17a0fc.fsf@nostromo.lrde.epita.fr>
From: Akim Demaille <akim@epita.fr>
Date: 26 Oct 2000 17:11:27 +0200
In-Reply-To: Akim Demaille's message of "23 Oct 2000 20:15:51 +0200"
Message-ID: <mv44s1zeixs.fsf@nostromo.lrde.epita.fr>
Lines: 14
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

--=-=-=


It would really help if someone who has an access to an Ultrix could
run the following guy.  That's the main reason why there is no 2.49b
release.  If someone knows somebody who has an access, please
denunciate her :)

Better yet, if someone knows a means to have an ssh account on an
Ultrix machine, that would help the development of quite a few GNU
tools.

        Akim


--=-=-=
Content-Type: application/x-sh
Content-Disposition: attachment; filename=test.sh

#! /bin/sh -x

nl="
"
tab="	"
space=" "

IFS="$space$tab"

foo="One line"
bar="Two
lines"

echo Direct use

for i in $foo
do
  echo "{$i}"
done

for i in $bar
do
  echo "{$i}"
done

echo
echo Indirect Use with Quotes

: ${foo1="$foo"}
: ${bar1="$bar"}

for i in $foo1
do
  echo "{$i}"
done

for i in $bar1
do
  echo "{$i}"
done

echo
echo Indirect Use without Quotes

: ${foo2=$foo}
: ${bar2=$bar}

for i in $foo2
do
  echo "{$i}"
done

for i in $bar2
do
  echo "{$i}"
done

echo
echo "NL in IFS"

IFS="$space$tab$nl"

echo
echo Direct use

for i in $foo
do
  echo "{$i}"
done

for i in $bar
do
  echo "{$i}"
done

echo
echo Indirect Use with Quotes

: ${foo3="$foo"}
: ${bar3="$bar"}

for i in $foo3
do
  echo "{$i}"
done

for i in $bar3
do
  echo "{$i}"
done

echo
echo Indirect Use without Quotes

: ${foo4=$foo}
: ${bar4=$bar}

for i in $foo4
do
  echo "{$i}"
done

for i in $bar4
do
  echo "{$i}"
done

--=-=-=--


From akim@epita.fr Thu Oct 26 11:13:12 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13ooiO-0001DB-00
	for <autoconf@gnu.org>; Thu, 26 Oct 2000 11:13:12 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id RAA23854
	Thu, 26 Oct 2000 17:13:19 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13oqle-0000eY-00; Thu, 26 Oct 2000 17:24:42 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13oojE-0007hZ-00; Thu, 26 Oct 2000 17:14:04 +0200
To: dickey@herndon4.his.com
Cc: "Lars J. Aas" <larsa@sim.no>,
        Bernard Dautrevaux <Dautrevaux@microprocess.com>,
        "'Mo DeJong'" <mdejong@cygnus.com>, autoconf@gnu.org
Subject: Re: Why is srcdir passed as .
References: <Pine.BSI.4.21.0010261044170.14702-100000@herndon4.his.com>
From: Akim Demaille <akim@epita.fr>
Date: 26 Oct 2000 17:14:04 +0200
In-Reply-To: "Thomas E. Dickey"'s message of "Thu, 26 Oct 2000 11:03:10 -0400 (EDT)"
Message-ID: <mv4zojrd48z.fsf@nostromo.lrde.epita.fr>
Lines: 11
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "Thomas" == Thomas E Dickey <dickey@herndon4.his.com> writes:

Thomas> $0 is a full pathname if that's the way the script was invoked
Thomas> (I assume that's what you are saying - if it was not invoked
Thomas> with a full pathname, it really depends on the shell that was
Thomas> used to look up the name of the script).

Actually no, I really meant that I never saw a $0 being the name which
was invoked.  A full path, at least in each practical case, I suppose
you can break that, but it does not happen in real life.  At least
mine :)


From dmorgan@symark.com Thu Oct 26 11:15:48 2000
Received: from firewall.symark.westlake.iswest.net ([207.178.203.34] helo=gateway.symark.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13ooku-0001Eh-00
	for <autoconf@gnu.org>; Thu, 26 Oct 2000 11:15:48 -0400
Received: (from mailer@localhost)
	by gateway.symark.com (8.9.3/8.9.3) id IAA14475;
	Thu, 26 Oct 2000 08:15:46 -0700
Received: from wombat.symark.com(128.1.1.33) by gateway.symark.com via smap (V2.1+anti-relay+anti-spam)
	id xma014473; Thu, 26 Oct 00 08:15:45 -0700
Message-ID: <39F84B75.8F2A9A2D@symark.com>
Date: Thu, 26 Oct 2000 08:19:17 -0700
From: David Morgan <dmorgan@symark.com>
Organization: Symark Software
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: Akim Demaille <akim@epita.fr>
CC: autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010191856350.19433-100000@woburn.localdomain>
		<39F065A7.CFD5163A@symark.com>
		<mv4em17a0fc.fsf@nostromo.lrde.epita.fr> <mv44s1zeixs.fsf@nostromo.lrde.epita.fr>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Akim,

Have a chat to the folks at www.rtr.com

They advertise a Dec Ultix as part of their porting center.

See http://www.rtr.com/newrtr/Porting01.htm

Email: info@rtr.com

We used the porting center in the past until we had the machines we used 
there in house.

Regards
 David

Akim Demaille wrote:
> 
> It would really help if someone who has an access to an Ultrix could
> run the following guy.  That's the main reason why there is no 2.49b
> release.  If someone knows somebody who has an access, please
> denunciate her :)
> 
> Better yet, if someone knows a means to have an ssh account on an
> Ultrix machine, that would help the development of quite a few GNU
> tools.
>


From akim@epita.fr Thu Oct 26 11:50:15 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13opIE-0001t4-00
	for <autoconf@gnu.org>; Thu, 26 Oct 2000 11:50:15 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id RAA03130
	Thu, 26 Oct 2000 17:51:06 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13orMD-0000ou-00; Thu, 26 Oct 2000 18:02:29 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13opJo-0007lm-00; Thu, 26 Oct 2000 17:51:52 +0200
To: David Morgan <dmorgan@symark.com>
Cc: autoconf@gnu.org
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010191856350.19433-100000@woburn.localdomain>
	<39F065A7.CFD5163A@symark.com>
	<mv4em17a0fc.fsf@nostromo.lrde.epita.fr>
	<mv44s1zeixs.fsf@nostromo.lrde.epita.fr>
	<39F84B75.8F2A9A2D@symark.com>
From: Akim Demaille <akim@epita.fr>
Date: 26 Oct 2000 17:51:52 +0200
In-Reply-To: David Morgan's message of "Thu, 26 Oct 2000 08:19:17 -0700"
Message-ID: <mv4r953d2hz.fsf@nostromo.lrde.epita.fr>
Lines: 10
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "David" == David Morgan <dmorgan@symark.com> writes:

David> Akim, Have a chat to the folks at www.rtr.com

David> They advertise a Dec Ultix as part of their porting center.

David> See http://www.rtr.com/newrtr/Porting01.htm

Wow!  Nice url!  But it's not free :(  I'll try though if there is
really no means for us to find someone which such a beast.


From dickey@herndon4.his.com Thu Oct 26 11:56:46 2000
Received: from herndon4.his.com ([209.67.207.7])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13opOY-0001xl-00
	for <autoconf@gnu.org>; Thu, 26 Oct 2000 11:56:46 -0400
Received: from localhost (dickey@localhost)
	by herndon4.his.com (8.9.3/8.9.3) with ESMTP id LAA19326;
	Thu, 26 Oct 2000 11:56:31 -0400 (EDT)
Date: Thu, 26 Oct 2000 11:56:31 -0400 (EDT)
From: "Thomas E. Dickey" <dickey@herndon4.his.com>
Reply-To: dickey@herndon4.his.com
To: Akim Demaille <akim@epita.fr>
cc: "Lars J. Aas" <larsa@sim.no>,
        Bernard Dautrevaux <Dautrevaux@microprocess.com>,
        "'Mo DeJong'" <mdejong@cygnus.com>, autoconf@gnu.org
Subject: Re: Why is srcdir passed as .
In-Reply-To: <mv4zojrd48z.fsf@nostromo.lrde.epita.fr>
Message-ID: <Pine.BSI.4.21.0010261154310.19130-100000@herndon4.his.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On 26 Oct 2000, Akim Demaille wrote:

> >>>>> "Thomas" == Thomas E Dickey <dickey@herndon4.his.com> writes:
> 
> Thomas> $0 is a full pathname if that's the way the script was invoked
> Thomas> (I assume that's what you are saying - if it was not invoked
> Thomas> with a full pathname, it really depends on the shell that was
> Thomas> used to look up the name of the script).
> 
> Actually no, I really meant that I never saw a $0 being the name which
> was invoked.  A full path, at least in each practical case, I suppose
> you can break that, but it does not happen in real life.  At least
> mine :)
> 
#!/bin/sh
echo "$0 $*"
if test $# != 0 ; then
	echo ...done
else
	eval $0 param
fi

Call that "foo", and run ./foo.  On Solaris I only see relative pathnames
printed.  (Are you still talking about that case?)

-- 
T.E.Dickey <dickey@herndon4.his.com>
http://dickey.his.com
ftp://dickey.his.com



From daniele@ripe.net Thu Oct 26 12:13:27 2000
Received: from birch.ripe.net ([193.0.1.96])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13opeh-0002BY-00
	for <autoconf@gnu.org>; Thu, 26 Oct 2000 12:13:27 -0400
Received: from x51.ripe.net (x51.ripe.net [193.0.1.51])
	by birch.ripe.net (8.8.8/8.8.8) with ESMTP id SAA12216
	for <autoconf@gnu.org>; Thu, 26 Oct 2000 18:13:26 +0200 (CEST)
Date: Thu, 26 Oct 2000 18:13:25 +0200 (CEST)
From: Daniele Arena <daniele@ripe.net>
To: autoconf@gnu.org
Subject: Yet Another Failed Check
Message-ID: <Pine.BSI.4.05L.10010261802240.360-101000@x51.ripe.net>
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED; BOUNDARY="1293669435-823033196-972576805=:360"
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

--1293669435-823033196-972576805=:360
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hi Autoconfers,

I'm slowly but steadily proceeding in makechecking autoconf on whatever
machine I can get hold of, during my spare minutes...:)

You told me to report any failed checks, so here are a couple of them on a
RISC running AIX 4.3.3 , with the CVS version checked out this afternoon.
The file contains the significant snippet of the global error file.

The good news is that all went well on an Alpha running Digital Unix 4.0f.

Have fun.

Cheers,

Daniele.

--1293669435-823033196-972576805=:360
Content-Type: APPLICATION/octet-stream; name="check.aix433.gz"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.BSI.4.05L.10010261813250.360@x51.ripe.net>
Content-Description: 
Content-Disposition: attachment; filename="check.aix433.gz"

H4sICMxU+DkAA2NoZWNrLmFpeDQzMwDFWXlv20YW/7v8FC8JUEuO7suyUhtQ
HMXxInEM223SLQplRI2kqXkIHFK2drPffX9vSIqkJLdOdrHrFrE1737zzlGr
X6NaXUtXeKGydc3tDDqtLtHb4cX70RvypAjoSxHc7h1YVq9n6NZeKB7MaYfM
T5EuBwbNp0CFypvTl6mcRPPq5WVNLw5I24FahrpCl5d0Qq0+9XoVmvqetKyT
b/yxRtfXH68HdBOpUFLk6ci2pdazyKlQi/wZNbt9CqUONc2EcuT02yVYnxbS
o0Au/cDYEvNJmIY+uULBZuXJQLMV5PkhuTKQzpocpUODaHmROzEIAjQLSfFn
ZmcvhDeXmiYyvJdGkCOFxoHwprQMpJFTs15LskUgYRjLnKuVJBESo4YkHMcw
Vd7MD1wRKt+jtR/RHJqIiR+FDHVr1q84c8UaeCswVXMBlwlvDSn+xJEuqZkh
m0npgM6RLAkGab8CErpfKHth2dDNCJtLWAwOUzJ3O2dbkotlhis1BY7vT0mH
Inbc0oejYMq5T1CQzXP9qZqtjXZszb1ynBrRl1o9DReqVhfSWR4YgzVFWsyl
lTMT2Jf+faV4J8wG7iT5IO2IFRRzXE+FVjKY+Br3Unt6nFmpLq0+QndAt+w4
2OIqrfl3KN2lAy/ob+G4lVztgVEc7Gq12i64VwDbgRRGg1rd9r2Zmtfg3zDS
GcBDIj0g8KQXWg3RtE63UX9rN49/H1B3QBMxpRk8h8RRYRKTT/LNxi0oCnm3
DM/Gb3++PBt/+DC8eiKffMXYdsR3gOyFtO9YlYV/z/EbRJ4J1zPOJcQlVwc/
ACbZNlVHGT5iiua2zRD8ys7vFxL0QcLE9t0lHBbQvR/caUZe4+53kO+RWAEy
NvC1Tmhi/XA7j2JHcURBzvnlzzlZO1JYVX/yh7RD0tFsph4Ywy/C4+A3WZzh
7IqGqSRQMjlrq/O9knQ4ddSkttgLROAA/ghQr3WdQ+4R8FyGS+SzVv+Qe+Hs
YpNrrlimrvvL6E+OF1a1Wk0/OP7cul0oHcc6Drlca1P6XIQD68AlaxrZKBaT
9cbxmmueIy3EkJfxjgJZ4cgSKl/6UDs3YBTZOy7gXCVC/Il6c4HqhtJv1EyF
pNjUqnWOJ5WsXt2rcGFRlreMZFmomUslPF+LgWVFnnAlVV30zwb/dFrto26j
kZ4HOG+nHzQ+DC8+px9X+NixrHqkg/pEefXkeIljK3/w2XR3HFoLn9Nr5lPx
J8NHcQ7QFgqQlL0I7AVV77ZozOkOt5TG145coQmlkE6tjf8aMQJ8spIPdUQP
4suoxTpuPDXo9/oDeloZyFMdMxWXBDJXwyWlZtMp6tyq7kXoKK3TzbkM8qTH
zaPvJW02GqANpI6ccJBWpBy0186ZklSoAkK/m5FvwdqNPPGflbECVbNvOFHV
3xjDl5AzjE5/7BZIWq1BEqtm1smDuHul+pkEz8E6/T367a+cBbpuI+PJNSEP
2mfyX5TXAoOjTmK9XbR52+S837ft6ve3Lq1Qq/OonUb3SeI6zeNMXMFiTO5b
wnYKfwG90/vW2+30cldYABx19zi72FAK+MftjbHV+Z+Z2220HvVut3W8ZXDa
nwpYneZ3p2S39y3S0wb4/5Geddj/ifyj7WDLtfA8Yq/Z2g0z3Hn1Y+vPg63X
aj4qvddubknPDwh5zKOj7neJT9cI9Id5IFzu2APrBeqPpGav06DnG9Tn1gvl
2U6EHcccTuVM1xbPrfoh3WKfuzOL4Qd1J+mdkEHI+xTWnb8pl4ZolcJoH/JE
YhSxoNU7bIykzNAgwkA98O7KdmFrwqYxQRUMlYQ6P8SHgVrx9sa7JlIca23x
3JzxSqV9VyI1uaJGQYCVAFtp5AF1+RQa4WBemWJKyuPrBarpdEd0cvwtkh8n
2RLMrwzwWKopn+LesU2jtOuFHzlTXu7iVRJ80pXaFh5riVWQuZXKzGci7Dua
Bb5rOgEPhBWYEhhfH+g9YFZMEPbUmWQrmIeYThGjGstn6daouxBYxye8vSMh
sRLy4MjnqcI8+rEmtg9P2PAEc1HYHKULljDe4VBJVnjh+pEm1e73SK+CTq1R
McFT5Axc5vHLB+L8g6VIjJyYhdHVDJKZITEHmkRsSkzCPIxsKQLcD49x2Ko1
B9/bQMrXN2/iZwgTg44ZWnnj9QMRrOlShkColdPrSa5z3+2YmS3g3XvvRaGM
MBPk3dKfxwMy3wMP2cnTBpZsjGz85/og4M62hE688fvwO+ZrUJ9jsIMLPPP+
UAjpQjCZbMO1mXcbTkKoSnOm9aScmsS98zA0xg8nJk5h1oCpDmnqQwmsymbB
Nq5R5rMWM/Nach/wM5Ty8CdrbYJqyvQipk+m0QjDMqhK7N+VCBQrXQa8npWV
n7i0h+ulRF05zR3PbGRS8YgxIcnjUxzP6Ob2zdn43Wj4ZnR9Q1+/0rvhL6Mx
Dt9fvB6/s15QRpm0TnCTjkYJxw3SoQun+zaVyq9w7CHyDVPD5OfLC/ApMkk7
4OkO9s2vNxA7vN0SuulZG4q4bsKVvI7Fi5K/VFwa0kzkkS2/Ly5qibtm9MzI
Oh/dXg3PRzcXfx8xt6HWkSvjKOMYSrMnDjvhmYUg265MArNiS4HCv+FOG/Zs
ytXwevjB2IK9b8ZdYRtETQATk5gYaDS+ORtvNMtIc8aUyiyalSnlkcvMC7dC
MMfzC3xi5Sjv55xyRVcnFp3GEKPS6POoqNMjWu3i5fQpABOFUgGXr6/O48/7
GTMc2XD2PlMAlB6TFs5S6vjQeJd/jIcTNRJQKj+nYCykvmGfKHa2xXtHsxSh
yOosY5XwKjrwMYbbWBvdd1xXMKsgcQuwsSp/vu86chbsRGrCYq/O/eZx6wfQ
LSP0kNAPkUDrlGVO5H6eeYztmE3yPU+fy1uDgdppmcqMdv1PFM24JE1FKCrx
r1byu/3K4kgPSVUo1T09mk1fcUtIj+kkb6ApbIBCibcq0GHFPNegx5smaVom
DyKmC3g0F8GEOyw0UmGNVYTTIB48S7FuZUoLZiqhbPSYUekZY5r+yB0DBb9p
QDz9lRQ/3bwiRT9l6tPLlypGPywZIS9JlYEXcKcpGdrIFfqOSo2Y0RRA86ZE
pefpXMtN53mFGr1GY6MIEH+ixq4mDIt7FlAqFLt5YwY9O8k+7NDaDjow023c
eSkf4M0QowF/LcKdszhEJe04np7i7xM2zXkhtJFgfG+6chy+xrVmJAALvgG6
mPFggRqOucjRfnx7Ogriah8z4clDxhOV5ses5Bbjsp74zV9iXttx28fx9ZtP
13/pOBOJ+2Kghbq2Pw5aj3F5eZKFDlWpVEIIlxPYjwVQs1wu7xylQmICXJnx
fCnJlRS1QlfXH2/H15gK6Gv896fri9tRxaJ9Px+GV+Or64tfhrcjoPOntxef
R28qxGHSeF/+rqBmLfOBDV0PE7X5czlRJeOaZqnHFaiyddOb6TEdtsx4Z4at
5Gu4mN9SBrbP39FshsosKjWHicfPsfGGEI/0PNPxJjaJ5uR7WVhuZjWej3MD
eq2cxtVTE7uVZnbh40tqplHRfnp9ae9PazYoy+r2k9P6P7nH9iP3WCwWKGIe
luq77eQzoJiIK9e/Cit9/6jw6GedmY3HXMjE4cX4Kwl7bK/G+Cd52BvPveiE
HxFSkPRW47OzsZbhycHB9ulKOJHcOX/7fnh+s5cihuynurp6nC6F7aWcRMqZ
joWjhN5HnAfvpeeX+sfJc9C91KEI0Ccfpy/AdzjMIs8e5/pswfUGyLc8Nk1g
HCfrCW4yxVggXnFn8UoyXhSoU9gaamFz2A+N95AtGD+9PoQnmRh+2+FLODkw
D2QHRQD/GSIaTvgtvQCxYZvhbGXvPRx0+P9FYRtI1iwMq1uQdHfahWR70i4s
Px81829VJlEa3/ktabMnmkfWKeXzz5pzff2t9fuADg8P6Tfz1Fbl7uv8TqMg
QF1o5nDeS7HiLj1V/KTho+l/qesltvRWnUtBfTLBb09JR9btla6LKPRZWt18
R3+QMGoWhQk3ldTKIfw3JBXEgE0UaLWSmV3/BmoeDxgVIwAA
--1293669435-823033196-972576805=:360--


From akim@epita.fr Thu Oct 26 12:25:55 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13opql-0002Oh-00
	for <autoconf@gnu.org>; Thu, 26 Oct 2000 12:25:55 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id SAA10926
	Thu, 26 Oct 2000 18:25:54 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13ortt-0000yj-00; Thu, 26 Oct 2000 18:37:17 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13oprS-0007pL-00; Thu, 26 Oct 2000 18:26:38 +0200
To: dickey@herndon4.his.com
Cc: "Lars J. Aas" <larsa@sim.no>,
        Bernard Dautrevaux <Dautrevaux@microprocess.com>,
        "'Mo DeJong'" <mdejong@cygnus.com>, autoconf@gnu.org
Subject: Re: Why is srcdir passed as .
References: <Pine.BSI.4.21.0010261154310.19130-100000@herndon4.his.com>
From: Akim Demaille <akim@epita.fr>
Date: 26 Oct 2000 18:26:38 +0200
In-Reply-To: "Thomas E. Dickey"'s message of "Thu, 26 Oct 2000 11:56:31 -0400 (EDT)"
Message-ID: <mv4em13d0w1.fsf@nostromo.lrde.epita.fr>
Lines: 7
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

You're right.  I'm actually referring to a PATH resolution.

~ % PATH=/tmp:$PATH thomas.sh                                    nostromo 18:25
/tmp/thomas.sh 
/tmp/thomas.sh param
...done


From akim@epita.fr Thu Oct 26 12:34:11 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13opyk-0002a9-00
	for <autoconf@gnu.org>; Thu, 26 Oct 2000 12:34:11 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id SAA11789
	Thu, 26 Oct 2000 18:34:59 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13os2g-000134-00; Thu, 26 Oct 2000 18:46:22 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13oq0G-0007pr-00; Thu, 26 Oct 2000 18:35:44 +0200
To: Daniele Arena <daniele@ripe.net>
Cc: autoconf@gnu.org
Subject: Re: Yet Another Failed Check
References: <Pine.BSI.4.05L.10010261802240.360-101000@x51.ripe.net>
From: Akim Demaille <akim@epita.fr>
Date: 26 Oct 2000 18:35:44 +0200
In-Reply-To: Daniele Arena's message of "Thu, 26 Oct 2000 18:13:25 +0200 (CEST)"
Message-ID: <mv466mfd0gv.fsf@nostromo.lrde.epita.fr>
Lines: 8
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Thanks for the report.  Actually none is really grave.  The failure of
test 28 is known, we just have to decide how we want to fix it
---which is currently being discussed.  The failure of test 66 just
demonstrates that AC_FUNC_MMAP forgets to clean its test file, which
will fix shortly.

Thanks!


From oliva@lsd.ic.unicamp.br Thu Oct 26 13:26:01 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oqmr-0003Qj-00; Thu, 26 Oct 2000 13:25:58 -0400
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id e9QHNQY14204;
	Thu, 26 Oct 2000 15:23:26 -0200
To: Akim Demaille <akim@epita.fr>
Cc: David Morgan <dmorgan@symark.com>, Pavel Roskin <proski@gnu.org>,
   autoconf@gnu.org, Harlan.Stenn@pfcs.com
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010191856350.19433-100000@woburn.localdomain>
	<39F065A7.CFD5163A@symark.com>
	<mv4em17a0fc.fsf@nostromo.lrde.epita.fr>
	<mv4snplmevc.fsf@nostromo.lrde.epita.fr>
	<mv4bsw9md2s.fsf@nostromo.lrde.epita.fr>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 26 Oct 2000 15:23:26 -0200
In-Reply-To: Akim Demaille's message of "25 Oct 2000 12:26:19 +0200"
Message-ID: <oritqf5xf5.fsf@guarana.lsd.ic.unicamp.br>
Lines: 14
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On Oct 25, 2000, Akim Demaille <akim@epita.fr> wrote:

> Is there anybody here with an Ultrix who could run the script I sent?
> There are Ultrices at Cygnus, right?

There is at least one Ultrix box in Red Hat's Sunnyvale office, yes.
Unfortunately, for some reason, I've been unable to log into it yet.
I'm looking into it.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From harinath@cs.umn.edu Thu Oct 26 14:32:03 2000
Received: from mail.cs.umn.edu ([128.101.36.200])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13orop-0004Q5-00
	for <autoconf@gnu.org>; Thu, 26 Oct 2000 14:32:03 -0400
Received: from han.cs.umn.edu (IDENT:root@han.cs.umn.edu [128.101.35.134])
	by mail.cs.umn.edu (8.9.3/8.9.3) with ESMTP id NAA00285
	for <autoconf@gnu.org>; Thu, 26 Oct 2000 13:32:01 -0500 (CDT)
Received: (from harinath@localhost)
	by han.cs.umn.edu (8.9.3/8.9.0) id NAA26182;
	Thu, 26 Oct 2000 13:32:01 -0500
X-Authentication-Warning: han.cs.umn.edu: harinath set sender to harinath@cs.umn.edu using -f
To: autoconf@gnu.org
Subject: `' quotes in messages (was Re: Success (mostly) with the testsuite)
References: <Pine.BSI.4.05L.10010251429471.360-200000@x51.ripe.net>
	<mv4n1ftkrqk.fsf@nostromo.lrde.epita.fr>
	<orzojsatln.fsf@guarana.lsd.ic.unicamp.br>
Content-Type: text/plain; charset=us-ascii
From: Raja R Harinath <harinath@cs.umn.edu>
Date: 26 Oct 2000 13:32:01 -0500
In-Reply-To: <orzojsatln.fsf@guarana.lsd.ic.unicamp.br>
Message-ID: <d91yx3bgim.fsf_-_@han.cs.umn.edu>
Lines: 16
User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7
MIME-Version: 1.0
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Alexandre Oliva <oliva@lsd.ic.unicamp.br> writes:
> >          test -f "$f" || { echo "configure: error: cannot find input file \\\`$f'" >&2; exit 1; }
[snip] 
> Maybe we should set ac_backquote and ac_singlequote upfront, and use
> it in error messages instead?

On a tangent, do we still want to use `...' quotes?  The latest
XFree86 fonts do not show these as symmetric open and close quotes.
The "`" is more slanted, and the "'" looks like on the PC (a vertical
quote, which can be used for both open and close).

- hari
-- 
Raja R Harinath ------------------------------ harinath@cs.umn.edu
"When all else fails, read the instructions."      -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing."   -- Roy L Ash


From ben@valinux.com Thu Oct 26 17:56:37 2000
Received: from mg136-189.ricochet.net ([204.179.136.189] helo=trill.valinux.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13ov0k-0007jY-00
	for <autoconf@gnu.org>; Thu, 26 Oct 2000 17:56:35 -0400
Received: (from ben@localhost)
	by trill.valinux.com (8.9.3/8.9.3) id OAA30864;
	Thu, 26 Oct 2000 14:46:04 -0700
Message-Id: <200010262146.OAA30864@trill.valinux.com>
To: Bernard Dautrevaux <Dautrevaux@microprocess.com>
Cc: autoconf@gnu.org
Subject: Re: Why is srcdir passed as . 
In-Reply-To: Your message of "Thu, 26 Oct 2000 10:24:05 +0200."
             <17B78BDF120BD411B70100500422FC6309E13E@IIS000> 
References: <17B78BDF120BD411B70100500422FC6309E13E@IIS000> 
Date: Thu, 26 Oct 2000 14:46:04 -0700
From: Ben Woodard <ben@valinux.com>
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

> I think there is two problems here:
> 
> Ben seems to use $srcdir where it meant $top_srcdir :-) (If we build
> in-place, then $srcdir == $builddir in all the tree).
> 
> Mo on the contrary is bothered by the fact that $srcdir is relative; just
> calling "./configure -srcdir=/absolute/path/to/srcdir" shoudl solve the
> problem.
> 

I think you are correct there are two problems.

Regarding "top_srcdir" when I was trying to figure out what which
variable to use, "top_srcdir" seemed like the one that I wanted to
use. However, it always seems to be empty.

The command that I'm using is:

ac_configure_args="${ac_configure_args} --enable-local-tdb=${srcdir}/tdb"

To have the lower level configuration scripts called with an extra parameter.

However:

If I use "--enable-local-tdb=${top_srcdir}/tdb" then it evaluates to
"--enable-local-tdb=/tdb"

If I don't pass any parameters into the top level configure script and
use "--enable-local-tdb=${srcdir}/tdb" then it evalutes to
"--enable-local-tdb=./tdb" which seems to be the same problem with
srcdir being relative that Mo was having.

The way that I am using "srcdir" now is:

srcdir=`cd $srcdir;pwd`
AC_CHECK_LIB(tdb,tdb_exists,[
  build_tdb=false
  AC_CHECK_HEADERS(tdb.h,[],[
    AC_MSG_ERROR(The tdb libraries were found but the header files were missing. Please either install the headers or uninstall the library and the version of tdb that is bundled with gnulpr will be intsalled.)
])],[
  ac_configure_args="${ac_configure_args} --enable-local-tdb=${srcdir}/tdb"
  subpackages="tdb ${subpackages}"
  build_tdb=true
  TDB_DIR="${srcdir}/tdb"
])
AM_CONDITIONAL(BUILD_TDB, $build_tdb)
AC_SUBST(TDB_DIR)

> Regards,
> 
> 	Bernard
> 
> PS: IIUC, the special case of "." is just to avoid getting, in some second
> level subdirectory name lib/somelib, srcdir set to
> "../lib/../../lib/somelib" which is almost equivalent (but a lot longer) to
> "." ;-) The "almost" above is for the case where "lib" is in fact a link to
> "../../commonlibs". In this case "." would be correct while
> "../lib/../../lib/somelib" would yield a "file not found" error somewhere
> ;-?

I'm having trouble following your example. Which "lib" is a link to
"../../commonlibs". The directory tree as you portrayed it is:

lib/lib/
lib/somelib/

-ben


> 
> 
> --------------------------------------------
> Bernard Dautrevaux
> Microprocess Ingenierie
> 97 bis, rue de Colombes
> 92400 COURBEVOIE
> FRANCE
> Tel:	+33 (0) 1 47 68 80 80
> Fax:	+33 (0) 1 47 88 97 85
> e-mail:	dautrevaux@microprocess.com
> 		b.dautrevaux@usa.net
> -------------------------------------------- 
> 



From oliva@lsd.ic.unicamp.br Thu Oct 26 17:56:51 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13ov0z-0007jg-00; Thu, 26 Oct 2000 17:56:50 -0400
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id e9QLhPH16113;
	Thu, 26 Oct 2000 19:43:25 -0200
To: Akim Demaille <akim@epita.fr>
Cc: David Morgan <dmorgan@symark.com>, Pavel Roskin <proski@gnu.org>,
   autoconf@gnu.org, Harlan.Stenn@pfcs.com
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010191856350.19433-100000@woburn.localdomain>
	<39F065A7.CFD5163A@symark.com>
	<mv4em17a0fc.fsf@nostromo.lrde.epita.fr>
	<mv4snplmevc.fsf@nostromo.lrde.epita.fr>
	<mv4bsw9md2s.fsf@nostromo.lrde.epita.fr>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 26 Oct 2000 19:43:25 -0200
In-Reply-To: Akim Demaille's message of "25 Oct 2000 12:26:19 +0200"
Message-ID: <ork8av2s8y.fsf@guarana.lsd.ic.unicamp.br>
Lines: 105
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On Oct 25, 2000, Akim Demaille <akim@epita.fr> wrote:

> Is there anybody here with an Ultrix who could run the script I sent?
> There are Ultrices at Cygnus, right?

Yep, got it.  There you go:

nl=

tab=	
space= 
IFS= 	
foo=One line
bar=Two
lines
+ echo Direct use 
Direct use
+ echo {One} 
{One}
+ echo {line} 
{line}
+ echo {Two
lines} 
{Two
lines}
+ echo 

+ echo Indirect Use with Quotes 
Indirect Use with Quotes
+ : One line 
+ : Two
lines 
+ echo {One line} 
{One line}
+ echo {Two
lines} 
{Two
lines}
+ echo 

+ echo Indirect Use without Quotes 
Indirect Use without Quotes
+ : One line 
+ : Two
lines 
+ echo {One} 
{One}
+ echo {line} 
{line}
+ echo {Two
lines} 
{Two
lines}
+ echo 

+ echo NL in IFS 
NL in IFS
IFS= 	

+ echo 

+ echo Direct use 
Direct use
+ echo {One} 
{One}
+ echo {line} 
{line}
+ echo {Two} 
{Two}
+ echo {lines} 
{lines}
+ echo 

+ echo Indirect Use with Quotes 
Indirect Use with Quotes
+ : One line 
+ : Two
lines 
+ echo {One line} 
{One line}
+ echo {Two
lines} 
{Two
lines}
+ echo 

+ echo Indirect Use without Quotes 
Indirect Use without Quotes
+ : One line 
+ : Two lines 
+ echo {One} 
{One}
+ echo {line} 
{line}
+ echo {Two} 
{Two}
+ echo {lines} 
{lines}


-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From mdejong@cygnus.com Thu Oct 26 18:07:01 2000
Received: from runyon.cygnus.com ([205.180.230.5] helo=cygnus.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13ovAq-0007od-00
	for <autoconf@gnu.org>; Thu, 26 Oct 2000 18:07:00 -0400
Received: from cse.cygnus.com (cse.cygnus.com [205.180.230.236])
	by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id PAA25134
	for <autoconf@gnu.org>; Thu, 26 Oct 2000 15:06:59 -0700 (PDT)
Received: (mdejong@localhost) by cse.cygnus.com (8.8.8+Sun/8.6.4) id PAA09894; Thu, 26 Oct 2000 15:06:59 -0700 (PDT)
Date: Thu, 26 Oct 2000 15:06:58 -0700 (PDT)
From: Mo DeJong <mdejong@cygnus.com>
To: autoconf@gnu.org
Subject: Re: Why is srcdir passed as . 
In-Reply-To: <200010262146.OAA30864@trill.valinux.com>
Message-ID: <Pine.SOL.3.91.1001026145933.9352H-100000@cse.cygnus.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On Thu, 26 Oct 2000, Ben Woodard wrote:

> > I think there is two problems here:
> > 
> > Ben seems to use $srcdir where it meant $top_srcdir :-) (If we build
> > in-place, then $srcdir == $builddir in all the tree).
> > 
> > Mo on the contrary is bothered by the fact that $srcdir is relative; just
> > calling "./configure -srcdir=/absolute/path/to/srcdir" shoudl solve the
> > problem.
> > 

> The command that I'm using is:
> 
> ac_configure_args="${ac_configure_args} --enable-local-tdb=${srcdir}/tdb"

...

> The way that I am using "srcdir" now is:
> 
> srcdir=`cd $srcdir;pwd`

...

This is exactly the sort of hack I would like
to avoid. Where is the logic in forcing everyone
to fix this problem instead of just putting
it into autoconf? It becomes a no-op if you
do it twice, so there should not be a problem.

The "just pass it on the command line" suggestion
is not feasible. We are talking about end users
that just want to compile the package here.
They will want to run:

./configure ; make install

and expect it to work, and why shouldn't they?
Expecting them to do more than this is
not a good idea.

Mo DeJong
Red Hat Inc


From ben@valinux.com Thu Oct 26 18:20:43 2000
Received: from mg136-189.ricochet.net ([204.179.136.189] helo=trill.valinux.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13ovO5-00083P-00
	for <autoconf@gnu.org>; Thu, 26 Oct 2000 18:20:42 -0400
Received: (from ben@localhost)
	by trill.valinux.com (8.9.3/8.9.3) id PAA30892;
	Thu, 26 Oct 2000 15:10:04 -0700
Message-Id: <200010262210.PAA30892@trill.valinux.com>
To: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Cc: autoconf@gnu.org
Subject: Re: Why is srcdir passed as . 
In-Reply-To: Your message of "26 Oct 2000 06:44:55 -0200."
             <orr954at4o.fsf@guarana.lsd.ic.unicamp.br> 
References: <200010252223.PAA08771@trill.valinux.com>  <orr954at4o.fsf@guarana.lsd.ic.unicamp.br> 
Date: Thu, 26 Oct 2000 15:10:04 -0700
From: Ben Woodard <ben@valinux.com>
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

> On Oct 25, 2000, Ben Woodard <ben@valinux.com> wrote:
> 
> > I am having a problem with my configure script where when configure is
> > called for the subprojects a parameter --srcdir=. is passed into them
> > when I just do configure.
> 
> srcdir is supposed to be the top-level directory of the project (or
> subproject), not the top-level of the whole tree.
> 
> The rationale is that you can just grab whatever set of packages, put
> them as sub-directories of your package, create a top-level configure
> and Makefile and everything will just work.
> 

The problem that I'm having is dealing with interelationships between
the projects. I have one project with 8 sub projects. Several of these
are libraries. The rest of the subpackages depend on these libraries.

The difficult thing is to communicating to the subpackages that build
applications that depend on the libraries where to find the hader
files libraries.

The top level configure script knows that all the libraries are
available and knows where they are. However passing this information
down to the subpackages in such a way that their configure scripts
find everything in the right place is proving very very difficult. 

If anyone knows of an application that does this, I would sure be
appriciative. What I have now is:

AC_CHECK_LIB(tdb,tdb_exists,[
  build_tdb=false
  AC_CHECK_HEADERS(tdb.h,[],[
    AC_MSG_ERROR(The tdb libraries were found but the header files were missing. Please either install the headers or uninstall the library and the version of tdb that is bundled with gnulpr will be intsalled.)
])],[
  ac_configure_args="${ac_configure_args} --enable-local-tdb=${srcdir}/tdb"
  subpackages="tdb ${subpackages}"
  build_tdb=true
  TDB_DIR="${srcdir}/tdb"
])
AM_CONDITIONAL(BUILD_TDB, $build_tdb)
AC_SUBST(TDB_DIR)


> 
> 
> If instead --srcdir were passed as the top-level directory, you'd have
> to adjust every sub-package so as to ``know'' it's been packaged
> differently.

This is not true in my experience. If I use Mo's trick and set srcdir
to `cd $srcdir;pwd` or if I remove the special case for '.' then it
still works with no modification to the subpackages configuration
scripts.

-ben

> 
> -- 
> Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
> Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
> CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
> Free Software Evangelist    *Please* write to mailing lists, not to me



From rra@stanford.edu Thu Oct 26 20:05:08 2000
Received: from windlord.stanford.edu ([171.64.13.23])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13ox19-0001Lh-00
	for <autoconf@gnu.org>; Thu, 26 Oct 2000 20:05:08 -0400
Received: (qmail 13931 invoked by uid 50); 27 Oct 2000 00:05:05 -0000
To: autoconf@gnu.org
Subject: Re: `' quotes in messages (was Re: Success (mostly) with the testsuite)
References: <Pine.BSI.4.05L.10010251429471.360-200000@x51.ripe.net>
	<mv4n1ftkrqk.fsf@nostromo.lrde.epita.fr>
	<orzojsatln.fsf@guarana.lsd.ic.unicamp.br>
	<d91yx3bgim.fsf_-_@han.cs.umn.edu>
In-Reply-To: Raja R Harinath's message of "26 Oct 2000 13:32:01 -0500"
From: Russ Allbery <rra@stanford.edu>
Organization: The Eyrie
Date: 26 Oct 2000 17:05:05 -0700
Message-ID: <yl1yx39mj2.fsf@windlord.stanford.edu>
Lines: 19
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Raja R Harinath <harinath@cs.umn.edu> writes:

> On a tangent, do we still want to use `...' quotes?  The latest XFree86
> fonts do not show these as symmetric open and close quotes.  The "`" is
> more slanted, and the "'" looks like on the PC (a vertical quote, which
> can be used for both open and close).

See <http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html> for an extensive
argument on this subject which convinced me, even though I'm really
annoyed by it.  I think Unicode *totally* screwed this up, but we're not
going to manage to fix it and we may as well bite the bullet.

The above URL also explains why XFree86 4.0 made this change, which was
incompatible with previous X fonts.  I prefer the way that earlier X fonts
handled it, but they got outvoted by the PC world which ended up winning
in the Unicode spec, basically.  :/

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


From oliva@lsd.ic.unicamp.br Thu Oct 26 22:38:26 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13ozPV-0003Mp-00
	for <autoconf@gnu.org>; Thu, 26 Oct 2000 22:38:25 -0400
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id e9R2cL819218;
	Fri, 27 Oct 2000 00:38:21 -0200
To: Mo DeJong <mdejong@cygnus.com>
Cc: autoconf@gnu.org
Subject: Re: Why is srcdir passed as .
References: <Pine.SOL.3.91.1001026145933.9352H-100000@cse.cygnus.com>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 27 Oct 2000 00:38:20 -0200
In-Reply-To: Mo DeJong's message of "Thu, 26 Oct 2000 15:06:58 -0700 (PDT)"
Message-ID: <orog07100z.fsf@guarana.lsd.ic.unicamp.br>
Lines: 16
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On Oct 26, 2000, Mo DeJong <mdejong@cygnus.com> wrote:

> They will want to run:

> ./configure ; make install

> and expect it to work, and why shouldn't they?

Works for me.  When doesn't it work for you?  Did you read my other
message in this thread?

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From oliva@lsd.ic.unicamp.br Thu Oct 26 22:49:22 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13oza5-0003aw-00
	for <autoconf@gnu.org>; Thu, 26 Oct 2000 22:49:21 -0400
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id e9R2n8O19490;
	Fri, 27 Oct 2000 00:49:08 -0200
To: Ben Woodard <ben@valinux.com>
Cc: autoconf@gnu.org
Subject: Re: Why is srcdir passed as .
References: <200010252223.PAA08771@trill.valinux.com>
	<orr954at4o.fsf@guarana.lsd.ic.unicamp.br>
	<200010262210.PAA30892@trill.valinux.com>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 27 Oct 2000 00:49:08 -0200
In-Reply-To: Ben Woodard's message of "Thu, 26 Oct 2000 15:10:04 -0700"
Message-ID: <ork8av0ziz.fsf@guarana.lsd.ic.unicamp.br>
Lines: 52
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On Oct 26, 2000, Ben Woodard <ben@valinux.com> wrote:

>   ac_configure_args="${ac_configure_args} --enable-local-tdb=${srcdir}/tdb"

This is just plain wrong in case srcdir is a relative pathname.  The
problem isn't the `.' special-case, the problem is that this assumes
${srcdir} is absolute.  autoconf is designed to support relative
srcdir, and it takes a significant amount of trouble to do so
(the `.' special-case is part of that trouble).

Now, if *you* want your packages to support a relative srcdir, you'll
have to adjust ac_configure_args so as to adjust occurrences of a
relative ${srcdir} so that they become relative to the right
directory.  For example, given a tree:

foo/
    bar/
        baz/
    fnord/
    build/

Assume you enter `foo/build' and run `../configure'.  srcdir is `..'.
When `foo/configure' runs `foo/bar/configure' from within
`foo/build/bar', it will set srcdir to `../../bar', so that srcdir
points to the source tree of the bar sub-project.  This is all
correct.

You seem to want srcdir to start pointing to `../..', i.e., `foo',
even when running sub-packages' `configure's.  This would be just
wrong.  Each (sub-)package is supposed to have its own srcdir, that is
the root of its own tree.

If there are inter-dependencies between sub-directories, one might
just argue they're not really separate sub-packages, and you should
just use a single top-level configure for them all.  If you mean to
keep them separate, you have to take the same trouble autoconf takes
to adjust srcdir and do it for any other potentially relative
pathname.

> This is not true in my experience. If I use Mo's trick and set srcdir
> to `cd $srcdir;pwd` or if I remove the special case for '.' then it
> still works with no modification to the subpackages configuration
> scripts.

Try `cd build; ../configure' after removing the `.' special case and
note that it won't work.  You're just barking up the wrong tree.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From eggert@twinsun.com Fri Oct 27 02:40:47 2000
Received: from alcor.twinsun.com ([198.147.65.9])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13p3C2-00068T-00
	for <autoconf@gnu.org>; Fri, 27 Oct 2000 02:40:46 -0400
Received: from green-office.twinsun.com ([192.54.239.71]) by alcor.twinsun.com (8.9.3/8.9.3) with ESMTP id XAA02299; Thu, 26 Oct 2000 23:40:45 -0700 (PDT)
Received: (eggert@localhost) by green-office.twinsun.com (8.9.3+Sun/8.9.3) id XAA10271; Thu, 26 Oct 2000 23:40:45 -0700 (PDT)
Date: Thu, 26 Oct 2000 23:40:45 -0700 (PDT)
From: Paul Eggert <eggert@twinsun.com>
Message-Id: <200010270640.XAA10271@green-office.twinsun.com>
To: rra@stanford.edu
CC: autoconf@gnu.org
In-reply-to: <yl1yx39mj2.fsf@windlord.stanford.edu> (rra@stanford.edu)
Subject: Re: `' quotes in messages
References: <Pine.BSI.4.05L.10010251429471.360-200000@x51.ripe.net>
	<mv4n1ftkrqk.fsf@nostromo.lrde.epita.fr>
	<orzojsatln.fsf@guarana.lsd.ic.unicamp.br>
	<d91yx3bgim.fsf_-_@han.cs.umn.edu> <yl1yx39mj2.fsf@windlord.stanford.edu>
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

   From: Russ Allbery <rra@stanford.edu>
   Date: 26 Oct 2000 17:05:05 -0700

   > On a tangent, do we still want to use `...' quotes?

   See <http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html> for an extensive
   argument on this subject which convinced me, even though I'm really
   annoyed by it.

It convinced me too, at first.  But then I tried to convert GNU tar to
use the more "standard" quotes.  This turned into a real mess, and was
the topic of extended controversy on the gnits mailing list.  The
consensus opinion, which I gradually came to share, was to leave well
enough alone.  So this week I spent an unhappy hour or two undoing the
damage by reverting to the `traditional GNU quotes' in GNU tar.

I assume that we're talking about US-ASCII English here.  If we're
talking about non-English US-ASCII text (like shell source code) then
obviously one should use whatever US-ASCII character is appropriate.
And if we are talking about Unicode/ISO10646/etc English, then it's
clear that one should avoid the three characters `, ', and ", as none
of those Unicode characters are used in ordinary English text.

For some reason the whole subject reminds me of RS-232 connectors....


From Dautrevaux@microprocess.com Fri Oct 27 04:31:29 2000
Received: from [194.206.157.151] (helo=iis000.microdata.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13p4vA-0007Zv-00
	for <autoconf@gnu.org>; Fri, 27 Oct 2000 04:31:29 -0400
Received: by IIS000 with Internet Mail Service (5.5.2650.21)
	id <VGY0MZTX>; Fri, 27 Oct 2000 10:21:07 +0200
Message-ID: <17B78BDF120BD411B70100500422FC6309E144@IIS000>
From: Bernard Dautrevaux <Dautrevaux@microprocess.com>
To: 'Akim Demaille' <akim@epita.fr>, dickey@herndon4.his.com
Cc: "Lars J. Aas" <larsa@sim.no>, Bernard Dautrevaux
	 <Dautrevaux@microprocess.com>, 'Mo DeJong' <mdejong@cygnus.com>, 
	autoconf@gnu.org
Subject: RE: Why is srcdir passed as .
Date: Fri, 27 Oct 2000 10:20:48 +0200
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

> -----Original Message-----
> From: Akim Demaille [mailto:akim@epita.fr]
> Sent: Thursday, October 26, 2000 5:14 PM
> To: dickey@herndon4.his.com
> Cc: Lars J. Aas; Bernard Dautrevaux; 'Mo DeJong'; autoconf@gnu.org
> Subject: Re: Why is srcdir passed as .
> 
> 
> >>>>> "Thomas" == Thomas E Dickey <dickey@herndon4.his.com> writes:
> 
> Thomas> $0 is a full pathname if that's the way the script was invoked
> Thomas> (I assume that's what you are saying - if it was not invoked
> Thomas> with a full pathname, it really depends on the shell that was
> Thomas> used to look up the name of the script).
> 
> Actually no, I really meant that I never saw a $0 being the name which
> was invoked.  A full path, at least in each practical case, I suppose
> you can break that, but it does not happen in real life.  At least
> mine :)
> 

????? testing on a RedHat-6.1/2 (i.e. a 6.1 with some upgrades of 6.2)

bash$ uname -a
Linux altair.microdata.fr 2.2.16-3smp #1 SMP Mon Jun 19 19:00:35 EDT 2000
i686 unknown
bash$ echo '#!/bin/sh' > tst.sh
bash$ echo 'echo $0' >> tst.sh
bash$ chmod a+x tst.sh
bash$ ./tst.sh
./tst.sh
bash$ 

--------------------------------------------
Bernard Dautrevaux
Microprocess Ingenierie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel:	+33 (0) 1 47 68 80 80
Fax:	+33 (0) 1 47 88 97 85
e-mail:	dautrevaux@microprocess.com
		b.dautrevaux@usa.net
-------------------------------------------- 


From Dautrevaux@microprocess.com Fri Oct 27 04:33:45 2000
Received: from [194.206.157.151] (helo=iis000.microdata.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13p4xN-0007bV-00
	for <autoconf@gnu.org>; Fri, 27 Oct 2000 04:33:45 -0400
Received: by IIS000 with Internet Mail Service (5.5.2650.21)
	id <VGY0MZT7>; Fri, 27 Oct 2000 10:23:23 +0200
Message-ID: <17B78BDF120BD411B70100500422FC6309E145@IIS000>
From: Bernard Dautrevaux <Dautrevaux@microprocess.com>
To: 'Akim Demaille' <akim@epita.fr>, dickey@herndon4.his.com
Cc: "Lars J. Aas" <larsa@sim.no>, Bernard Dautrevaux
	 <Dautrevaux@microprocess.com>, 'Mo DeJong' <mdejong@cygnus.com>, 
	autoconf@gnu.org
Subject: RE: Why is srcdir passed as .
Date: Fri, 27 Oct 2000 10:23:11 +0200
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

> -----Original Message-----
> From: Akim Demaille [mailto:akim@epita.fr]
> Sent: Thursday, October 26, 2000 6:27 PM
> To: dickey@herndon4.his.com
> Cc: Lars J. Aas; Bernard Dautrevaux; 'Mo DeJong'; autoconf@gnu.org
> Subject: Re: Why is srcdir passed as .
> 
> 
> 
> You're right.  I'm actually referring to a PATH resolution.
> 
> ~ % PATH=/tmp:$PATH thomas.sh                                 
>    nostromo 18:25
> /tmp/thomas.sh 
> /tmp/thomas.sh param
> ...done
> 

NOoooo....

Same machine as before (RedHat-6.1/2); "." is usually not in my path:

bash$ uname -a
Linux altair.microdata.fr 2.2.16-3smp #1 SMP Mon Jun 19 19:00:35 EDT 2000
i686 unknown
bash$ echo '#!/bin/sh' > tst.sh
bash$ echo 'echo $0' >> tst.sh
bash$ chmod a+x tst.sh
bash$ ./tst.sh
./tst.sh
bash$ tst.sh
sh: tst.sh: command not found
bash$ PATH=.:$PATH
bash$ tst.sh
./tst.sh
bash$ 

--------------------------------------------
Bernard Dautrevaux
Microprocess Ingenierie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel:	+33 (0) 1 47 68 80 80
Fax:	+33 (0) 1 47 88 97 85
e-mail:	dautrevaux@microprocess.com
		b.dautrevaux@usa.net
-------------------------------------------- 


From akim@epita.fr Fri Oct 27 04:53:47 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13p5Gk-0007xG-00; Fri, 27 Oct 2000 04:53:47 -0400
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id KAA09359
	Fri, 27 Oct 2000 10:54:28 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13p7Kh-0003HC-00; Fri, 27 Oct 2000 11:05:59 +0000
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13p5Hl-0001EV-00; Fri, 27 Oct 2000 10:54:49 +0200
To: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Cc: David Morgan <dmorgan@symark.com>, Pavel Roskin <proski@gnu.org>,
        autoconf@gnu.org, Harlan.Stenn@pfcs.com
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010191856350.19433-100000@woburn.localdomain>
	<39F065A7.CFD5163A@symark.com>
	<mv4em17a0fc.fsf@nostromo.lrde.epita.fr>
	<mv4snplmevc.fsf@nostromo.lrde.epita.fr>
	<mv4bsw9md2s.fsf@nostromo.lrde.epita.fr>
	<ork8av2s8y.fsf@guarana.lsd.ic.unicamp.br>
From: Akim Demaille <akim@epita.fr>
Date: 27 Oct 2000 10:54:49 +0200
In-Reply-To: Alexandre Oliva's message of "26 Oct 2000 19:43:25 -0200"
Message-ID: <mv4hf5yackm.fsf@nostromo.lrde.epita.fr>
Lines: 99
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Great!  Thanks Alexandre!

| Direct use
| {One}
| {line}
| {Two
| lines}

OK.

| Indirect Use with Quotes
| {One line}
| {Two
| lines}

Not OK.

| Indirect Use without Quotes
| {One}
| {line}
| {Two
| lines}

OK.

This is the big problem I probably misunderstood (and diagnosed as
`quotes are included in the value').

The two tests right above are:

foo="One line"
bar="Two
lines"

: ${foo1="$foo"}
: ${bar1="$bar"}

and then a `for word in $foo1 echo "{$word}"'

: ${foo2=$foo}
: ${bar2=$bar}

likewise.

So what I don't understand is that there is no longer IFS splitting
after you did a

        : ${list="$default"}

but there is if you

        : ${list=$default}

This is why I removed the quotes months ago.

So I guess the problem is related to the 8th bit, just like in the
case of config.cache.  I guess it means that

----------------------------------------
default="a b c"
: ${list1=$default}
: ${list2="$default"}

echo "$list1" | cat -v
echo "$list2" | cat -v
----------------------------------------

gives two different results?


The solution you propose is definitely the right one.

How do these guy behave?  The present case is somewhat different from
that of config.cache where the rhs is a literal, not another variable.

----------------------------------------
default="a b c"
: list1=${list1-$default}
: list2=${list2-"$default"}

echo "$list1" | cat -v
echo "$list2" | cat -v
----------------------------------------

or do you mean

----------------------------------------
default="a b c"
: list1=${list1=$default}
: list2=${list2="$default"}

echo "$list1" | cat -v
echo "$list2" | cat -v
----------------------------------------

What is the conclusion to draw in fact.  : ${foo=BAR} is used in a lot
of places in Autoconf, but without any damaged but here and in
config.cache.  What's the problem?  Is it that none of the other
variable is ever IFS split?


From Dautrevaux@microprocess.com Fri Oct 27 05:06:38 2000
Received: from [194.206.157.151] (helo=iis000.microdata.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13p5T9-000822-00
	for <autoconf@gnu.org>; Fri, 27 Oct 2000 05:06:36 -0400
Received: by IIS000 with Internet Mail Service (5.5.2650.21)
	id <VGY0MZ4L>; Fri, 27 Oct 2000 10:56:07 +0200
Message-ID: <17B78BDF120BD411B70100500422FC6309E146@IIS000>
From: Bernard Dautrevaux <Dautrevaux@microprocess.com>
To: 'Ben Woodard' <ben@valinux.com>, Bernard Dautrevaux
	 <Dautrevaux@microprocess.com>
Cc: autoconf@gnu.org
Subject: RE: Why is srcdir passed as . 
Date: Fri, 27 Oct 2000 10:55:33 +0200
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

> -----Original Message-----
> From: Ben Woodard [mailto:ben@valinux.com]
> Sent: Thursday, October 26, 2000 11:46 PM
> To: Bernard Dautrevaux
> Cc: autoconf@gnu.org
> Subject: Re: Why is srcdir passed as . 
> 
> 
> > I think there is two problems here:
> > 
> > Ben seems to use $srcdir where it meant $top_srcdir :-) (If we build
> > in-place, then $srcdir == $builddir in all the tree).
> > 
> > Mo on the contrary is bothered by the fact that $srcdir is 
> relative; just
> > calling "./configure -srcdir=/absolute/path/to/srcdir" 
> shoudl solve the
> > problem.
> > 
> 
> I think you are correct there are two problems.
> 
> Regarding "top_srcdir" when I was trying to figure out what which
> variable to use, "top_srcdir" seemed like the one that I wanted to
> use. However, it always seems to be empty.
> 
> The command that I'm using is:
> 
> ac_configure_args="${ac_configure_args} 
> --enable-local-tdb=${srcdir}/tdb"
> 
> To have the lower level configuration scripts called with an 
> extra parameter.
> 
> However:
> 
> If I use "--enable-local-tdb=${top_srcdir}/tdb" then it evaluates to
> "--enable-local-tdb=/tdb"
> 
> If I don't pass any parameters into the top level configure script and
> use "--enable-local-tdb=${srcdir}/tdb" then it evalutes to
> "--enable-local-tdb=./tdb" which seems to be the same problem with
> srcdir being relative that Mo was having.
> 
> The way that I am using "srcdir" now is:
> 
> srcdir=`cd $srcdir;pwd`
> AC_CHECK_LIB(tdb,tdb_exists,[
>   build_tdb=false
>   AC_CHECK_HEADERS(tdb.h,[],[
>     AC_MSG_ERROR(The tdb libraries were found but the header 
> files were missing. Please either install the headers or 
> uninstall the library and the version of tdb that is bundled 
> with gnulpr will be intsalled.)
> ])],[
>   ac_configure_args="${ac_configure_args} 
> --enable-local-tdb=${srcdir}/tdb"
>   subpackages="tdb ${subpackages}"
>   build_tdb=true
>   TDB_DIR="${srcdir}/tdb"
> ])
> AM_CONDITIONAL(BUILD_TDB, $build_tdb)
> AC_SUBST(TDB_DIR)
> 
> > Regards,
> > 
> > 	Bernard
> > 
> > PS: IIUC, the special case of "." is just to avoid getting, 
> in some second
> > level subdirectory name lib/somelib, srcdir set to
> > "../lib/../../lib/somelib" which is almost equivalent (but 

    "../../lib/somelib"
Ooops... typing a bit too fast and being a bit too complicating ;-?

> a lot longer) to
> > "." ;-) The "almost" above is for the case where "lib" is 
> in fact a link to
> > "../../commonlibs". In this case "." would be correct while
> > "../lib/../../lib/somelib" would yield a "file not found" 
> error somewhere
> > ;-?
> 
> I'm having trouble following your example. Which "lib" is a link to
> "../../commonlibs". The directory tree as you portrayed it is:
> 
> lib/lib/
> lib/somelib/

no:

/the/top/srcdir	contains:
	commonlibs	contains:
		somelib
	package	contains:
		lib -> ../commonlibs

Then package has a sub-directory named lib/somelib, which srcdir is "." as
I'm configuring in the src tree; if there was no "." special case, then
configure will set srcdir (that is lib_srcdir_from_lib_builddir) to "../lib"
in lib; using this it will set srcdir in somelib (that is
lib_somelib_srcdir_from_lib_somelib_builddir) as
"../$lib_srcdir_from_lib_builddir/somelib" that is "../../lib/somelib"; the
problem is that in fact we are in /the/top/srcdir/commonlibs/somelib, not in
/the/top/srcdir/package/lib/somelib, so the ../.. bring us in
/the/top/srcdir, where there is *no* "lib" subdirectory 8-<

If on the contrary builddir != srcdir, then there is no problems as lib will
always be a proper subdirectory of package (it is *created* by configure)
:-) (of course here somelib will be re-compiled for all using packages where
if builddir = srcdir it will not).

Regards,

	Bernard

--------------------------------------------
Bernard Dautrevaux
Microprocess Ingenierie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel:	+33 (0) 1 47 68 80 80
Fax:	+33 (0) 1 47 88 97 85
e-mail:	dautrevaux@microprocess.com
		b.dautrevaux@usa.net
-------------------------------------------- 


From earnie_boyd@yahoo.com Fri Oct 27 12:24:29 2000
Received: from web123.mail.yahoo.com ([205.180.60.191] helo=web123.yahoomail.com)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13pCIu-00020t-00
	for <autoconf@gnu.org>; Fri, 27 Oct 2000 12:24:28 -0400
Received: (qmail 10339 invoked by uid 60001); 27 Oct 2000 16:24:26 -0000
Message-ID: <20001027162426.10338.qmail@web123.yahoomail.com>
Received: from [150.159.224.8] by web123.yahoomail.com; Fri, 27 Oct 2000 09:24:26 PDT
Date: Fri, 27 Oct 2000 09:24:26 -0700 (PDT)
From: Earnie Boyd <earnie_boyd@yahoo.com>
Subject: Re: AC_PROG_CC not working
To: Akim Demaille <akim@epita.fr>, Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Cc: Morten Eriksen <mortene@sim.no>, autoconf@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

--- Akim Demaille <akim@epita.fr> wrote:
> 
> So I am back to something I raised some time ago: why the heck do we
> have to compile to recognize Mingw etc.?  Can't we just uname?  While
> anti-Autoconf (and btw, frankly, compiling __MINGW32__ makes no big
> difference to me), it seems better in that, for instance, it makes it
> possible to enable the support of these kind of machines without
> requiring a C compiler.
> 

Speaking for MinGW authoritatively, there is no reason that uname can't be
used.  I've supplied a uname for MinGW which config.guess uses correctly.  I
also agree that requiring C isn't a good idea for autoconf.

Cheers,

=====
Earnie Boyd
mailto:earnie_boyd@yahoo.com

---         <http://earniesystems.safeshopper.com>         ---
--- Cygwin: POSIX on Windows <http://gw32.freeyellow.com/> ---
---   Minimalist GNU for Windows <http://www.mingw.org/>   ---

__________________________________________________
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf!  It's FREE.
http://im.yahoo.com/


From Dautrevaux@microprocess.com Fri Oct 27 12:36:40 2000
Received: from [194.206.157.151] (helo=iis000.microdata.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13pCUg-00027E-00
	for <autoconf@gnu.org>; Fri, 27 Oct 2000 12:36:40 -0400
Received: by IIS000 with Internet Mail Service (5.5.2650.21)
	id <VGY0MZY5>; Fri, 27 Oct 2000 18:26:11 +0200
Message-ID: <17B78BDF120BD411B70100500422FC6309E148@IIS000>
From: Bernard Dautrevaux <Dautrevaux@microprocess.com>
To: 'Earnie Boyd' <earnie_boyd@yahoo.com>, Akim Demaille <akim@epita.fr>, 
	Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Cc: Morten Eriksen <mortene@sim.no>, autoconf@gnu.org
Subject: RE: AC_PROG_CC not working
Date: Fri, 27 Oct 2000 18:25:48 +0200
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

> -----Original Message-----
> From: Earnie Boyd [mailto:earnie_boyd@yahoo.com]
> Sent: Friday, October 27, 2000 6:24 PM
> To: Akim Demaille; Alexandre Oliva
> Cc: Morten Eriksen; autoconf@gnu.org
> Subject: Re: AC_PROG_CC not working
> 
> 
> --- Akim Demaille <akim@epita.fr> wrote:
> > 
> > So I am back to something I raised some time ago: why the heck do we
> > have to compile to recognize Mingw etc.?  Can't we just 
> uname?  While
> > anti-Autoconf (and btw, frankly, compiling __MINGW32__ makes no big
> > difference to me), it seems better in that, for instance, 
> it makes it
> > possible to enable the support of these kind of machines without
> > requiring a C compiler.
> > 
> 
> Speaking for MinGW authoritatively, there is no reason that 
> uname can't be
> used.  I've supplied a uname for MinGW which config.guess 
> uses correctly.  I
> also agree that requiring C isn't a good idea for autoconf.
> 

Just to verify: You're talking of recognizing MinGW as a BUILD system, not
HOST, aren't you? uname will only give information about the BUILD system,
so if we plan to configure using a cross-compiler, uname will do no good :-)

Regards,

	Bernard

PS: sorry if I get in late, but I think I've overlooked this thread
before...

--------------------------------------------
Bernard Dautrevaux
Microprocess Ingenierie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel:	+33 (0) 1 47 68 80 80
Fax:	+33 (0) 1 47 88 97 85
e-mail:	dautrevaux@microprocess.com
		b.dautrevaux@usa.net
-------------------------------------------- 


From earnie_boyd@yahoo.com Fri Oct 27 13:04:38 2000
Received: from web109.mail.yahoo.com ([205.180.60.76] helo=web109.yahoomail.com)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13pCvm-0002YT-00
	for <autoconf@gnu.org>; Fri, 27 Oct 2000 13:04:38 -0400
Received: (qmail 12251 invoked by uid 60001); 27 Oct 2000 17:04:36 -0000
Message-ID: <20001027170436.12250.qmail@web109.yahoomail.com>
Received: from [150.159.224.8] by web109.yahoomail.com; Fri, 27 Oct 2000 10:04:36 PDT
Date: Fri, 27 Oct 2000 10:04:36 -0700 (PDT)
From: Earnie Boyd <earnie_boyd@yahoo.com>
Subject: RE: AC_PROG_CC not working
To: Bernard Dautrevaux <Dautrevaux@microprocess.com>,
  Akim Demaille <akim@epita.fr>, Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Cc: Morten Eriksen <mortene@sim.no>, autoconf@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

--- Bernard Dautrevaux <Dautrevaux@microprocess.com> wrote:
> 
> Just to verify: You're talking of recognizing MinGW as a BUILD system, not
> HOST, aren't you? uname will only give information about the BUILD system,
> so if we plan to configure using a cross-compiler, uname will do no good :-)
> 

AFAICT, uname is only used to identify the build system.  How can it ever be
used to identify a HOST or TARGET system?

Cheers,

=====
Earnie Boyd
mailto:earnie_boyd@yahoo.com

---         <http://earniesystems.safeshopper.com>         ---
--- Cygwin: POSIX on Windows <http://gw32.freeyellow.com/> ---
---   Minimalist GNU for Windows <http://www.mingw.org/>   ---

__________________________________________________
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf!  It's FREE.
http://im.yahoo.com/


From martinol@datasync.com Fri Oct 27 13:24:36 2000
Received: from shell.datasync.com ([205.216.82.5])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13pDF5-0002x7-00
	for <autoconf@gnu.org>; Fri, 27 Oct 2000 13:24:35 -0400
Received: (from martinol@localhost)
	by shell.datasync.com (8.8.8/Datasync) id MAA31426
	for autoconf@gnu.org; Fri, 27 Oct 2000 12:24:35 -0500
Date: Fri, 27 Oct 2000 12:24:35 -0500
From: Paul Martinolich <martinol@datasync.com>
Message-Id: <200010271724.MAA31426@shell.datasync.com>
To: autoconf@gnu.org
Subject: AC_CHECK_LIB
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

I am searching for dlopen in both the c and dl libraries and want
to create the variable LIBDL as either blank or -ldir.  I do this
rather than add it to LIBS because my SGI linker gives me warnings
that the 'dir' library does not resolve any symbols for those
programs that do not use 'dlopen'.  I use automake to add LIBDL
on only those programs that need this function.

I am currently using:

AC_CHECK_LIB(c, dlopen, LIBDL="", AC_CHECK_LIB(dl, dlopen, LIBDL="-ldl"))

and CVS autoconf from June 6, 2000.  I have just updated my CVS
and am getting this produced in the configure.in.

--------------------------------------------------------------
echo "configure:2974: checking for dlopen in -lc" >&5
echo $ECHO_N "checking for dlopen in -lc... $ECHO_C" >&6
if test "${ac_cv_lib_c_dlopen+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lc  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line 2982 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char dlopen ();
int
main ()
{
dlopen ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo configure:3001: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
  ac_cv_lib_c_dlopen=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_lib_c_dlopen=no
fi
rm -f conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "configure:3011: result: $ac_cv_lib_c_dlopen" >&5
echo "${ECHO_T}$ac_cv_lib_c_dlopen" >&6
if test $ac_cv_lib_c_dlopen = yes; then
  LIBDL=""
else
    LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
-----------------------------------------------------------------------

This last line appears to be a config message but is not being properly
quoted.

How should I fix this?

Paul


From proski@gnu.org Fri Oct 27 14:09:38 2000
Received: from lolita.speakeasy.net ([216.254.0.13])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13pDwg-0003fJ-00
	for <autoconf@gnu.org>; Fri, 27 Oct 2000 14:09:38 -0400
Received: (qmail 19621 invoked from network); 27 Oct 2000 18:07:12 -0000
Received: from unknown (HELO gonzo.speakeasy.net) (192.168.0.5)
  by 192.168.0.13 with SMTP; 27 Oct 2000 18:07:12 -0000
Received: (qmail 23388 invoked from network); 27 Oct 2000 18:09:32 -0000
Received: from unknown (HELO fonzie.nine.com) (12.38.119.2)
  by gonzo.speakeasy.net with SMTP; 27 Oct 2000 18:09:31 -0000
Date: Fri, 27 Oct 2000 14:09:34 -0400 (EDT)
From: Pavel Roskin <proski@gnu.org>
X-Sender: proski@fonzie.nine.com
To: Paul Martinolich <martinol@datasync.com>
cc: autoconf@gnu.org
Subject: Re: AC_CHECK_LIB
In-Reply-To: <200010271724.MAA31426@shell.datasync.com>
Message-ID: <Pine.LNX.4.21.0010271403150.23417-100000@fonzie.nine.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hello, Paul!

> I am currently using:
> 
> AC_CHECK_LIB(c, dlopen, LIBDL="", AC_CHECK_LIB(dl, dlopen, LIBDL="-ldl"))

Whenever you supply macros in arguments quote those arguments:

AC_CHECK_LIB(c, dlopen, LIBDL="", [AC_CHECK_LIB(dl, dlopen, LIBDL="-ldl")])

It appears that autoconf actually needs some kind of security net
here. It's not the first time that such problems are reported.

Regards,
Pavel Roskin



From martinol@datasync.com Fri Oct 27 15:29:16 2000
Received: from shell.datasync.com ([205.216.82.5])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13pFBk-0004pX-00
	for <autoconf@gnu.org>; Fri, 27 Oct 2000 15:29:16 -0400
Received: (from martinol@localhost)
	by shell.datasync.com (8.8.8/Datasync) id OAA02699
	for autoconf@gnu.org; Fri, 27 Oct 2000 14:29:17 -0500
Date: Fri, 27 Oct 2000 14:29:17 -0500
From: Paul Martinolich <martinol@datasync.com>
Message-Id: <200010271929.OAA02699@shell.datasync.com>
To: autoconf@gnu.org
Subject: [F,C]FLAGS in AC_PROG_[F77|CC]
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Is there a way to cleanly prevent these macros from setting
[C,F]FLAGS to "-g -O2" by default?


From oliva@lsd.ic.unicamp.br Fri Oct 27 23:11:58 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13pMPV-00048N-00; Fri, 27 Oct 2000 23:11:57 -0400
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id e9S3AwS28732;
	Sat, 28 Oct 2000 01:10:58 -0200
To: Akim Demaille <akim@epita.fr>
Cc: David Morgan <dmorgan@symark.com>, Pavel Roskin <proski@gnu.org>,
   autoconf@gnu.org, Harlan.Stenn@pfcs.com
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010191856350.19433-100000@woburn.localdomain>
	<39F065A7.CFD5163A@symark.com>
	<mv4em17a0fc.fsf@nostromo.lrde.epita.fr>
	<mv4snplmevc.fsf@nostromo.lrde.epita.fr>
	<mv4bsw9md2s.fsf@nostromo.lrde.epita.fr>
	<ork8av2s8y.fsf@guarana.lsd.ic.unicamp.br>
	<mv4hf5yackm.fsf@nostromo.lrde.epita.fr>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 28 Oct 2000 01:10:58 -0200
In-Reply-To: Akim Demaille's message of "27 Oct 2000 10:54:49 +0200"
Message-ID: <oru29xy81p.fsf@guarana.lsd.ic.unicamp.br>
Lines: 45
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On Oct 27, 2000, Akim Demaille <akim@epita.fr> wrote:

> ----------------------------------------
> default="a b c"
> : ${list1=$default}
> : ${list2="$default"}

> echo "$list1" | cat -v
> echo "$list2" | cat -v
> ----------------------------------------

> gives two different results?

Nope, I get the same output for both lines.  Why would it be
different?

> How do these guy behave?

> ----------------------------------------
> default="a b c"
> : list1=${list1-$default}
> : list2=${list2-"$default"}

> echo "$list1" | cat -v
> echo "$list2" | cat -v
> ----------------------------------------

This won't even set list1 and list2, since `:' == `true' will be run
with `list[12]=...', which is not what you want.  Removing `:', I get
the expected output.

> default="a b c"
> : list1=${list1=$default}
> : list2=${list2="$default"}

> echo "$list1" | cat -v
> echo "$list2" | cat -v

This works on Ultrix both with and without `:'.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From corsepiu@faw.uni-ulm.de Sat Oct 28 12:46:04 2000
Received: from www.faw.uni-ulm.de ([134.60.100.4])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13pZ7M-00021K-00
	for <autoconf@gnu.org>; Sat, 28 Oct 2000 12:46:04 -0400
Received: (qmail 10873 invoked from network); 28 Oct 2000 16:45:59 -0000
Received: from ultra2.faw.uni-ulm.de (HELO mailserv.faw.uni-ulm.de) (134.60.101.174)
  by www-intern.faw.uni-ulm.de with SMTP; 28 Oct 2000 16:45:59 -0000
Received: (qmail 12785 invoked by uid 0); 28 Oct 2000 16:45:58 -0000
Received: from dialin16.faw.uni-ulm.de (HELO faw.uni-ulm.de) (corsepiu@172.18.1.16)
  by mailserv.faw.uni-ulm.de with SMTP; 28 Oct 2000 16:45:58 -0000
Message-ID: <39FB0332.548467DD@faw.uni-ulm.de>
Date: Sat, 28 Oct 2000 18:47:46 +0200
From: Ralf Corsepius <corsepiu@faw.uni-ulm.de>
Reply-To: corsepiu@faw.uni-ulm.de
Organization: Ralf Corsepius
X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.16-SMP i686)
X-Accept-Language: German/Germany, de-DE, en
MIME-Version: 1.0
To: "autoconf@gnu.org" <autoconf@gnu.org>
Subject: AC_CONFIG_AUX_DIR
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hi,

Does anybody remember the reasonale for defining AC_CONFIG_AUX_DIR
the way it currently is?
AC_DEFUN([AC_CONFIG_AUX_DIR],
[AC_CONFIG_AUX_DIRS($1 $srcdir/$1)])

When building inside of a source-tree $1 and $srcdir will point to
the same directory, which means that the checks in
AC_CONFIG_AUX_DIRS will be redundant.

When building a package outside of a sourcetree, the check for $1
will normally fail, and the check for $srcdir/$1 will be successful,
because install.sh normally is inside of the source tree (unless
being dynamically generated).

All this doesn't take effect, if source- and buildtree have the same
directory layout, but does if manually specifying srcdir when
configuring selected subdirectories of a deep package.

Example:
Given a deep source tree:
/a/b/configure.in
/a/b/install.sh
...
/a/b/c/d/configure.in

With /a/b/c/d/configure.in containing this:
AC_CONFIG_AUX_DIR(../..)

Configuring this way:
cd /x/y/z
/a/b/c/d/configure 

This will first (bogusly) check for 
/x/y/z/../../install.sh <-> /x/install.sh
and then (correctly) for
/a/b/c/d/../../install.sh <-> /a/b/install.sh

=> If /x/install.sh exists, ac_aux_dir will get set to
ac_aux_dir=../.., instead of the correct $srcdir/../..

Therefore, I am inclined to think that the current definition of
AC_CONFIG_AUX_DIR should better be changed into
AC_DEFUN([AC_CONFIG_AUX_DIR],
[AC_CONFIG_AUX_DIRS($srcdir/$1)])

BTW: This would be in analogy to
AC_DEFUN([AC_CONFIG_AUX_DIR_DEFAULT],
[AC_CONFIG_AUX_DIRS($srcdir $srcdir/.. $srcdir/../..)])

Ralf

-- 
Ralf Corsepius 
Forschungsinstitut fuer Anwendungsorientierte Wissensverarbeitung
(FAW)
Helmholtzstr. 16, 89081 Ulm, Germany     Tel: +49/731/501-8690
mailto:corsepiu@faw.uni-ulm.de           FAX: +49/731/501-999  
http://www.faw.uni-ulm.de


From mdejong@cygnus.com Sun Oct 29 01:17:22 2000
Received: from runyon.cygnus.com ([205.180.230.5] helo=cygnus.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13pkqP-0003mh-00
	for <autoconf@gnu.org>; Sun, 29 Oct 2000 01:17:22 -0400
Received: from cse.cygnus.com (cse.cygnus.com [205.180.230.236])
	by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id WAA04406
	for <autoconf@gnu.org>; Sat, 28 Oct 2000 22:17:21 -0700 (PDT)
Received: (mdejong@localhost) by cse.cygnus.com (8.8.8+Sun/8.6.4) id WAA24863; Sat, 28 Oct 2000 22:17:20 -0700 (PDT)
Date: Sat, 28 Oct 2000 22:17:20 -0700 (PDT)
From: Mo DeJong <mdejong@cygnus.com>
To: autoconf@gnu.org
Subject: Annoying warning message is now an error!
Message-ID: <Pine.SOL.3.91.1001028213740.23964C@cse.cygnus.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

I just updated and tried to regen from a configure.in
only to find that the annoying warning that I reported
a couple of months ago has now turned into an error.

http://sources.redhat.com/ml/autoconf/2000-05/msg00265.html

Now I get:

% autoconf
configure.in:4: error: undefined macro: JAVAC_FLAGS

The strange thing is that a configure file is
still generated. Problem is, when I run the
configure file that is generated, I get
this error:

checking for gdb... /usr/local/project/install/insight/bin/gdb
/home/mo/project/tcljava_ajuba/clean/tcljava/configure: syntax error near 
unexpected token `"(c' 
/home/mo/project/tcljava_ajuba/clean/tcljava/configure: 
/home/mo/project/tcljava_ajuba/clean/tcljava/configure: line 3207: `  
echo $ECHO_N "(cached) $ECHO_C" >&6'


I think it is puking on something like this:

echo "configure:2155: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else

I think this code was generated as part of the AC_PROG_CC macro.

Should I not try to run the configure after the error:
message is printed?

Any ideas?

P.S.

In case anyone wants to try autoconf out on the actual sources
that are causing this error, the CVS info is:

setenv CVSROOT 
:pserver:anonymous@cvs.tcljava.sourceforge.net:/cvsroot/tcljava

cvs login 
(password is "")

cvs checkout tcljava

Mo DeJong
Red Hat Inc


From proski@gnu.org Sun Oct 29 12:42:11 2000
Received: from user1.channel1.com ([199.1.13.9])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13pwTD-0003As-00
	for <autoconf@gnu.org>; Sun, 29 Oct 2000 12:42:11 -0500
Received: from xdial50.channel1.com (IDENT:proski@xdial50.channel1.com [205.240.180.50])
	by user1.channel1.com (8.9.3/8.9.3) with ESMTP id MAA18849;
	Sun, 29 Oct 2000 12:42:02 -0500 (EST)
X-Envelope-To: 	
Date: Sun, 29 Oct 2000 12:41:30 -0500 (EST)
From: Pavel Roskin <proski@gnu.org>
X-Sender: proski@woburn.localdomain
To: Mo DeJong <mdejong@cygnus.com>
cc: autoconf@gnu.org
Subject: Re: Annoying warning message is now an error!
In-Reply-To: <Pine.SOL.3.91.1001028213740.23964C@cse.cygnus.com>
Message-ID: <Pine.LNX.4.21.0010291216200.6217-100000@woburn.localdomain>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hello, Mo!

> I just updated and tried to regen from a configure.in
> only to find that the annoying warning that I reported
> a couple of months ago has now turned into an error.

I did it. There shouldn't be that warning anyway.

> % autoconf
> configure.in:4: error: undefined macro: JAVAC_FLAGS

AC_FLAGS matches the pattern of macros that cannot go to "configure"
unexpanded. This is wrong. The fix is ready. I'm sending it to
autoconf-patches.

> The strange thing is that a configure file is still generated. Problem

I agree, "configure" should be erased unless some flags are given. But
it's a minor issue.

> is, when I run the configure file that is generated, I get this error:
> 
> checking for gdb... /usr/local/project/install/insight/bin/gdb
> /home/mo/project/tcljava_ajuba/clean/tcljava/configure: syntax error near 
> unexpected token `"(c' 
> /home/mo/project/tcljava_ajuba/clean/tcljava/configure: 
> /home/mo/project/tcljava_ajuba/clean/tcljava/configure: line 3207: `  
> echo $ECHO_N "(cached) $ECHO_C" >&6'

It's a separate issue.

> setenv CVSROOT 
> :pserver:anonymous@cvs.tcljava.sourceforge.net:/cvsroot/tcljava

I'll have a look.

Regards,
Pavel Roskin



From assar@assaris.sics.se Sun Oct 29 20:50:20 2000
Received: from h122n4fls32o892.telia.com ([213.64.47.122] helo=assaris.sics.se)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13q45c-00045d-00
	for <autoconf@gnu.org>; Sun, 29 Oct 2000 20:50:20 -0500
Received: (from assar@localhost)
	by assaris.sics.se (8.9.3/8.9.3) id CAA22509;
	Mon, 30 Oct 2000 02:49:36 +0100 (CET)
	(envelope-from assar)
To: Marco.Franzen@thyron.com
Cc: autoconf@gnu.org, gcc-bugs@gcc.gnu.org
Subject: Re: name of m4 executable
References: <00102017161500.04802@maidavale> <5lzojy7khk.fsf@assaris.sics.se> <00102312101801.04802@maidavale>
From: Assar Westerlund <assar@sics.se>
Date: 30 Oct 2000 02:49:34 +0100
In-Reply-To: Marco Franzen's message of "Mon, 23 Oct 2000 09:49:33 +0100"
Message-ID: <5lk8arxfm9.fsf@assaris.sics.se>
Lines: 35
User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.6
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Marco Franzen <marcof@thyron.com> writes:
> [Crossposting to gcc-bugs. 
> Gcc's top-level Makefile invokes sub-makes with M4=m4. This overrides
> autoconf's otherwise correct idea of what "m4" it should call.]
> The top-level Makefile of gcc apparently tries to override m4 (for
> autoconf or for something else) with any other m4 that might be present in
> the current build tree. But the default case (no m4 in the tree) hard-codes
> overriding with the value `m4' (without the quotes) rather than not
> overriding.
> 
> The Makefile sets (literally copied from its Makefile.in)
> DEFAULT_M4 = m4
> M4 = `if [ -f $$r/m4/m4 ] ; \
>         then echo $$r/m4/m4 ; \
>         else echo ${DEFAULT_M4} ; fi`

Actually not.  The top-level configure in gcc checks for gm4 gnum4 m4
and replaces DEFAULT_M4 with that value.

Also note that the top-level configure is not an autoconf-generated
configure script but rather a cygnus-style configure.

> On gcc's side, it is still wrong to override m4 with a hard-coded value
> (other than maybe the empty string if that worked). At the very least, if it
> must override it at all, then it should search for suitable m4's at
> configuration time the same way autoconf does.

Since it actually does, the question is why it doesn't work for you.

> - Get the timestamps in the tarball right, so that testers don't need
>   autoconf, bison, etc. 

I think this is what contrib/gcc_update is trying to do?

/assar


From assar@assaris.sics.se Sun Oct 29 20:51:53 2000
Received: from h122n4fls32o892.telia.com ([213.64.47.122] helo=assaris.sics.se)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13q477-00046n-00
	for <autoconf@gnu.org>; Sun, 29 Oct 2000 20:51:53 -0500
Received: (from assar@localhost)
	by assaris.sics.se (8.9.3/8.9.3) id CAA22523;
	Mon, 30 Oct 2000 02:51:47 +0100 (CET)
	(envelope-from assar)
To: Martin Wilck <martin@tropos.de>
Cc: autoconf@gnu.org
Subject: Re: exit status of conftest program
References: <Pine.LNX.4.21.0010231224250.11137-100000@whisky.tropos.de>
From: Assar Westerlund <assar@sics.se>
Date: 30 Oct 2000 02:51:47 +0100
In-Reply-To: Martin Wilck's message of "Mon, 23 Oct 2000 12:27:06 +0200 (CEST)"
Message-ID: <5lg0lfxfik.fsf@assaris.sics.se>
Lines: 17
User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.6
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Martin Wilck <martin@tropos.de> writes:
> Is it ok for autoconf tests to create a C test program such as this
> 
> if ( <result of some test in C> == <expected result> ) 
>    exit (0);
> else
>    exit (1);
> 
> and check the exit status with AC_TRY_RUN, or may this fail on some
> systems?

This will obviously fail when cross-compiling, so you should
preferably try to this in some way that doesn't require figuring
things out by run-time.  If you cannot, I don't see anything wrong
with your test.

/assar


From dave@straylight.org Sun Oct 29 21:23:45 2000
Received: from granger.mail.mindspring.net ([207.69.200.148])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13q4bx-0004SK-00
	for <autoconf@gnu.org>; Sun, 29 Oct 2000 21:23:45 -0500
Received: from straylight.org (pool-63.53.147.214.nwrk.grid.net [63.53.147.214])
	by granger.mail.mindspring.net (8.9.3/8.8.5) with ESMTP id VAA15269;
	Sun, 29 Oct 2000 21:23:37 -0500 (EST)
Received: by straylight.org (Postfix, from userid 509)
	id 704DE11195; Sun, 29 Oct 2000 21:00:32 -0500 (EST)
From: David Andrew Michael Noelle <dave@straylight.org>
To: oliva@lsd.ic.unicamp.br
Cc: autoconf@gnu.org
In-reply-to: <orpukqnchx.fsf@guarana.lsd.ic.unicamp.br> (message from
	Alexandre Oliva on 24 Oct 2000 01:28:58 -0200)
Subject: Re: No, I *don't* HAVE_IO_H!
References: <20001023144311.A27124@sim.no> <39F45B3F.67498AF9@straylight.org> <orpukqnchx.fsf@guarana.lsd.ic.unicamp.br>
Message-Id: <20001030020032.704DE11195@straylight.org>
Date: Sun, 29 Oct 2000 21:00:32 -0500 (EST)
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

> Sender: aoliva@guarana.lsd.ic.unicamp.br
> Cc: autoconf@gnu.org
> From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
> Date: 24 Oct 2000 01:28:58 -0200
> 
> On Oct 23, 2000, David Andrew Michael Noelle <dave@straylight.org> wrote:
> 
> > Can anyone tell me what might cause this?
> 
> A config.cache or config.site that incorrectly sets cache variables.

No, I don't think that's it.  First of all, I'm talking about dozens of
different tarball packages, none of which came with any config.cache
that might have had bad settings.  Deleting config.cache and config.log
and running configure again has no effect on the problem.

And I have no "config.site" files anywhere on my system, or in the
tarballs I've been having this problem with.  Should I have such a
file?  How do I find out what exactly to put in that file?  I don't see
how a _missing_ site defaults file could cause configure to find files
that don't exist.


It seems that somehow, some of the "g++ -E conftest.C" tests are
succeeding even if the header file they're looking for doesn't exist.
For example, I'm currently having a lot of trouble trying to compile the
new kdelibs-2.0.  Invoking ./configure from a fresh tarball produces a
config.h file that contains, among a great deal else, the following
lines:

/* Define if you have <vfork.h>.  */
#define HAVE_VFORK_H 1

/* Define if you have the <libutil.h> header file.  */
#define HAVE_LIBUTIL_H 1

/* Define if you have the <sys/mnttab.h> header file.  */
#define HAVE_SYS_MNTTAB_H 1

/* Define if you have the <util.h> header file.  */
#define HAVE_UTIL_H 1


None of those four headers exist on my system, so as soon as make
encountered the files containing the #includes associated with these
definitions, it failed.  I commented out those #defines and the
compilation proceeded normally.  Without a config.cache or config.site
file, how did configure come to the conclusion that those headers do
exist?  I looked for them in config.log and found the following:

configure:8476: checking for vfork.h
configure:8486: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:8511: checking for working vfork
configure:8662: gcc -o conftest -O2   conftest.c  1>&5
configure:8576: vfork.h: No such file or directory
configure: failed program was:
[...]
configure:4570: checking for sys/mnttab.h
configure:4580: gcc -E  conftest.c >/dev/null 2>conftest.out
[...]
configure:10077: checking for libutil.h
configure:10087: g++ -E  conftest.C >/dev/null 2>conftest.out
configure:10077: checking for util.h
configure:10087: g++ -E  conftest.C >/dev/null 2>conftest.out


I find it highly interesting to note that that the first test for the
<vfork.h> header succeeded, but the very next test configure performed,
to determine whether vfork() actually works, failed because <vfork.h>
could not be found.

-- 
            -Dave Noelle,                 dave@Straylight.org
            -the Villa Straylight,  http://www.straylight.org


From proski@gnu.org Sun Oct 29 22:10:46 2000
Received: from user1.channel1.com ([199.1.13.9])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13q5LS-000569-00
	for <autoconf@gnu.org>; Sun, 29 Oct 2000 22:10:46 -0500
Received: from xdial178.channel1.com (IDENT:proski@xdial178.channel1.com [205.240.180.178])
	by user1.channel1.com (8.9.3/8.9.3) with ESMTP id WAA12274;
	Sun, 29 Oct 2000 22:10:32 -0500 (EST)
X-Envelope-To: 	
Date: Sun, 29 Oct 2000 22:10:05 -0500 (EST)
From: Pavel Roskin <proski@gnu.org>
X-Sender: proski@woburn.localdomain
To: Mo DeJong <mdejong@cygnus.com>
cc: autoconf@gnu.org
Subject: Re: Annoying warning message is now an error!
In-Reply-To: <Pine.SOL.3.91.1001028213740.23964C@cse.cygnus.com>
Message-ID: <Pine.LNX.4.21.0010292127220.2123-100000@woburn.localdomain>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hello, Mo!

> checking for gdb... /usr/local/project/install/insight/bin/gdb
> /home/mo/project/tcljava_ajuba/clean/tcljava/configure: syntax error near 
> unexpected token `"(c' 
> /home/mo/project/tcljava_ajuba/clean/tcljava/configure: 
> /home/mo/project/tcljava_ajuba/clean/tcljava/configure: line 3207: `  
> echo $ECHO_N "(cached) $ECHO_C" >&6'

You are not quoting the arguments of AC_CACHE_CHECK in tcljava.m4

It appears that older versions of autoconf would generate (somewhat)
working code when some quotes are missing, but the new Autoconf will
silently generate broken code.

I'm afraid that we will be overwhelmed with such "bugreports" :-(

Autoconf catches overquoting but not underquoting. I believe that at least
some basic cases of underquoting should be detected.

For example, we could requite that AC_DEFINE'd macros are not passed
unquoted to other AC_DEFINE'd macros. For that purpose AC_DEFINE should
define some flag and check that it's not already defined while it's
arguments were expanded.

I'm not a guru in m4, but I believe it's possible. This is a very
simplified example that catches unquoted arguments to my_define:

#! /usr/bin/m4
divert(-1)
changequote([, ])
define([my_define], [ifdef([flag], [errprint([Non-quoted argument
])])
define([$1], [define([flag])$2])
undefine([flag])])
my_define([m1], [v1])
my_define([m2], [m1])
my_define([m3], m1)
divert(0)
m1
m2
m3

We obviously want to catch unquoted arguments to other macros than
AC_DEFUN which may (or may not) be harder.

Regards,
Pavel Roskin



From mdejong@cygnus.com Sun Oct 29 22:26:56 2000
Received: from runyon.cygnus.com ([205.180.230.5] helo=cygnus.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13q5b6-0005Sj-00
	for <autoconf@gnu.org>; Sun, 29 Oct 2000 22:26:56 -0500
Received: from cse.cygnus.com (cse.cygnus.com [205.180.230.236])
	by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id TAA09140
	for <autoconf@gnu.org>; Sun, 29 Oct 2000 19:26:54 -0800 (PST)
Received: (mdejong@localhost) by cse.cygnus.com (8.8.8+Sun/8.6.4) id TAA00322; Sun, 29 Oct 2000 19:26:54 -0800 (PST)
Date: Sun, 29 Oct 2000 19:26:54 -0800 (PST)
From: Mo DeJong <mdejong@cygnus.com>
To: autoconf@gnu.org
Subject: Re: Annoying warning message is now an error!
In-Reply-To: <Pine.LNX.4.21.0010292127220.2123-100000@woburn.localdomain>
Message-ID: <Pine.SOL.3.91.1001029192305.29669D-100000@cse.cygnus.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On Sun, 29 Oct 2000, Pavel Roskin wrote:

> Hello, Mo!
> 
> > checking for gdb... /usr/local/project/install/insight/bin/gdb
> > /home/mo/project/tcljava_ajuba/clean/tcljava/configure: syntax error near 
> > unexpected token `"(c' 
> > /home/mo/project/tcljava_ajuba/clean/tcljava/configure: 
> > /home/mo/project/tcljava_ajuba/clean/tcljava/configure: line 3207: `  
> > echo $ECHO_N "(cached) $ECHO_C" >&6'
> 
> You are not quoting the arguments of AC_CACHE_CHECK in tcljava.m4

Doh! I fixed that and it is working now. Thanks.

> It appears that older versions of autoconf would generate (somewhat)
> working code when some quotes are missing, but the new Autoconf will
> silently generate broken code.
> 
> I'm afraid that we will be overwhelmed with such "bugreports" :-(

Yup, it is very hard to figure out what is going wrong when
something like this happens. You may get swamped with "bug reports"
like mine. Better to hack some code in to check for these
common errors, if possible.

Mo DeJong
Red Hat Inc


From bfriesen@simple.dallas.tx.us Mon Oct 30 00:02:35 2000
Received: from ns.simplesystems.org ([204.252.75.242])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13q75e-0006pA-00
	for <autoconf@gnu.org>; Mon, 30 Oct 2000 00:02:34 -0500
Received: from scooby.simplesystems.org (scooby.simplesystems.org [204.252.75.244])
	by ns.simplesystems.org (8.9.3/8.9.3) with ESMTP id XAA13239
	for <autoconf@gnu.org>; Sun, 29 Oct 2000 23:02:27 -0600 (CST)
Date: Sun, 29 Oct 2000 23:02:28 -0600 (CST)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-Sender: bfriesen@scooby.simplesystems.org
To: autoconf@gnu.org
Subject: Solaris -R check fails
Message-ID: <Pine.SO4.4.05.10010292257470.20076-100000@scooby.simplesystems.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

I reported this bug several months ago, but it is not yet fixed in
CVS.  The problem is that the test which checks if "-R/something" or
"-R /something" is preferred fails.  The end result is that programs
which depend on libraries which exist in /usr/openwin/lib are not
linked into /usr/lib fail to run.  In some cases this causes the
configure script to fail completely.

The exact error message looks like:

checking for X... libraries /usr/openwin/lib, headers  /usr/openwin/include
checking whether -R must be followed by a space... cat: cannot open conftest.c
cat: cannot open conftest.c
neither works

Will someone who understands how this stuff works please fix this bug?

Thanks,

Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us
http://www.simplesystems.org/users/bfriesen



From marcof@thyron.com Mon Oct 30 06:24:06 2000
Received: from finch-post-11.mail.demon.net ([194.217.242.39])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13qD2r-0000t6-00
	for <autoconf@gnu.org>; Mon, 30 Oct 2000 06:24:06 -0500
Received: from thyronuk.demon.co.uk ([158.152.94.41] helo=rs6000)
	by finch-post-11.mail.demon.net with esmtp (Exim 2.12 #1)
	id 13qD2p-0009Ek-0B; Mon, 30 Oct 2000 11:24:04 +0000
Received: from 16.1.1.166 by rs6000 ([16.1.1.1] running VPOP3) with ESMTP; Mon, 30 Oct 2000 11:21:51 -0000
Received: from localhost (localhost [[UNIX: localhost]])by maidavale.thyron-local (8.9.3/8.9.3) id LAA20611;Mon, 30 Oct 2000 11:13:23 GMT
From: Marco Franzen <marcof@thyron.com>
Reply-To: Marco.Franzen@Thyron.com
Organization: Thyron Limited, UK
To: Assar Westerlund <assar@sics.se>,
    Marco.Franzen@thyron.com
Subject: Re: name of m4 executable
Date: Mon, 30 Oct 2000 11:23:46 +0100
X-Mailer: KMail [version 1.0.29.2]
Content-Type: text/plain
Cc: autoconf@gnu.org,
    gcc-bugs@gcc.gnu.org
References: <00102017161500.04802@maidavale> <00102312101801.04802@maidavale> <5lk8arxfm9.fsf@assaris.sics.se>
In-Reply-To: <5lk8arxfm9.fsf@assaris.sics.se>
MIME-Version: 1.0
Message-Id: <0010301113180E.00520@maidavale>
Content-Transfer-Encoding: 8bit
X-Server: VPOP3 V1.3.0b - Registered to: Thyron Limited
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On Mon, 30 Oct 2000, Assar Westerlund wrote:
> > the current build tree. But the default case (no m4 in the tree) hard-codes
> > overriding with the value `m4' (without the quotes) rather than not
> > overriding.
> > 
> > The Makefile sets (literally copied from its Makefile.in)
> > DEFAULT_M4 = m4

> Actually not.  The top-level configure in gcc checks for gm4 gnum4 m4
> and replaces DEFAULT_M4 with that value.
> 
> Also note that the top-level configure is not an autoconf-generated
> configure script but rather a cygnus-style configure.

Ok, then it is fine. Sorry about the confusion. I was trapped by the fact that both
Makefile and Makefile.in litterally contained:
DEFAULT_M4 = m4

> > On gcc's side, it is still wrong to override m4 with a hard-coded value
> > (other than maybe the empty string if that worked). At the very least, if it
> > must override it at all, then it should search for suitable m4's at
> > configuration time the same way autoconf does.
> 
> Since it actually does, the question is why it doesn't work for you.

Because I installed autoconf and m4 for it only when building GCC failed without it.
Since autoconf was called even though it did not exist when GCC was configured,
I did not think it was necessary to configure GCC again after installing autoconf.

That was certainly an unusual and probably wrong use by me.
It may still be construed a bug that GCC thinks 
it knows better what is good for autoconf when it doesn't 
(in borderline cases like this one)
and also that it tries to call a non-existing autoconf.
But I agree there are more important things that need working on
than making the build foolproof.

> > - Get the timestamps in the tarball right, so that testers don't need
> >   autoconf, bison, etc. 
> 
> I think this is what contrib/gcc_update is trying to do?

Yes, for cvs users.  As a tarball user, I tried shell script "missing" instead, 
found it did not work for the way bison was invoked by the Makefiles 
and decided it would be safer to install the whole lot. 
(I did not know that bison is different nowadays, as Alexandre Oliva told me in
<http://gcc.gnu.org/ml/gcc-bugs/2000-10/msg00523.html>.)

Yes, I should have reconfigured GCC after that. Really sorry for wasting your time.
Keep up the good work!

> /assar

Marco

-----------------------------------------------------------------
This email is confidential and intended solely for the use of the
individual to whom it is addressed.
Any views or opinions presented are solely those of the author
and do not necessarily represent those of Thyron Limited.
If you are not the intended recipient then please be advised
that you have received this email in error and that any use,
dissemination, forwarding, printing or copying of this email 
is strictly prohibited.
If you have received this email in error, please notify the 
Thyron IT Administrator on +44 (0)1923 236 050 or 
send an email to mail-admin@thyron.com.
Thank You


From bkorb@sco.com Mon Oct 30 11:27:51 2000
Received: from sco.sco.com ([132.147.128.9])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13qHmp-0006PV-00
	for <autoconf@gnu.org>; Mon, 30 Oct 2000 11:27:51 -0500
Received: from tahoe.sco.COM(132.147.152.5), claiming to be "tahoe.pdev.sco.com"
 via SMTP by sco.sco.COM, id smtpdAAAa003F7; Mon Oct 30 08:22:49 2000
Received: from ellen.pdev.sco.com by tahoe.sco.com id aa17908;
          30 Oct 2000 8:11 PST
Message-ID: <39FD9F60.A21804E8@sco.com>
Date: Mon, 30 Oct 2000 08:18:40 -0800
From: Bruce Korb <bkorb@sco.COM>
Organization: The Santa Cruz Operation
X-Mailer: Mozilla 4.7 [en] (X11; U; SCO_SV 3.2 i386)
X-Accept-Language: en
MIME-Version: 1.0
To: Alexandre Oliva <aoliva@redhat.com>, autoconf@gnu.org
Subject: [Fwd: More APR fun (was Re: undefined reference to 
 `pthread_mutexattr_init' in apr?)]
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hi Alexandre (or someone on autoconf),

Just wondering if this might ring any bells for anyone.
If someone already knows of the causes and workarounds,
advice is easier than trial-and-error research....

Thanks!!

	Bruce

From: Matthew Braithwaite <matt@braithwaite.net>
Reply-To: matt@braithwaite.net
To: fitz@red-bean.com
CC: dev@subversion.tigris.org
References: <20001027052613.1B1C4950F@pantheon.red-bean.com>


I've noticed something interesting w.r.t. these [config] errors while refining
my autobuild script:  I get the sort of errors Fitz describes when I
follow his steps, *but*, if I run `configure' twice in a row, I don't!
So this may explain this problem's odd persistence -- unless you start
absolutely clean, you might think you've gotten rid of the root cause
of the problem, when in fact you haven't.  

Here is a diff of the output from subsequent runs of `configure',
after elimination of the string `(cached) ' from both.  In the second
run, note that the compiler is `cc -pthread'.  This would have the
same effect as what Branko suggested, no?

I bet there is somebody listening who could debug this about five
times faster than me. :-) My system is FreeBSD 4.1.something -- Fitz,
you maybe want to check if you see the same thing under Linux?

*** configure-output    Mon Oct 30 00:04:02 2000
--- configure-again-output      Mon Oct 30 00:03:51 2000
***************
*** 1,4 ****
! creating cache ./config.cache
  creating config.nice
  checking for a BSD compatible install... /usr/bin/install -c
  checking whether build environment is sane... yes
--- 1,4 ----
! loading cache ./config.cache
  creating config.nice
  checking for a BSD compatible install... /usr/bin/install -c
  checking whether build environment is sane... yes
***************
*** 150,155 ****
--- 150,156 ----
  creating Makefile
  creating mm-config
  creating mm_conf.h
+ mm_conf.h is unchanged
  
  Now please type `make' to compile. Good luck.
  
***************
*** 271,278 ****
  checking for dlopen... yes
  
  Checking for Threads...
! checking for threads... checking for pthread.h... yes
! pthread
  checking for pthreads_cflags... -pthread
  checking for pthreads_lib... 
  checking for pthread.h... yes
--- 272,278 ----
  checking for dlopen... yes
  
  Checking for Threads...
! checking for threads... pthread
  checking for pthreads_cflags... -pthread
  checking for pthreads_lib... 
  checking for pthread.h... yes
***************
*** 325,330 ****
--- 325,332 ----
  creating include/apr.h
  creating APRVARS
  creating include/apr_private.h
+ include/apr.h is unchanged
+ include/apr_private.h is unchanged
  apr configured properly
  loading cache ./config.cache
  updating cache ./config.cache
***************
*** 386,396 ****
  checking for library containing gethostbyname... none required
  checking for library containing socket... none required
  checking for OpenSSL... not found
- updating cache .././config.cache
  creating ./config.status
  creating Makefile
  creating neon-config
  creating config.h
  
  Using configuration for building neon 0.7.5:
  
--- 388,398 ----
  checking for library containing gethostbyname... none required
  checking for library containing socket... none required
  checking for OpenSSL... not found
  creating ./config.status
  creating Makefile
  creating neon-config
  creating config.h
+ config.h is unchanged
  
  Using configuration for building neon 0.7.5:
  
***************
*** 408,415 ****
  neon configured properly
  loading cache ./config.cache
  checking for gcc... gcc
! checking whether the C compiler (gcc    ) works... yes
! checking whether the C compiler (gcc    ) is a cross-compiler... no
  checking whether we are using GNU C... yes
  checking whether gcc accepts -g... yes
  checking whether ln -s works... yes
--- 410,417 ----
  neon configured properly
  loading cache ./config.cache
  checking for gcc... gcc
! checking whether the C compiler (gcc    -pthread ) works... yes
! checking whether the C compiler (gcc    -pthread ) is a cross-compiler... no
  checking whether we are using GNU C... yes
  checking whether gcc accepts -g... yes
  checking whether ln -s works... yes
***************
*** 482,484 ****
--- 484,487 ----
  creating subversion/mod_dav_svn/Makefile
  creating subversion/mod_dav_svn/tests/Makefile
  creating config.h
+ config.h is unchanged


From proski@gnu.org Mon Oct 30 12:49:58 2000
Received: from lolita.speakeasy.net ([216.254.0.13])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13qJ4F-0008DV-00
	for <autoconf@gnu.org>; Mon, 30 Oct 2000 12:49:56 -0500
Received: (qmail 20013 invoked from network); 30 Oct 2000 17:47:22 -0000
Received: from unknown (HELO gonzo.speakeasy.net) (192.168.0.5)
  by 192.168.0.13 with SMTP; 30 Oct 2000 17:47:22 -0000
Received: (qmail 31872 invoked from network); 30 Oct 2000 17:49:34 -0000
Received: from unknown (HELO ?10.50.8.196?) (12.38.119.2)
  by gonzo.speakeasy.net with SMTP; 30 Oct 2000 17:49:34 -0000
Date: Mon, 30 Oct 2000 12:49:36 -0500 (EST)
From: Pavel Roskin <proski@gnu.org>
X-Sender: proski@fonzie.nine.com
To: David Andrew Michael Noelle <dave@straylight.org>
cc: autoconf@gnu.org
Subject: Re: No, I *don't* HAVE_IO_H!
In-Reply-To: <20001030020032.704DE11195@straylight.org>
Message-ID: <Pine.LNX.4.21.0010301237240.11285-100000@fonzie.nine.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Hello, David!

> I find it highly interesting to note that that the first test for the
> <vfork.h> header succeeded, but the very next test configure performed,
> to determine whether vfork() actually works, failed because <vfork.h>
> could not be found.

Thank you for investigating this problem.

The old versions of Autoconf including the latest released version,
Autoconf-2.13, determine whether headers exist by checking whether the
proprocessor prints anything to stderr.

The current CVS version of Autoconf uses a more complicated way to check
for the headers. If the preprocessor can indicate missing includes with
the exit status, the warnings are not honored.

I'm almost sure that the CVS version of Autoconf will work properly for
you. I'm afraid that Autoconf maintainers are not really interested in
disscussing the obsolete code.

However, something must be broken on your system. My guess is that the
warnings from your compiler are either lost or go to stdout instead of
stderr.

Try this and make sure that your results are the same:
$ cat >foo.c <<EOF
> #include <foo.h>
> EOF
$ gcc -E foo.c >/dev/null
foo.c:1: foo.h: No such file or directory
$ echo $?
1

Maybe your Autoconf picks some other compiler. I have no idea.

Feel free to send me config.log

Regards,
Pavel Roskin



From akim@epita.fr Mon Oct 30 14:24:46 2000
Received: from [194.98.116.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13qKY1-0001Rs-00
	for <autoconf@gnu.org>; Mon, 30 Oct 2000 14:24:46 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id UAA02083
	Mon, 30 Oct 2000 20:23:09 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13qKX3-00059p-00; Mon, 30 Oct 2000 20:23:45 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13qKWk-00074N-00; Mon, 30 Oct 2000 20:23:26 +0100
To: Bruce Korb <bkorb@sco.com>
Cc: Alexandre Oliva <aoliva@redhat.com>, autoconf@gnu.org
Subject: Re: [Fwd: More APR fun (was Re: undefined reference to  `pthread_mutexattr_init' in apr?)]
References: <39FD9F60.A21804E8@sco.com>
From: Akim Demaille <akim@epita.fr>
Date: 30 Oct 2000 20:23:26 +0100
In-Reply-To: Bruce Korb's message of "Mon, 30 Oct 2000 08:18:40 -0800"
Message-ID: <mv43dhe16c1.fsf@nostromo.lrde.epita.fr>
Lines: 20
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "Bruce" == Bruce Korb <bkorb@sco.COM> writes:

Bruce> Hi Alexandre (or someone on autoconf),

Bruce> Just wondering if this might ring any bells for anyone.  If
Bruce> someone already knows of the causes and workarounds, advice is
Bruce> easier than trial-and-error research....

I'm not sure I really understand the question here.  The first run
creates the cache which accumulates information during the run of the
full configure (in particular quite lately configure discovered it
wanted something like -pthread in CFLAGS).

Then the second run already knows this stuff, so indeed the second run
is different: it has the knowledge of the first run.

Finally, the ugly message about pthread is the typical example of
nested AC_CACHE_CHECK.  Just don't :)

Or did I miss the question?


From akim@epita.fr Mon Oct 30 14:32:01 2000
Received: from [194.98.116.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13qKey-0001bW-00
	for <autoconf@gnu.org>; Mon, 30 Oct 2000 14:31:57 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id UAA02414
	Mon, 30 Oct 2000 20:30:48 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13qKeR-0005CY-00; Mon, 30 Oct 2000 20:31:23 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13qKe9-00074g-00; Mon, 30 Oct 2000 20:31:05 +0100
To: Mo DeJong <mdejong@cygnus.com>
Cc: autoconf@gnu.org
Subject: Re: Annoying warning message is now an error!
References: <Pine.SOL.3.91.1001029192305.29669D-100000@cse.cygnus.com>
From: Akim Demaille <akim@epita.fr>
Date: 30 Oct 2000 20:31:04 +0100
In-Reply-To: Mo DeJong's message of "Sun, 29 Oct 2000 19:26:54 -0800 (PST)"
Message-ID: <mv4y9z6yvlz.fsf@nostromo.lrde.epita.fr>
Lines: 13
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "Mo" == Mo DeJong <mdejong@cygnus.com> writes:

>> I'm afraid that we will be overwhelmed with such "bugreports" :-(

Mo> Yup, it is very hard to figure out what is going wrong when
Mo> something like this happens. You may get swamped with "bug
Mo> reports" like mine. Better to hack some code in to check for these
Mo> common errors, if possible.

Well, I prefer being involved personally in responding to these bug
reports than playing too much with these.  It is wrong to consider
macros should always be quoted.  There are cases where you don't want
to.  Don't forbid something valid.


From akim@epita.fr Mon Oct 30 14:47:25 2000
Received: from [194.98.116.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13qKtv-00020r-00; Mon, 30 Oct 2000 14:47:25 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id UAA03079
	Mon, 30 Oct 2000 20:44:52 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13qKs4-0005I0-00; Mon, 30 Oct 2000 20:45:28 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13qKrj-00075H-00; Mon, 30 Oct 2000 20:45:07 +0100
To: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Cc: David Morgan <dmorgan@symark.com>, Pavel Roskin <proski@gnu.org>,
        autoconf@gnu.org, Harlan.Stenn@pfcs.com
Subject: Re: Success (mostly) with the testsuite
References: <Pine.LNX.4.21.0010191856350.19433-100000@woburn.localdomain>
	<39F065A7.CFD5163A@symark.com>
	<mv4em17a0fc.fsf@nostromo.lrde.epita.fr>
	<mv4snplmevc.fsf@nostromo.lrde.epita.fr>
	<mv4bsw9md2s.fsf@nostromo.lrde.epita.fr>
	<ork8av2s8y.fsf@guarana.lsd.ic.unicamp.br>
	<mv4hf5yackm.fsf@nostromo.lrde.epita.fr>
	<oru29xy81p.fsf@guarana.lsd.ic.unicamp.br>
From: Akim Demaille <akim@epita.fr>
Date: 30 Oct 2000 20:45:07 +0100
In-Reply-To: Alexandre Oliva's message of "28 Oct 2000 01:10:58 -0200"
Message-ID: <mv4pukiyuyk.fsf@nostromo.lrde.epita.fr>
Lines: 50
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

| On Oct 27, 2000, Akim Demaille <akim@epita.fr> wrote:
| > ----------------------------------------
| > default="a b c"
| > : ${list1=$default}
| > : ${list2="$default"}
| 
| > echo "$list1" | cat -v
| > echo "$list2" | cat -v
| > ----------------------------------------
| 
| > gives two different results?
| 
| Nope, I get the same output for both lines.  Why would it be
| different?

:(

I was expecting to see some M- appear.  In fact my idea was that if
there is no IFS splitting happening, it's because indeed there are no
IFS characters in there: the spaces have actually their 8bit set.

But maybe the quotes used in the echo reestablish the 8th bit?  Maybe

default="a b c"
: ${list1=$default}
: ${list2="$default"}

echo $list1 | cat -v
echo $list2 | cat -v

demonstrates it?  Or maybe it is `cat -v' that doesn't and od should
be used.

| > How do these guy behave?
| 
| > ----------------------------------------
| > default="a b c"
| > : list1=${list1-$default}
| > : list2=${list2-"$default"}
| 
| > echo "$list1" | cat -v
| > echo "$list2" | cat -v
| > ----------------------------------------
| 
| This won't even set list1 and list2, since `:' == `true' will be run
| with `list[12]=...', which is not what you want.  Removing `:', I get
| the expected output.

Yes, sorry, that was a typo.


From akim@epita.fr Mon Oct 30 14:54:37 2000
Received: from [194.98.116.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13qL0v-00025Y-00
	for <autoconf@gnu.org>; Mon, 30 Oct 2000 14:54:37 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id UAA03572
	Mon, 30 Oct 2000 20:53:30 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 13qL0Q-0005Lw-00; Mon, 30 Oct 2000 20:54:06 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 13qL04-0007GX-00; Mon, 30 Oct 2000 20:53:44 +0100
To: Paul Martinolich <martinol@datasync.com>
Cc: autoconf@gnu.org
Subject: Re: [F,C]FLAGS in AC_PROG_[F77|CC]
References: <200010271929.OAA02699@shell.datasync.com>
From: Akim Demaille <akim@epita.fr>
Date: 30 Oct 2000 20:53:43 +0100
In-Reply-To: Paul Martinolich's message of "Fri, 27 Oct 2000 14:29:17 -0500"
Message-ID: <mv4lmv6yuk8.fsf@nostromo.lrde.epita.fr>
Lines: 6
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

>>>>> "Paul" == Paul Martinolich <martinol@datasync.com> writes:

Paul> Is there a way to cleanly prevent these macros from setting
Paul> [C,F]FLAGS to "-g -O2" by default?

Nope.  Nuke them afterwards.


From dave@straylight.org Mon Oct 30 14:56:00 2000
Received: from blount.mail.mindspring.net ([207.69.200.226])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13qL2G-00026F-00
	for <autoconf@gnu.org>; Mon, 30 Oct 2000 14:56:00 -0500
Received: from straylight.org (pool-63.53.147.144.nwrk.grid.net [63.53.147.144])
	by blount.mail.mindspring.net (8.9.3/8.8.5) with ESMTP id OAA14017
	for <autoconf@gnu.org>; Mon, 30 Oct 2000 14:55:53 -0500 (EST)
Received: by straylight.org (Postfix, from userid 509)
	id D3A4911193; Mon, 30 Oct 2000 14:55:52 -0500 (EST)
From: David Andrew Michael Noelle <dave@straylight.org>
To: autoconf@gnu.org
In-reply-to: <Pine.LNX.4.21.0010301237240.11285-100000@fonzie.nine.com>
	(message from Pavel Roskin on Mon, 30 Oct 2000 12:49:36 -0500 (EST))
Subject: Re: No, I *don't* HAVE_IO_H!
References:  <Pine.LNX.4.21.0010301237240.11285-100000@fonzie.nine.com>
Message-Id: <20001030195552.D3A4911193@straylight.org>
Date: Mon, 30 Oct 2000 14:55:52 -0500 (EST)
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

> Date: Mon, 30 Oct 2000 12:49:36 -0500 (EST)
> From: Pavel Roskin <proski@gnu.org>
> Cc: autoconf@gnu.org
> 
> Try this and make sure that your results are the same:
> $ cat >foo.c <<EOF
> > #include <foo.h>
> > EOF
> $ gcc -E foo.c >/dev/null
> foo.c:1: foo.h: No such file or directory
> $ echo $?
> 1

Yes, that's exactly the result I got, in both tcsh and bash, from both
gcc and g++.


> Maybe your Autoconf picks some other compiler. I have no idea.

It uses either g++ or gcc, so I tried both.


> Feel free to send me config.log

It's 40K, so I'll append it in .bz2.uue format.  Since this is "obsolete
code" I'm having trouble with, is there any reason to investigate this
further, or should I just build autoconf from CVS and see if that fixes
the problem?

-- 
            -Dave Noelle,                 dave@Straylight.org
            -the Villa Straylight,  http://www.straylight.org

Quote of the Day:
The real conspiracy is the belief in conspiracy theories.  If people 
suspect that the government is conspiring against them, they must also at 
least suspect that the government is not wholly incompetent.
- D.A.M.N.


From bkorb@sco.com Mon Oct 30 15:03:39 2000
Received: from sco.sco.com ([132.147.128.9])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13qL9f-0002Dg-00
	for <autoconf@gnu.org>; Mon, 30 Oct 2000 15:03:39 -0500
Received: from tahoe.sco.COM(132.147.152.5), claiming to be "tahoe.pdev.sco.com"
 via SMTP by sco.sco.COM, id smtpdAAAa004AX; Mon Oct 30 11:52:25 2000
Received: from ellen.pdev.sco.com by tahoe.sco.com id aa24922;
          30 Oct 2000 11:43 PST
Message-ID: <39FDD109.3B8CF3B4@sco.com>
Date: Mon, 30 Oct 2000 11:50:33 -0800
From: Bruce Korb <bkorb@sco.COM>
Organization: The Santa Cruz Operation
X-Mailer: Mozilla 4.7 [en] (X11; U; SCO_SV 3.2 i386)
X-Accept-Language: en
MIME-Version: 1.0
To: Akim Demaille <akim@epita.fr>
CC: Alexandre Oliva <aoliva@redhat.com>, autoconf@gnu.org
Subject: Re: [Fwd: More APR fun (was Re: undefined reference to  
 `pthread_mutexattr_init' in apr?)]
References: <39FD9F60.A21804E8@sco.com> <mv43dhe16c1.fsf@nostromo.lrde.epita.fr>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Akim Demaille wrote:
> 
> >>>>> "Bruce" == Bruce Korb <bkorb@sco.COM> writes:
> 
> Bruce> Hi Alexandre (or someone on autoconf),
> 
> Bruce> Just wondering if this might ring any bells for anyone.  If
> Bruce> someone already knows of the causes and workarounds, advice is
> Bruce> easier than trial-and-error research....
> 
> I'm not sure I really understand the question here.  The first run
> creates the cache which accumulates information during the run of the
> full configure (in particular quite lately configure discovered it
> wanted something like -pthread in CFLAGS).
> 
> Then the second run already knows this stuff, so indeed the second run
> is different: it has the knowledge of the first run.

Why wasn't `-pthread' in CFLAGS after the first run?
What is the right way to accomplish that?

> Finally, the ugly message about pthread is the typical example of
> nested AC_CACHE_CHECK.  Just don't :)

I wouldn't, if I knew how it happened:

> $ egrep AC_CACHE_CHECK configure.in
> $

[[i.e. there was nothing found that matches AC_CACHE_CHECK]]

> Or did I miss the question?

Maybe I didn't ask it very well.  The issue is that the subversion
project needs to build for and link to the pthreads library.  Apparently,
judging by the mail, it will do this if you run configure twice.
I personally did not do that.  Instead, I hand hacked all the relevant
Makefiles.  Either way is wrong.  :-)  It would be good to know how
to fix the Makefile.am or configure.in script so that the right thing
happens from the start (i.e., the ``-pthread'' option is handed to the
compile and the link command uses ``-lpthread''.)  Way over my head.  :-)

So the point:


From oliva@lsd.ic.unicamp.br Mon Oct 30 23:30:19 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13qT3y-00035H-00
	for <autoconf@gnu.org>; Mon, 30 Oct 2000 23:30:19 -0500
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id e9V4UEp03826;
	Tue, 31 Oct 2000 02:30:14 -0200
To: Bruce Korb <bkorb@sco.COM>
Cc: Akim Demaille <akim@epita.fr>, autoconf@gnu.org
Subject: Re: [Fwd: More APR fun (was Re: undefined reference to   `pthread_mutexattr_init' in apr?)]
References: <39FD9F60.A21804E8@sco.com>
	<mv43dhe16c1.fsf@nostromo.lrde.epita.fr> <39FDD109.3B8CF3B4@sco.com>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 31 Oct 2000 02:30:13 -0200
In-Reply-To: Bruce Korb's message of "Mon, 30 Oct 2000 11:50:33 -0800"
Message-ID: <orlmv5ljje.fsf@guarana.lsd.ic.unicamp.br>
Lines: 21
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On Oct 30, 2000, Bruce Korb <bkorb@sco.COM> wrote:

> Why wasn't `-pthread' in CFLAGS after the first run?

It probably was, it just didn't show up in the output of AC_PROG_CC
because it was appended to CC later than that.

Look for the place in which you're checking for pthreads.h (search in
configure.in, acinclude.m4 and aclocal.m4) and add an `echo $CC'
around that, to tell whether -pthread has been added to CC.

> So the point:
[end of message]

I see.  Problem solved :-) :-)

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From martinol@datasync.com Tue Oct 31 15:30:50 2000
Received: from shell.datasync.com ([205.216.82.5])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13qi3W-0007Wm-00; Tue, 31 Oct 2000 15:30:50 -0500
Received: (from martinol@localhost)
	by shell.datasync.com (8.8.8/Datasync) id OAA20555; Tue, 31 Oct 2000 14:30:49 -0600
Date: Tue, 31 Oct 2000 14:30:49 -0600
From: Paul Martinolich <martinol@datasync.com>
Message-Id: <200010312030.OAA20555@shell.datasync.com>
To: autoconf@gnu.org, automake@gnu.org
Subject: making pre-build headers
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

I am using automake/autoconf and am in a situation in which I need
to use a program to generate a header file using a template file
before I can compile the program.  Has anyone encountered a similiar
situation?  What is the best way to accomplish this?  Suggestions.

Thanks, Paul


From bkorb@sco.com Tue Oct 31 16:01:18 2000
Received: from sco.sco.com ([132.147.128.9])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13qiWz-0007q7-00; Tue, 31 Oct 2000 16:01:17 -0500
Received: from tahoe.sco.COM(132.147.152.5), claiming to be "tahoe.pdev.sco.com"
 via SMTP by sco.sco.COM, id smtpdAAAa006k3; Tue Oct 31 12:58:49 2000
Received: from ellen.pdev.sco.com by tahoe.sco.com id aa12850;
          31 Oct 2000 12:48 PST
Message-ID: <39FF31C6.46ADB689@sco.com>
Date: Tue, 31 Oct 2000 12:55:34 -0800
From: Bruce Korb <bkorb@sco.COM>
Organization: The Santa Cruz Operation
X-Mailer: Mozilla 4.7 [en] (X11; U; SCO_SV 3.2 i386)
X-Accept-Language: en
MIME-Version: 1.0
To: Paul Martinolich <martinol@datasync.com>
CC: autoconf@gnu.org, automake@gnu.org
Subject: Re: making pre-build headers
References: <200010312030.OAA20555@shell.datasync.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

Paul Martinolich wrote:
> 
> I am using automake/autoconf and am in a situation in which I need
> to use a program to generate a header file using a template file
> before I can compile the program.  Has anyone encountered a similiar
> situation?  What is the best way to accomplish this?  Suggestions.
> 
> Thanks, Paul

Two ways, depending on how clean the separation is between
the header you create and the sources you are compiling.
If the header is *NOT* derived from the sources you compile,
then add this to Makefile.am:

   mumble.h : <whatever>
	<whatever-you-gotta-do> -o $@

Otherwise, do this:

   $(OBJLIST) : mumble-stamp
   mumble-stamp :
	<whatever-you-gotta-do> -o mumble.h
	touch mumble-stamp

I also generally add this:

   GENSRC = mumble.h
   gen : $(GENSRC)
   mumble.h : <whatever>
	<whatever-you-gotta-do> -o $@

so I can decide to type, "make gen" and be sure my
generated files are up-to-date.  It is ugly.  Especially
when the automated dependencies come along and decide
that your objects depend on mumble.h and mumble.h depends
on your sources and you modified your sources, so it
must be time to regenerate the mumble.h and recompile everything.
Maybe we need a ``.dependignore'' a la ``.cvsignore'' :-)


From jwe@bevo.che.wisc.edu Tue Oct 31 16:18:14 2000
Received: from champaign-55.net66.com ([63.250.66.107] helo=foobar.bogus.domain)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13qinM-0008FQ-00; Tue, 31 Oct 2000 16:18:12 -0500
Received: (from jwe@localhost)
	by foobar.bogus.domain (8.11.1/8.11.1/Debian 8.11.0-6) id e9VLHmK09084;
	Tue, 31 Oct 2000 15:17:48 -0600
From: "John W. Eaton" <jwe@bevo.che.wisc.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <14847.14076.634725.63532@foobar.bogus.domain>
Date: Tue, 31 Oct 2000 15:17:48 -0600
To: Bruce Korb <bkorb@sco.COM>
Cc: Paul Martinolich <martinol@datasync.com>, autoconf@gnu.org,
   automake@gnu.org
Subject: Re: making pre-build headers
In-Reply-To: <39FF31C6.46ADB689@sco.com>
References: <200010312030.OAA20555@shell.datasync.com>
	<39FF31C6.46ADB689@sco.com>
X-Mailer: VM 6.76 under Emacs 20.7.2
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

On 31-Oct-2000, Bruce Korb <bkorb@sco.COM> wrote:

| It is ugly.  Especially
| when the automated dependencies come along and decide
| that your objects depend on mumble.h and mumble.h depends
| on your sources and you modified your sources, so it
| must be time to regenerate the mumble.h and recompile everything.

Isn't that what the move-if-change script is for?  It won't prevent
mumble.h from being created, but it should allow you to avoid
recompiling everything if mumble.h hasn't actually changed.  I find
that this generally works well unless the process to create mumble.h
takes a lot of time.

jwe


From bkorb@sco.com Tue Oct 31 16:33:48 2000
Received: from sco.sco.com ([132.147.128.9])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13qj2R-0008Sm-00; Tue, 31 Oct 2000 16:33:48 -0500
Received: from tahoe.sco.COM(132.147.152.5), claiming to be "tahoe.pdev.sco.com"
 via SMTP by sco.sco.COM, id smtpdBAAa001Td; Tue Oct 31 13:31:20 2000
Received: from ellen.pdev.sco.com by tahoe.sco.com id aa14566;
          31 Oct 2000 13:22 PST
Message-ID: <39FF39D0.D7E90200@sco.com>
Date: Tue, 31 Oct 2000 13:29:52 -0800
From: Bruce Korb <bkorb@sco.COM>
Organization: The Santa Cruz Operation
X-Mailer: Mozilla 4.7 [en] (X11; U; SCO_SV 3.2 i386)
X-Accept-Language: en
MIME-Version: 1.0
To: "John W. Eaton" <jwe@bevo.che.wisc.edu>
CC: Paul Martinolich <martinol@datasync.com>, autoconf@gnu.org, 
    automake@gnu.org
Subject: Re: making pre-build headers
References: <200010312030.OAA20555@shell.datasync.com>
		<39FF31C6.46ADB689@sco.com> <14847.14076.634725.63532@foobar.bogus.domain>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>, <mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/autoconf/

"John W. Eaton" wrote:
> 
> On 31-Oct-2000, Bruce Korb <bkorb@sco.COM> wrote:
> 
> | It is ugly.  Especially...
> 
> Isn't that what the move-if-change script is for?

Its a nice try at the problem, but it doesn't work, for
the reason you noted.

The move-if-change saves the timestamp update so the compile
won't happen again, but it also leaves the header out-of-date
with respect to the sources it depends on.  Hence, the
mumble-stamp mumbo-jumbo.  The solution requires either
using check sum stamps for dependency analysis, or the
``dont-worry-about-this-dependency'' hint.  I really do not
want make rebuilding my generated sources, even if it 
does throw it away.


