bug-autoconf
[Top][All Lists]
Advanced

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

AC_SYS_LARGEFILE bug in autoconf cvs 20001215


From: Frank Zago
Subject: AC_SYS_LARGEFILE bug in autoconf cvs 20001215
Date: Tue, 19 Dec 2000 16:23:25 -0600 (CST)

The test behind AC_SYS_LARGEFILE does not work on hpux11, aix 4 and 5.

The following program compiles

#include <sys/types.h>
int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
int
main ()
{
}

but generate almost the same warnings on both OS:
line 2: warning 602: Integer constant exceeds its storage.
line 2: warning 602: Integer constant exceeds its storage.


Wouldn't it be better to use the following check:

#include <sys/types.h>
int a[sizeof(off_t) == 8 ? 1 : -1];
int
main ()
{
}


Besides that, when the options are correctly detected they are written in
defconfs.h, but are not appended into CFLAGS. Is it the correct
behaviour?

Frank.







reply via email to

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