From cdfc7c6c740cb72a85bd4b8ec517ef5488ae2f1a Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Thu, 24 Jul 2014 23:05:55 +0100 Subject: [PATCH] configure.ac: bail out if building gallium_gbm without gallium_egl The former is the only user of the latter. As such building gbm without egl makes little to no sense. Cc: "10.2" Signed-off-by: Emil Velikov (cherry picked from commit 1d1ec76bdf24a45cbfc919828ffb8e3f6788d725) --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index b8f584c987d..dbfc4fc24b6 100644 --- a/configure.ac +++ b/configure.ac @@ -1273,6 +1273,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