Changing the way drivers find DRI headers

Tilman Sauerbeck tilman at code-monkey.de
Fri Jun 16 01:35:53 PDT 2006


Tilman Sauerbeck [2006-04-25 17:29]:
> Ian Romanick [2006-04-24 15:45]:
> > I'm down to what should be the last roadblock.  Right now the way
> > drivers check for DRI header files is completely broken for
> > cross-builds.  Right now each driver has a series of
> > 'AC_CHECK_FILE([${sdkdir}/dir.h], [...], [...])' statements.
> > AC_CHECK_FILE always fails on cross-builds because it is trying to check
> > for files on the host system instead of the build system.  Since
> > configure is running on the build system it is impossible to check
> > anything on the host system.
> 
> Why are these checks even needed?
> 
> I think it should be enough to call
> PKG_CHECK_MODULES(DRI, xf86driproto libdrm, have_dri=yes, have_dri=no)

Won't work of course if the server was configured with --disable-dri :)

Maybe it's best to add another variable to xorg-server.pc:
have_dri=yes/no

Regards,
Tilman

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20060616/60b78d0f/attachment.pgp>


More information about the xorg mailing list