diff --git a/configure.ac b/configure.ac index f13a54ab9..ec98f52c0 100644 --- a/configure.ac +++ b/configure.ac @@ -1197,6 +1197,7 @@ PKG_CHECK_MODULES([DRI3PROTO], $DRI3PROTO, case "$DRI3,$HAVE_DRI3PROTO" in yes,yes | auto,yes) + REQUIRED_MODULES="$REQUIRED_MODULES dri3proto" ;; yes,no) AC_MSG_ERROR([DRI3 requested, but dri3proto not found.]) diff --git a/dri3/meson.build b/dri3/meson.build index 3d05020e6..0deec32aa 100644 --- a/dri3/meson.build +++ b/dri3/meson.build @@ -9,7 +9,7 @@ if build_dri3 libxserver_dri3 = static_library('libxserver_dri3', srcs_dri3, include_directories: inc, - dependencies: common_dep, + dependencies: [ common_dep, libdrm_dep ], c_args: '-DHAVE_XORG_CONFIG_H' ) endif