test/configure.in
changeset 3090 37f9304df6a9
parent 3087 0b6f51c29267
child 3280 00cace2d9080
--- a/test/configure.in	Fri Mar 06 05:53:33 2009 +0000
+++ b/test/configure.in	Thu Mar 12 03:51:39 2009 +0000
@@ -98,12 +98,6 @@
 have_opengl=yes
 ])
 AC_MSG_RESULT($have_opengl)
-if test x$have_opengl = xyes; then
-    CFLAGS="$CFLAGS -DHAVE_OPENGL"
-    GLLIB="$XPATH $SYS_GL_LIBS"
-else
-    GLLIB=""
-fi
 
 dnl Check for OpenGL ES
 AC_MSG_CHECKING(for OpenGL ES support)
@@ -121,7 +115,11 @@
 have_opengles=yes
 ])
 AC_MSG_RESULT($have_opengles)
-if test x$have_opengles = xyes; then
+
+if test x$have_opengl = xyes; then
+    CFLAGS="$CFLAGS -DHAVE_OPENGL"
+    GLLIB="$XPATH $SYS_GL_LIBS"
+elif test x$have_opengles = xyes; then
     CFLAGS="$CFLAGS -DHAVE_OPENGLES"
     GLLIB="$XPATH $SYS_GL_LIBS"
 else