autotools: fix compiling/linking gl engines on OSX.
authorJean Guyomarc'h <jean.guyomarch@gmail.com>
Wed, 3 Dec 2014 08:45:51 +0000 (09:45 +0100)
committerCedric BAIL <cedric@osg.samsung.com>
Wed, 3 Dec 2014 08:58:02 +0000 (09:58 +0100)
commit682d7fab54f763212cd40c0ad0b24dba1717ce7f
tree96d66aafd4a9a3f1114ae9e126ceb25df4dfd2fe
parentb1f8f3fb17ec37c4ddb817d766051eb8fe9d72e1
autotools: fix compiling/linking gl engines on OSX.

Summary:
Until now, it was necessary to set global LDFLAGS and CFLAGS to allow
compiling (and linking) engines using OpenGL.
gl_generic used to complained about missing headers or unkown libraries.
A problem on OSX is that there is CGL (Apple's Core OpenGL) on which the whole system
relies on and GLX, when X11 is installed; and they cohabit together.
When gl_cocoa is enabled, gl_generic is now linked against CGL.
When it is not, gl_generic is compiled with and linked against GLX as a fallback.

@fix

Test Plan:
With --enable-cocoa: software_x11, opengl_x11 and opengl_cocoa are working as expected.
With --disable-cocoa: software_x11 and opengl_x11 are also working as expected.
No compiling nor linking problems have been issued.

Reviewers: cedric, raster, raoulh

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1723

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
configure.ac
src/Makefile_Evas.am