bug-autoconf
[Top][All Lists]
Advanced

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

Re: sys/bitypes.h and AC_CHECK_TYPE


From: Stepan Kasal
Subject: Re: sys/bitypes.h and AC_CHECK_TYPE
Date: Wed, 10 Nov 2004 18:16:26 +0100
User-agent: Mutt/1.4.1i

Hello,

On Wed, Nov 10, 2004 at 01:28:29PM +0100, Piotr KUCHARSKI wrote:
> I still think that autoconf (at least when doing AC_CHECK_TYPE) should use 
> #if HAVE_SYS_BITYPES_H
> #include <sys/bitypes.h>
> #endif
> because some types can be defined there.

I'm not an expert on systemology, so I cannot judge this.  Hopefully other
people will answer you (Paul?).

(On my system, GNU/Linux with GNU libc, sys/bitypes.h is only includes
sys/types. so the change wouldn't make difference.)

> On Wed, Nov 10, 2004 at 12:07:32PM +0100, Stepan Kasal wrote:
> > On Tue, Nov 09, 2004 at 07:57:32PM +0100, Piotr KUCHARSKI wrote:
> > a quick look into the autoconf manual reveals that AC_CHECK_TYPE can
> > take up to four parameters, and you can use the fourth one to add
> > some includes.

> ...if it were "add", it would be perfect. It is, however, "replace", ie.

I think you can get the "add" this way:

AC_CHECK_TYPE(u_int8_t, , , [AC_INCLUDES_DEFAULT
#if HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
])

Just a quick hint, I haven't time to test this, sorry.
Please tell us whether this worked.

Good luck,
        Stepan Kasal




reply via email to

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