Darwin's different GL naming scheme - configure?

Christopher Waters <[email protected]>
Newsgroups gmane.comp.graphics.chromium.devel
Message-ID <[email protected]>
Due to the way Apple has OpenGL organized, all of the GL header files 
are in different locations than on other platforms (GL/ -> OpenGL/ and 
GLUT/)

Up until now, I've been using symbolic links to point the compiler to 
the right gl header files, but I'm trying to get around that.  As of 
right now, my best thought is to go through and encase all of the 
includes with something like this:
     #ifdef DARWIN
     #include <OpenGL/gl.h>
     #include <GLUT/glut.h>
     #else
     #include <GL/gl.h>
     #include <GL/glut.h>
     #endif

What would be the best (portable) method of doing this without having 
to add these to every single file that needs it? (cr/progs/ especially)
I'm thinking a configure script would help for this, as well as other 
things, but I haven't seen any mention of one for chromium..

  -Chris



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.