[Xcb] xcb does not compile on solaris 8

Jamey Sharp jamey at minilop.net
Mon Nov 5 13:09:06 PST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11/5/07, Barton C Massey <bart at cs.pdx.edu> wrote:
> On 10/4/07, Vincent Torri <vtorri at univ-evry.fr> wrote:
> > if I'm not mistaken, using autoconf has been discussed previously,
> > and the conclusion is that it is not a good idea : xcb.h is included
> > by anyone who is using xcb. The problem is that that person has
> > maybe not the macro we will use from autoconf already defined
> > properly. That's why system macros have beens used.
>
> I don't understand this paragraph at all.

The copy of xcb.h that's installed needs to correctly #include the right
header even when used from a source tree that doesn't have libxcb's
configure script in it. So the standard autoconfism of
AC_DEFINE(HAVE_STDINT_H) won't work, because config.h isn't installed.
(Yes, we could install it, but it has a lot of crap in it, so let's not
go there.)

If that's no clearer, try looking at commit b7c96681, where anholt
changed the config.h-based broken conditional to our current
__solaris__-based broken conditional. :-)

> How about just
>
>   @INTTYPEDEFS@
>
> which will let autoconf insert #includes or not, or even insert
> typedefs if it can't find the include anywhere?

In my opinion, that's way overkill and clearly what we should do. :-)
Unless there's some more canonical way of dealing with this.

Jamey
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHL4Zvp1aplQ4I9mURAtzwAJ9pnqmC08nHYOJbbcK+5CDaUo7b8gCbBbIl
FQMeX4kAeJrqq2Dd8C1Fe+4=
=mHAZ
-----END PGP SIGNATURE-----


More information about the Xcb mailing list