* Noah Misch wrote on Wed, Sep 07, 2005 at 11:41:42PM CEST:
On Fri, Sep 02, 2005 at 08:17:51AM +0200, Vincent Lefevre wrote:
Would grepping ^ #error directive: break anything elsewhere?
That is probably safe, but it adds a fork to every AC_COMPILE_IFELSE. Cygwin
would suffer
On Fri, Sep 02, 2005 at 08:17:51AM +0200, Vincent Lefevre wrote:
On 2005-09-01 12:58:40 -0700, Noah Misch wrote:
It would be nice to handle this automatically, but I doubt we could
do so without breaking something elsewhere. Ralf has more experience
with matters like this one, and he
On 2005-09-01 12:58:40 -0700, Noah Misch wrote:
In Autoconf itself, we often eschew #error in favor of `choke me'
inside the #ifdef, which yields a syntactically invalid compilation
unit. Autoconf users can do the same in their own tests like this
one, and that should avoid the problem with
Hi Ben, Vincent,
* Ben Pfaff wrote on Wed, Aug 31, 2005 at 04:57:36PM CEST:
AC_COMPILE_IFELSE generates a test that only checks the exit status
of the compiler command. But this is not sufficient:
*snip*
demon ~ % cc -DFOO tst.c echo OK
cc-1035 cc: WARNING File = tst.c, Line = 2
#error
On Wed, Aug 31, 2005 at 07:57:36AM -0700, Ben Pfaff wrote:
demon ~ % uname -a
IRIX64 demon 6.5 01062343 IP35
demon ~ % cat tst.c
#ifdef FOO
# error FOO is defined
#endif
int main(void)
{
return 0;
}
demon ~ % cc -DFOO tst.c echo OK
cc-1035 cc: WARNING File = tst.c, Line = 2
Ben Pfaff [EMAIL PROTECTED] writes:
AC_COMPILE_IFELSE generates a test that only checks the exit status
of the compiler command. But this is not sufficient:
My own feeling is that if the compiler exits with a nonzero status
and produces working object code, then it succeeded, regardless of
I'm forwarding the following bug reported against the Debian
packaging of upstream autoconf 2.59. (Preserving the CC against
[EMAIL PROTECTED] in replies would be appreciated.)
Start of forwarded message
Subject: Bug#325866: autoconf: AC_COMPILE_IFELSE
Ben Pfaff [EMAIL PROTECTED] writes:
I'm forwarding the following bug reported against the Debian
packaging of upstream autoconf 2.59. (Preserving the CC against
[EMAIL PROTECTED] in replies would be appreciated.)
Oh, crap: that should be [EMAIL PROTECTED]
--
In the PARTIES partition there