| 2000-10-02 Morten Eriksen <[EMAIL PROTECTED]>
|
| * 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:
Akim Demaille <[EMAIL PROTECTED]> 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
> | +++ acl
On Tue, Oct 03, 2000 at 01:04:12PM +0200, Morten Eriksen wrote:
: Akim Demaille <[EMAIL PROTECTED]> writes:
: > | define([AC_LANG_SOURCE(C++)],
: > | [#line __oline__ "configure"
: > | #include "confdefs.h"
: > | -#ifdef __cplusplus
: > | -extern "C" void exit (int);
: > | -#endif
: > | $1])
:
| On Tue, Oct 03, 2000 at 01:04:12PM +0200, Morten Eriksen wrote:
| : Akim Demaille <[EMAIL PROTECTED]> writes:
| : > | define([AC_LANG_SOURCE(C++)],
| : > | [#line __oline__ "configure"
| : > | #include "confdefs.h"
| : > | -#ifdef __cplusplus
| : > | -extern "C" void exit (int);
| : > | -#en
| Akim Demaille <[EMAIL PROTECTED]> 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
On Oct 2, 2000, Morten Eriksen <[EMAIL PROTECTED]> 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
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 th
> -Original Message-
> From: Alexandre Oliva [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 03, 2000 2:34 PM
> To: Morten Eriksen
> Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: [PATCH] Serious problem with Autoconf on RedHat 7
>
>
> On Oct 2, 2000, Morten Eriksen <[EMAIL
> "Alexandre" == Alexandre Oliva <[EMAIL PROTECTED]> writes:
Alexandre> On Oct 2, 2000, Morten Eriksen <[EMAIL PROTECTED]> 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
On Oct 3, 2000, Bernard Dautrevaux <[EMAIL PROTECTED]> 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
> and if you're right I
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
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 [EMAIL PROTECTED] http://yi.org/peter-e/
12 matches
Mail list logo