On Thu, 2005-12-15 at 16:14 -0700, Daryl Lee wrote: > I am autoconfiscating a project involving other developers. I need a > portable way of finding a header (it's an OpenGL header, glut.h, but > that's just a specific example). On my machine, it's > in /usr/include/GL, but on other machines it may be elsewhere, > like /usr/include. The only thing I know to do is just list them in > AM_CPPFLAGS, and find them by trial and error. That seems a tad kludgy > to me. I expect I'll have a similar issue with libraries once I get > over this hurdle. As far as OpenGL is concerned, I wrote some macros you can find at <http://ac-archive.sourceforge.net> that may help you: AX_CHECK_GL, AX_CHECK_GLU, and AX_CHECK_GLUT. IME, OpenGL headers are in $includedir/GL everywhere except Mac OS X, which puts them in $includedir/OpenGL. But the situation is more complicated than that, since a Mac OS X user might also have Mesa (or similar) installed, in which case there will be OpenGL headers in $includedir/GL, too. I came to the conclusion that the only recourse was to insist that the user tell the package if the Apple OpenGL framework should be used via a configure option. -- Braden McDaniel e-mail: <braden@xxxxxxxxxxxxx> <http://endoframe.com> Jabber: <braden@xxxxxxxxxx> _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf