The macro MDL_HAVE_OPENGL is what you want. It is in the Autoconf Macro
Archive at http://peti.cys.de/autoconf-archive/ in the file
mdl_have_opengl.m4. It should do everything you want. If it doesn't,
please let me know (or better yet, send me a patch) as I am the original
author if it.
FYI, I always write a "tracking package" for the Autoconf macros that I
write which demonstrates how to use the macro in a real world package. The
tracking package for MDL_HAVE_OPENGL is at
ftp://ftp.slac.stanford.edu/users/langston/autoconf/ in the file
ac_opengl-0.0.3.tar.gz.
We were originally going to include this macro in the Autoconf package last
summer, but later decided that the Autoconf Macro Archive would be a better
place for it, as it is so specialized. The Autoconf Macro Archive is a gold
mine of Autoconf macros for package authors, so you should definitely check
it out. Peter Simons has done an excellent job on setting this up for the
community, and maintaining it.
Regards, Matt
----- Original Message -----
From: "Braden N. McDaniel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 10, 2000 10:14 PM
Subject: Standard macro for OpenGL check?
> Might there be any interest in having a standard macro to check for OpenGL
> packaged with autoconf? There's already such a thing for X; so I wonder,
> how about OpenGL?
>
> In the absence of any such standard macro, I find that when I use more
> than one library that depends on OpenGL, each library tends to do its own
> check for OpenGL in its associated autoconf macro. So when creating my
> configure script I wind up with redundant checks and, worse, redundant
> command line options.
>
> If there's interest in this, I have a macro that might serve as a starting
> point. Though I've hacked on it a bit, I am not its progenitor and I'm
> afraid I don't know who that is. (The person I got it from didn't know the
> original author, and I've seen a few different macros around that appear
> to be fellow derivatives.)
>
> --
> Braden N. McDaniel
> [EMAIL PROTECTED]
> <URL:http://www.endoframe.com>
>
>