[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: HPUX 11.00 with aCC vs. autoconf 2.57 [#8108]
From: |
Steve Huston |
Subject: |
Re: HPUX 11.00 with aCC vs. autoconf 2.57 [#8108] |
Date: |
Mon, 19 May 2003 19:44:32 -0400 |
>>> The problem is autoconf is inserting the lines:
>>>
>>> #ifdef __cplusplus
>>> #include <stdlib.h>
>>> #endif
>>>
>>> in its test program for the AC_REPLACE_FUNCS macro, and,
>>> with aCC on that results in the following error:
>>
>> that's a workaround for a defect in glibc (has been in
>> autoconf for a couple of years). Ostensibly to provide
>> a prototype for exit(), it actually is used to allow
>> glibc to tack a "throws" onto the exit() prototype.
>
> Thank you.
>
> Would it be reasonable to if/else it for gcc only?
The same problem occurs on AIX with gcc (and with IBM's compiler), so I
don't think a gcc if/else would do it.
-Steve
--
Steve Huston, Riverace Corporation
Co-author of "C++ Network Programming"
Books, ACE kit and support info at http://www.riverace.com/