When I run configure, it says no to having GL/gl.h and GL/glu.h, I do have them in X11 and in the systemframe works.
How would I point configure to:
/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/gl.h and /System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/glu.h
AC_CHECK_HEADER([GL/glu.h]) don't seem to be able to find them on their own.
They should really be in a GL subdir.
You can do one of the following and or a combo:
make a GL inside of your normal include path And create links to
the GL headers inside of it.
setenv CFLAGS "-I/usr/local/include/GL" (or where ever you made the dir)
and or Edit the includes so it just includes gl.h instead of GL/gl.h etc...
I tried using just gl.h and glu.h but it still didn't find them so I added to, configure.ac:
with the results:
checking for gl.h... no
checking for glu.h... no
checking for /System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/gl.h... yes
checking for /System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/glu.h... yes
Yes it is wacky, but it's how Apple has done it. Kind of like the different Linux distros changing things around a little to suit themselves.
Thats one of the things that make, making a crossplatform easy compiling distro so challanging.