Hi Braden,
"Braden N. McDaniel" wrote:
>
> Suppose I've got a library and I want to install an autoconf macro on
> the user's system so that if the user is developing a library
> dependent on mine, s/he can use this macro to check for the presence
> of my library. My library depends on OpenGL, so the macro I've
> installed needs to check for OpenGL.
>
> [snip]
>
> Is there some way of addressing this problem other than having the
> macro installed with autoconf? I really don't agree that an OpenGL
> detection macro is too specialized to warrant such inclusion.
You should be using Libtool to create your libraries, so that you can
make use of Libtool's implicit handling of inter-library dependencies.
Briefly, if you create your library using Libtool, and your library
depends an OpenGL library, then the user automatically gets the OpenGL
library "for free" when they link against your library. Therefore, your
user has no need of an OpenGL Autoconf macro. I will refer you to the
Libtool documentation for more information (you can start at
http://www.gnu.org/software/libtool/libtool.html).
Regards, Matt
--
Matthew D. Langston
SLD, Stanford Linear Accelerator Center
[EMAIL PROTECTED]