GL which will be preferred if it is found. this is for situations where you
may have both GL and GLES.
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@42994
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
+#######################################
+## GL force flavor gles
+gl_flavor_gles="no"
+AC_MSG_CHECKING(whether to build GLES flavor of GL)
+AC_ARG_ENABLE(gl-flavor-gles,
+ AC_HELP_STRING([--enable-gl-flavor-gles], [enable gles falvor of gl instead of standard]),
+ [
+ if test "x$enableval" = "xyes" ; then
+ AC_MSG_RESULT(yes)
+ gl_flavor_gles="yes"
+ else
+ AC_MSG_RESULT(no)
+ gl_flavor_gles="no"
+ fi
+ ], [
+ gl_flavor_gles="no"
+ ]
+)
+
#####################################################################
## Engines
AC_CHECK_LIB([GL], [glXCreateContext], [have_dep="yes"], [have_dep="no"])
fi
-## HACK: force gles build on systems that have glx
-#have_dep=no
+if test "x$gl_flavor_gles" = "xyes" ; then
+ have_dep=no
+fi
if test "x${have_dep}" = "xyes" ; then
if test "x$2" = "xyes" ; then