configure.ac: bail out if building gallium_gbm without gallium_egl
authorEmil Velikov <emil.l.velikov@gmail.com>
Thu, 24 Jul 2014 22:05:55 +0000 (23:05 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 12 Aug 2014 22:36:06 +0000 (23:36 +0100)
The former is the only user of the latter. As such building gbm
without egl makes little to no sense.

Cc: "10.2" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
configure.ac

index b27cfb3f41b4c348406cc83d1030da103d7095bb..2b5cebed0101075b35f9553ef12f00d113087cec 100644 (file)
@@ -1352,6 +1352,10 @@ if test "x$enable_gallium_gbm" = xyes; then
         AC_MSG_ERROR([gbm_gallium requires --enable-dri to build])
     fi
 
+    if test "x$enable_gallium_egl" != xyes; then
+        AC_MSG_ERROR([gbm_gallium is only used by egl_gallium])
+    fi
+
     GALLIUM_STATE_TRACKERS_DIRS="gbm $GALLIUM_STATE_TRACKERS_DIRS"
     GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS gbm"
     enable_gallium_loader=yes