autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Serious problem with Autoconf on RedHat 7


From: Akim Demaille
Subject: Re: [PATCH] Serious problem with Autoconf on RedHat 7
Date: 03 Oct 2000 14:00:33 +0200
User-agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)

| On Tue, Oct 03, 2000 at 01:04:12PM +0200, Morten Eriksen wrote:
| : Akim Demaille <address@hidden> 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]