[PATCH xserver] configure.ac: fix checking for libdrm version after 9232835bd

Mariusz Bialonczyk manio at skyboo.net
Fri Mar 17 10:20:22 UTC 2017


Fix commit 9232835bd16b6948442f7a4588fb9376782cb814
glamor: use drmGetDeviceNameFromFD2 when available

No matter what libdrm version was installed, it always set
the GLAMOR_HAS_DRM_NAME_FROM_FD_2 conditional to 1.
This obviously leads to compilation problems.

Signed-off-by: Mariusz Bialonczyk <manio at skyboo.net>
Cc: Qiang Yu <Qiang.Yu at amd.com>
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index ac11e6572..0f2f68abb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2167,7 +2167,7 @@ if test "x$GLAMOR" = xyes; then
 		fi
 	fi
 
-	PKG_CHECK_MODULES(LIBDRM, "libdrm >= 2.4.74",
+	PKG_CHECK_EXISTS(libdrm >= 2.4.74,
 			[AC_DEFINE(GLAMOR_HAS_DRM_NAME_FROM_FD_2, 1, [Have GLAMOR_HAS_DRM_NAME_FROM_FD_2])], [])
 fi
 AM_CONDITIONAL([GLAMOR_EGL], [test "x$GBM" = xyes])
-- 
2.11.0



More information about the xorg-devel mailing list