Subject: Re: building mesa-apps w/ XFree 4
To: None <tech-pkg@netbsd.org>
From: Bernd Ernesti <netbsd@arresum.inka.de>
List: tech-pkg
Date: 07/06/2001 07:50:31
On Thu, Jul 05, 2001 at 06:56:30PM -0500, Frederick Bruckman wrote:
> On Thu, 5 Jul 2001, Bernd Ernesti wrote:
> 
> > On Thu, Jul 05, 2001 at 10:45:29AM -0500, Frederick Bruckman wrote:
> > > I think the problem may be line's in bsd.prefs.mk such as:
> > >
> > > .if exists(${X11BASE}/include/GL/glu.h)
> > > __BUILTIN_GLU!=         ${EGREP} -c BuildGLULibrary  ${X11BASE}/lib/X11/config/X11.tmpl || ${TRUE}
> > > .else
> > > __BUILTIN_GLU=          0
> > > .endif
> > >
> > > which will trigger even if X11.tmpl has "#define BuildGLULibrary NO".
> >
> > This should never happen, such a define has to go into host.def.
> 
> At least two people who are running XFree 4 don't have
> /usr/X11R6/include/GL/glu.h. I'm just trying to figure out why.

To make it short:

GLU support was added after 4.0.3 and is now in 4.1.0.

> > X11.tmpl should never be changed and I don't think the xfree people
> > will do such a change.
> 
> Well, it did change between 3.3.6 and 4.0.3. I just realized I have
> the XFree 4 includes (in /usr/xsrc/xfree), even though I don't have
> XFree 4 installed. I see the problem now...

Correct, the GLx support appeared in xfree 4.x

[..]
> > > 2) "locate glu.h"?
> >
> > [..]
> > /usr/X11R6/include/GL/glu.h
> 
> Scratch my first idea, that it was mis-located. I wonder if you have
> that because it was turned on in XFree 4.0.[12], or if you had a
> non-empty host.def, or if it's supplied by a package? (Please try
> "pkg_info -F /usr/X11R6/include/GL/glu.h.) In either case, I think we
> should ensure that it gets built and installed for XFree 4/NetBSD. I'm
> not sure what we should do, in pkgsrc, about supporting systems that
> don't have it.

It is not installed by pkgsrc, see my first answer from above.

Bernd