configure: error out when building libEGL without shared-glapi
authorEmil Velikov <emil.l.velikov@gmail.com>
Fri, 19 Jun 2015 16:46:41 +0000 (17:46 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 23 Jun 2015 16:08:05 +0000 (17:08 +0100)
The latter is a hard requirement and without it we'll error out later
on in the build.

Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
configure.ac

index 8e62bd893eee0fed5eb09e760caa5b01c3fb9e34..56095baa7e86ead79a91193fd17923984b5c8fa4 100644 (file)
@@ -1543,6 +1543,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.