add --enable-gl-flavor-gles to force GLES flavor of GL instead of "standard"
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 10 Oct 2009 03:46:27 +0000 (03:46 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 10 Oct 2009 03:46:27 +0000 (03:46 +0000)
GL which will be preferred if it is found. this is for situations where you
may have both GL and GLES.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@42994 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

configure.ac
m4/evas_check_engine.m4

index 3ff1063..21ff10e 100644 (file)
@@ -379,6 +379,25 @@ AM_CONDITIONAL([EVAS_CSERVE], [test "x${want_evas_cserve}" = "xyes"])
 
 
 
+#######################################
+## 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
 
index 55c1fcb..fbc9dd9 100644 (file)
@@ -137,8 +137,9 @@ if test "x${have_dep}" = "xyes" ; then
    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