Mesa (10.1): configure: error out if building GBM without dri
Carl Worth
cworth at kemper.freedesktop.org
Wed May 14 23:16:39 UTC 2014
Module: Mesa
Branch: 10.1
Commit: c8e24aa5a9a77b5d9cfa48d44d279ec21694fe2f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c8e24aa5a9a77b5d9cfa48d44d279ec21694fe2f
Author: Emil Velikov <emil.l.velikov at gmail.com>
Date: Mon May 5 22:09:22 2014 +0100
configure: error out if building GBM without dri
Both backends require --enable-dri, and building an empty libgbm
makes little to no sense. Error out at configure to prevent the
user from shooting themselves in the foot.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=78225
Cc: "10.1 10.2" <mesa-stable at lists.freedesktop.org>
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
(cherry picked from commit e477d12c3396ded1607b6f57c15e100ca08f44f5)
---
configure.ac | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/configure.ac b/configure.ac
index e2afb1d..f37038d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1200,6 +1200,13 @@ if test "x$enable_gbm" = xyes; then
if test "x$enable_shared_glapi" = xno; then
AC_MSG_ERROR([gbm_dri requires --enable-shared-glapi])
fi
+ else
+ # Strictly speaking libgbm does not require --enable-dri, although
+ # both of its backends do. Thus one can build libgbm without any
+ # backends if --disable-dri is set.
+ # To avoid unnecessary complexity of checking if at least one backend
+ # is available when building, just mandate --enable-dri.
+ AC_MSG_ERROR([gbm requires --enable-dri])
fi
fi
AM_CONDITIONAL(HAVE_GBM, test "x$enable_gbm" = xyes)
More information about the mesa-commit
mailing list