I also hit the problem of X11 OpenGL vs Apple OpenGL.

For qtruby I compiled a version of the opengl-rb18 without X11 because
the GL (glut?) library would fail to initialize without a X display.

I added some framework flags to INCFLAGS (that go before CPPFLAGS that
pull the includes from /sw) and to LDFLAGS. However, I still had to
#ifdef the header locations.

Since both versions are possible on OS X the autoconf macro would have
to use a switch which would tell it to look either for X or for Apple
OpenGL. And it would have to set some #define so that the header
location can be #ifdefed.
I have seen things like _DARWIN_X11_ that are used to include X even
if __APPLE__ is defined.

Unfortunately, the ruby extension does not use autoconf. Still at
least the options could be the same.

qt uses --enable-mac on OS X I think. But it should be the other way
around. X11 is nonstandard on OS X so the Aqua version should be the
default. Or perhaps check for X, use if found, and try Aqua if not?
That would probably lead to broken builds in many cases because the
Apple X11 does not include glut but the Aqua OpenGL does.

Thanks

Michal

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to