[Xcb] [PATCH libxcb 2/3] config: issue an error if DRI3 is requested, but sendfds is not available

josh at joshtriplett.org josh at joshtriplett.org
Wed Mar 26 15:07:17 PDT 2014


On Wed, Mar 26, 2014 at 03:24:45PM -0400, Gaetan Nadon wrote:
> When a user issues the --enable-dri3 option and sendfds is not available
> on the system, the configuration will abort with an error message.
> 
> Signed-off-by: Gaetan Nadon <memsize at videotron.ca>

Reviewed-by: Josh Triplett <josh at joshtriplett.org>

>  m4/xcb.m4 |    5 +++++
>  1 file changed, 5 insertions(+)
> 
> 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
> -- 
> 1.7.9.5
> 
> _______________________________________________
> Xcb mailing list
> Xcb at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xcb


More information about the Xcb mailing list