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.

Hi Daryl,

There are two conventions generally available:

  ${package}-config cflags ; ${package}-config link|ldflags

sometimes, those arguments have a hyphen or two in front of them.
See if OpenGL has one of these.   More recently, "pkg-config"
has started becoming popular, but for now it must be a backup
solution:
http://www.freedesktop.org/software/pkgconfig/

In the end, though, you will have to create a list of places to look.

CHeers - Bruce


_______________________________________________
Autoconf mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/autoconf

Reply via email to