[Mesa-dev] [PATCH] configure.ac: Check for expat21 if expat is not found.

Vinson Lee vlee at freedesktop.org
Sat Aug 5 20:53:19 UTC 2017


Fixes build error on CentOS 6.9.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102052
Fixes: 5c007203b73d ("configure.ac: drop manual detection of expat header/library")
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 configure.ac |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 5b12dd8..0dfd47b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1792,7 +1792,9 @@ if test "x$with_dri_drivers" = xno; then
 fi
 
 # Check for expat
-PKG_CHECK_MODULES([EXPAT], [expat])
+PKG_CHECK_MODULES([EXPAT], [expat],,
+    [PKG_CHECK_MODULES([EXPAT], [expat21])]
+)
 
 dnl If $with_dri_drivers is yes, drivers will be added through
 dnl platform checks. Set DEFINES and LIB_DEPS
-- 
1.7.1



More information about the mesa-dev mailing list