summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorGaetan Nadon <memsize@videotron.ca>2014-03-25 19:44:53 -0400
committerGaetan Nadon <memsize@videotron.ca>2014-04-02 13:29:54 -0400
commitcee6ba80456dd3bb9f3989cafd2c26907ecdefd2 (patch)
tree3dbd6c2655015091a630e25c95367a2fdea12ca3 /m4
parentf5757bd75e4aefe9bc8da79dbf2d0776ce19d666 (diff)
config: issue an error if DRI3 is requested, but sendfds is not available
When a user issues the --enable-dri3 option and sendfds is not available on the system, the configuration will abort with an error message. Reviewed-by: Josh Triplett <josh@joshtriplett.org> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Diffstat (limited to 'm4')
-rw-r--r--m4/xcb.m45
1 files changed, 5 insertions, 0 deletions
diff --git a/m4/xcb.m4 b/m4/xcb.m4
index cf525c0..a43082a 100644
--- a/m4/xcb.m4
+++ b/m4/xcb.m4
@@ -56,6 +56,11 @@ m4_if(xcb_defopt, [auto], [
# This extension has a default value of "auto" and depends on the value of $2
if test "x$BUILD_[]UP" = "xauto" ; then
BUILD_[]UP=$2
+fi
+if test "x$BUILD_[]UP" = "xyes" ; then
+ if test "x$2" = "xno" ; then
+ AC_MSG_ERROR([Extension []UP requested, but dependencies are not met])
+ fi
fi])
m4_undefine([xcb_defopt])dnl