[cairo] [PATCH glitz] without this patch glitz won't work with closed source nvidia drivers

David Reveman davidr at novell.com
Tue Mar 8 05:27:47 PST 2005


On Mon, 2005-03-07 at 23:37 +0100, Kristof Vansant wrote: 
> Index: configure.in
> ===================================================================
> RCS file: /cvs/cairo/glitz/configure.in,v
> retrieving revision 1.17
> diff -u -r1.17 configure.in
> --- configure.in        1 Mar 2005 15:49:37 -0000       1.17
> +++ configure.in        7 Mar 2005 22:34:49 -0000
> @@ -111,7 +111,7 @@
>    AC_PATH_XTRA
> 
>    if test "x$have_x" = "xyes"; then
> -    GLX_LIBS="$X_LIBS -lX11 -lGL"
> +   GLX_LIBS="$X_LIBS -lX11 -lGL -lXxf86vm"
>      GLX_CFLAGS="$X_CFLAGS"
> 
>      save_LIBS="$LIBS"
> 
> look at this bugreport by me for more info:
> (I first thought that nvidia was causing the problem)
> https://bugzilla.ubuntu.com/show_bug.cgi?id=7123
> 

The last post on that bug report is incorrect. glitz-glx does not
require libXxf86vm.

I've had no problems with this, so I don't feel comfortable just adding
-lXxf86vm to GLX_LIBS. 

However, as far as I know, there's no standard way to figure out LIBS
and CFLAGS for GLX applications so the configure script probably needs
some magic to get GLX_LIBS and GLX_CFLAGS correct on all systems. If
someone with experience of this would provide me with some autoconf
magic that that will do this, I'd be more than happy.

For the libXxf86vm problem, it's probably enough to check if we can link
an application without -lXxf86vm and only add it to GLX_LIBS if that's
not true.

-David




More information about the cairo mailing list