[Mesa-dev] [PATCH:mesa-demos] Allow builders to specify GLEW_CFLAGS & GLEW_LIBS

tom fogal tfogal at sci.utah.edu
Thu Dec 30 10:17:58 PST 2010


Alan Coopersmith <alan.coopersmith at oracle.com> writes:
> On 12/30/10 09:27 AM, tom fogal wrote:
> > Alan Coopersmith <alan.coopersmith at oracle.com> writes:
> >> -GLEW_CFLAGS=""
> >> -GLEW_LIBS="-lGLEW"
> >>  dnl Include a fallback path for GLEW for the moment while not all distros
> >>  dnl have picked up the .pc file.
> >>  PKG_CHECK_MODULES(GLEW, [glew], [], [
> >>  		  AC_CHECK_HEADER([GL/glew.h],
> >> -		  [],
> >> -		  AC_MSG_ERROR([GLEW required]))
> >> +				  [GLEW_CFLAGS=""],
> >> +				  AC_MSG_ERROR([GLEW required]))
> > 
> > Isn't this going to mean that GLEW's w/o the .pc file cannot be used?
> 
> No, [. . .]
> That's why I moved them down to be set in the case that they weren't
> already set (in which case PKG_CHECK_MODULES uses them),

Yes, sorry, I read this too quickly, mea culpa.

Anyway, LGTM, now.

-tom


More information about the mesa-dev mailing list