Cross-compiler question

I am trying to cross-compile the test/testgl program.
I run the configure script as indicated:

./configure --host=i386-linux --target=i386-mingw32

I’ve tried fooling with my CPATH and LD_LIBRARY_PATH,
to no avail. I have the opengl headers for cross-compiling
installed.

Unfortunately, the configure script keeps determining
that I have no OpenGL support. I know that I can just
modify the Makefile by hand, but I would like to find
out the ‘correct’ way to do it.

Can anyone point me in the right direction?

JW–
// John Watson
// Software Engineer – STScI Archive Team