configure.ac: manually expand PKG_CHECK_VAR
authorEmil Velikov <emil.velikov@collabora.com>
Tue, 18 Apr 2017 10:33:42 +0000 (11:33 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 19 Apr 2017 11:18:29 +0000 (12:18 +0100)
The macro is introduced with pkgconfig v0.28 which isn't universally
available. Thus it will error at configure stage.

Reported-by: Brian Paul <brianp@vmware.com>
Tested-by: Brian Paul <brianp@vmware.com>
Fixes: ce562f9e3fa ("EGL: Implement the libglvnd interface for EGL (v3)")
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
configure.ac

index e18f12f0b954a70cfcdf5b86fb2c67bd1accb942..e1c60d842b57ab95282c07e378521f2d40174afd 100644 (file)
@@ -1367,7 +1367,7 @@ if test "x$enable_libglvnd" = xyes ; then
     esac
 
     PKG_CHECK_MODULES([GLVND], libglvnd >= 0.2.0)
-    PKG_CHECK_VAR(LIBGLVND_DATADIR, libglvnd, datadir)
+    LIBGLVND_DATADIR=`$PKG_CONFIG --variable=datadir libglvnd`
     AC_SUBST([LIBGLVND_DATADIR])
 
     DEFINES="${DEFINES} -DUSE_LIBGLVND=1"