[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: _AC_PROG_CXX_EXIT_DECLARATION: don't `#include <stdlib.h>'
From: |
Jim Meyering |
Subject: |
Re: _AC_PROG_CXX_EXIT_DECLARATION: don't `#include <stdlib.h>' |
Date: |
Fri, 23 May 2003 11:39:37 +0200 |
Paul Eggert <address@hidden> wrote:
> Jim Meyering <address@hidden> writes:
>
>> Your question suggests that this macro deserves more comments :-)
>
> OK, and thanks for cleaning up my misconceptions. How about this
> patch instead?
>
> 2003-05-22 Jim Meyering <address@hidden>
> and Paul Eggert <address@hidden>
>
> * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
> Remove `#include <stdlib.h>' from the list; we should never
> make confdefs.h include <stdlib.h> or <cstdlib>, because the
> resulting namespace pollution would cause other tests to fail.
> Configure scripts run with some older versions of g++ and HP's
> aCC would fail due to such an #include. Problems reported by
> Matthew Mueller in <http://bugs.debian.org/120704> and by
> Keith Bostic in
> <http://mail.gnu.org/archive/html/autoconf/2003-05/msg00063.html>.
> In the test, use the test declaration before including <stdlib.h>,
> as that's closer to how it'll be used.
Thanks.
I've just checked in that change.