configure.ac: Allow OpenGL ES1 and ES2 only with enabled OpenGL
authorAndreas Boll <andreas.boll.dev@gmail.com>
Fri, 1 Feb 2013 12:39:42 +0000 (13:39 +0100)
committerChad Versace <chad.versace@linux.intel.com>
Tue, 23 Apr 2013 01:16:10 +0000 (03:16 +0200)
Building OpenGL ES1 and/or ES2 without OpenGL is not supported on mesa
9.0.x

Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
configure.ac

index 50e60f623bedae371601959c19951e52304cdaac..06d9fc9f0b0cd3903eaaf2f2e5c441928d00e721 100644 (file)
@@ -676,6 +676,17 @@ if test "x$enable_opengl" = xno -a \
     AC_MSG_ERROR([at least one API should be enabled])
 fi
 
+# Building OpenGL ES1 and/or ES2 without OpenGL is not supported on mesa 9.0.x
+if test "x$enable_opengl" = xno -a \
+        "x$enable_gles1" = xyes; then
+    AC_MSG_ERROR([Building OpenGL ES1 without OpenGL is not supported])
+fi
+
+if test "x$enable_opengl" = xno -a \
+        "x$enable_gles2" = xyes; then
+    AC_MSG_ERROR([Building OpenGL ES2 without OpenGL is not supported])
+fi
+
 API_DEFINES=""
 if test "x$enable_opengl" = xno; then
     API_DEFINES="$API_DEFINES -DFEATURE_GL=0"