Author: "logesh.sekar" <logesh.sekar@timesys.com>
Date: Wed, 29 Jan 2025 19:08:25 +0530

---
 test/configure | 41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/test/configure b/test/configure
index 8ea80bc..a1a0df9 100755
--- a/test/configure
+++ b/test/configure
@@ -622,6 +622,12 @@ XLIB
 GLES2LIB
 GLESLIB
 GLLIB
+HAVE_GLES_TRUE
+HAVE_GLES_FALSE
+HAVE_GLES2_TRUE
+HAVE_GLES2_FALSE
+HAVE_GL_TRUE
+HAVE_GL_FALSE
 OPENGL_TARGETS
 OPENGLES2_TARGETS
 OPENGLES1_TARGETS
@@ -699,6 +705,9 @@ ac_user_opts='
 enable_option_checking
 with_sdl_prefix
 with_sdl_exec_prefix
+enable_gles1
+enable_gles2
+enable_opengl
 enable_sdltest
 with_x
 enable_werror
@@ -4563,6 +4572,7 @@ fi
 
 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL support" >&5
 printf %s "checking for OpenGL support... " >&6; }
+if test x$enable_opengl = x; then
 have_opengl=no
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
@@ -4590,6 +4600,7 @@ printf "%s\n" "$have_opengl" >&6; }
 
 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES support" >&5
 printf %s "checking for OpenGL ES support... " >&6; }
+if test x$enable_gles1 = x; then
 have_opengles=no
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
@@ -4612,6 +4623,21 @@ then :
   have_opengles=yes
 fi
 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+
+else
+
+have_opengl=$enable_opengl
+
+fi
+
+if test x$have_opengl = xyes; then
+  HAVE_GL_TRUE=
+  HAVE_GL_FALSE='#'
+else
+  HAVE_GL_TRUE='#'
+  HAVE_GL_FALSE=
+fi
+
 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_opengles" >&5
 printf "%s\n" "$have_opengles" >&6; }
 
@@ -4639,6 +4665,21 @@ then :
   have_opengles2=yes
 fi
 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+
+else
+
+have_opengles2=$enable_gles2
+
+fi
+
+if test x$have_opengles2 = xyes; then
+  HAVE_GLES2_TRUE=
+  HAVE_GLES2_FALSE='#'
+else
+  HAVE_GLES2_TRUE='#'
+  HAVE_GLES2_FALSE=
+fi
+
 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_opengles2" >&5
 printf "%s\n" "$have_opengles2" >&6; }
 
-- 
2.34.1

