autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding a header


From: Bruce Korb
Subject: Re: Finding a header
Date: Thu, 15 Dec 2005 15:25:58 -0800
User-agent: Mozilla Thunderbird 1.0.7 (X11/20050923)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]