The problem is, configure is not picking up the location of -lGL. If you look in your config.log and search for GL, then you should see what kind of error is there. The X stuff is looked up first then the GL stuff and then Motif. I'm betting that the standard X lookups from AutoConf don't store the LDFLAGS for further processed commands as we do with Motif. If that's the case, we can just move the Motif checks before the OpenGL checks.

The reason it works when you set the LDFLAGS is that then configure can find the link library libGL.a or libGL.so.

David

David Thompson wrote:


 This error with OpenGL not X. It appears that you do not have OpenGL
 installed. When you run configure what is the status of the OpenGL
 tests. Where is your OpenGL libs located?

Eh, but why do I not have these problems when I set
"setenv LDFLAGS -L/usr/X11R6/lib" before running the configure
and make?
I believe that the "/usr/X11R6/lib" is simply forgotten somewhere
in the configure/make process. But where exactly?

Here is what you ask for:

$ ./configure --prefix=/opt \
        --x-includes=/usr/local/include:/usr/X11R6/include \
        --x-libraries=/usr/local/lib:/usr/X11R6/lib > configure.output
$ grep -i gl configure.output
checking for glXGetConfig in -lhclglx... no
checking for gluBuild2DMipmaps in -lhclglu... no
checking for glAccum in -lglwstati... no
checking for glXGetConfig in -lGL... no
checking for gluBuild2DMipmaps in -lGLU... no
checking for GL/gl.h... yes
checking for GL/glx.h... yes
checking for gl.h... no
checking for gl/device.h... no
checking for gl/gl.h... no
checking for xgl/xgl.h... no
config.status: creating src/exec/hwrender/gl/Makefile
config.status: creating src/exec/hwrender/opengl/Makefile
config.status: creating src/exec/hwrender/xgl/Makefile


The last three Makefile's are such that only opengl has work
to do; nothing to be done in xgl/ and gl/. Should make sense, no?

Moreover:

$ cd src/exec/hwrender/opengl
$ make

has no errors at all!! Does that give a hint?


On my FreeBSD system, I have:
/usr/X11R6/include/GL/GLwDrawA.h
/usr/X11R6/include/GL/GLwDrawAP.h
/usr/X11R6/include/GL/GLwMDrawA.h
/usr/X11R6/include/GL/GLwMDrawAP.h
/usr/X11R6/include/GL/gl.h
/usr/X11R6/include/GL/gle.h
/usr/X11R6/include/GL/glext.h
/usr/X11R6/include/GL/glu.h
/usr/X11R6/include/GL/glut.h
/usr/X11R6/include/GL/glx.h
/usr/X11R6/include/GL/glxext.h
/usr/X11R6/include/GL/glxint.h
/usr/X11R6/include/GL/glxmd.h
/usr/X11R6/include/GL/glxproto.h
/usr/X11R6/include/GL/glxtokens.h
/usr/X11R6/include/GL/osmesa.h

/usr/X11R6/lib/libgle.a
/usr/X11R6/lib/libgle.so -> libgle.so.3
/usr/X11R6/lib/libgle.so.3
/usr/X11R6/lib/libglut.so -> libglut.so.3
/usr/X11R6/lib/libglut.so.3
/usr/X11R6/lib/libGL.a
/usr/X11R6/lib/libGL.so -> libGL.so.1
/usr/X11R6/lib/libGL.so.1
/usr/X11R6/lib/libGLU.a
/usr/X11R6/lib/libGLU.so -> libGLU.so.1
/usr/X11R6/lib/libGLU.so.1
/usr/X11R6/lib/libGLw.a
/usr/X11R6/lib/libMesaGL.so -> libGL.so
/usr/X11R6/lib/libMesaGLU.so -> libGLU.so


Regards,
Rob.


--
.............................................................................
David L. Thompson                   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]    5515 Skyway Drive, Missoula, MT 59804
                                    Phone : (406)756-7472

Reply via email to