Revert "configure.ac: Use PKG_CHECK_VAR for wayland-scanner."
authorMatt Turner <mattst88@gmail.com>
Wed, 8 Mar 2017 05:24:00 +0000 (21:24 -0800)
committerMatt Turner <mattst88@gmail.com>
Wed, 8 Mar 2017 05:24:05 +0000 (21:24 -0800)
This reverts commit 8a26e944399ae4d0fd662e5106f0b34f5ced462d.

configure.ac

index 8fbadc80e646c07d36f1dae8b9825168eedca0cf..d64ed2d3e8d4133cfc818c4028bcc371fcdd2f4f 100644 (file)
@@ -2102,7 +2102,12 @@ if test "x$with_egl_platforms" != "x" -a "x$enable_egl" != xyes; then
     AC_MSG_ERROR([cannot build egl state tracker without EGL library])
 fi
 
-PKG_CHECK_VAR([WAYLAND_SCANNER], [wayland-scanner], [wayland_scanner])
+PKG_CHECK_MODULES([WAYLAND_SCANNER], [wayland-scanner],
+        WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`,
+        WAYLAND_SCANNER='')
+if test "x$WAYLAND_SCANNER" = x; then
+    AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner])
+fi
 
 # Do per-EGL platform setups and checks
 egl_platforms=`IFS=', '; echo $with_egl_platforms`