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

Yu, Qiang Qiang.Yu at amd.com
Fri Mar 17 12:36:44 UTC 2017


Hi Mariusz,

Thanks. Your patch works for both libdrm >= 2.4.74 and < 2.4.74.
But my PKG_CHECK_MODULES always define the macro. I still don't know
the reason, but your patch is:
Review-and-tested-by: Qiang Yu <Qiang.Yu at amd.com>

Regards,
Qiang
________________________________________
From: Mariusz Bialonczyk <manio at skyboo.net>
Sent: Friday, March 17, 2017 6:20:22 PM
To: xorg-devel at lists.x.org
Cc: Mariusz Bialonczyk; Yu, Qiang
Subject: [PATCH xserver] configure.ac: fix checking for libdrm version after 9232835bd

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