OSDN Git Service

configure: error out when building libEGL without shared-glapi
[android-x86/external-mesa.git] / configure.ac
index 7b1c444..3e1f080 100644 (file)
@@ -1380,6 +1380,9 @@ if test "x$enable_egl" = xyes; then
     if test "$enable_static" != yes; then
         if test "x$enable_dri" = xyes; then
             HAVE_EGL_DRIVER_DRI2=1
+            if test "x$enable_shared_glapi" = xno; then
+                AC_MSG_ERROR([egl_dri2 requires --enable-shared-glapi])
+            fi
         else
             # Avoid building an "empty" libEGL. Drop/update this
             # when other backends (haiku?) come along.