add --enable-gl-flavor-gles to force GLES flavor of GL instead of "standard"

GL which will be preferred if it is found. this is for situations where you
may have both GL and GLES.



SVN revision: 42994
This commit is contained in:
Carsten Haitzler 2009-10-10 03:46:27 +00:00
parent 7680ac9922
commit 1d869a9ab1
2 changed files with 22 additions and 2 deletions

View 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

View 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