That is only when the egl x11 platform is not choosen to be build. --- configure.ac | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/configure.ac b/configure.ac index 92a0e52..345d865 100644 --- a/configure.ac +++ b/configure.ac @@ -1418,12 +1418,13 @@ if test "x$enable_egl" = xyes; then DEFINES="$DEFINES -DHAVE_LIBUDEV" fi if test "x$enable_dri" = xyes; then + EGL_DRIVER_DRI2=dri2 + # build egl_dri2 when xcb-dri2 is available PKG_CHECK_MODULES([XCB_DRI2], [x11-xcb xcb-dri2 xcb-xfixes], [have_xcb_dri2=yes],[have_xcb_dri2=no]) if test "$have_xcb_dri2" = yes; then - EGL_DRIVER_DRI2=dri2 DEFINES="$DEFINES -DHAVE_XCB_DRI2" # workaround a bug in xcb-dri2 generated by xcb-proto 1.6 save_LIBS="$LIBS" @@ -1431,6 +1432,10 @@ if test "x$enable_egl" = xyes; then [DEFINES="$DEFINES -DXCB_DRI2_CONNECT_DEVICE_NAME_BROKEN"]) LIBS="$save_LIBS" fi + case "$with_egl_platforms$have_xcb_dri2" in + *x11*no|no) + AC_MSG_ERROR([egl_dri2 requires x11-xcb, xcb-dri2 and xcb-xfixes]) ;; + esac fi EGL_DRIVERS_DIRS="$EGL_DRIVERS_DIRS $EGL_DRIVER_DRI2" -- 1.7.3.4 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev