Fix libGL.a check on configure

Ove Kaaven ovek at arcticnet.no
Wed Jun 29 22:56:28 CDT 2005


ons, 29,.06.2005 kl. 20.11 -0400, skrev Anderson Lizardo:
> Changelog: Check for common broken nVidia+Mesa OpenGL library setups.
> http://cvs.winehq.org/cvsweb/wine/Attic/configure.in.diff?r1=1.247&r2=1.248&f=h
> 
> The current "test" check definitely does not ensure the system doesn't
> have this "broken" setup. As you said, it should be better to let
> autoconf do the check properly with AC_CHECK_LIB.

Certainly does. The broken setup is as follows:

/usr/lib/libGL.so <- belongs to nvidia
/usr/lib/libGL.a <- no such thing
/usr/X11R6/lib/libGL.so <- deleted by nvidia installer
/usr/X11R6/lib/libGL.a <- still exists, belongs to Mesa

Linking will succeed whatever you do, but if you don't check for this
setup, Wine will be statically linked to Mesa here, and users will
complain about no hardware acceleration. The AC_MSG_ERROR just puts this
in terms that users understand, even though it's not an accurate
message, and probably why you didn't see the point of the check.




More information about the wine-devel mailing list