configure.ac: Use PKG_CHECK_VAR for wayland-scanner.
authorMatt Turner <mattst88@gmail.com>
Mon, 6 Mar 2017 18:20:10 +0000 (10:20 -0800)
committerMatt Turner <mattst88@gmail.com>
Tue, 7 Mar 2017 15:27:45 +0000 (07:27 -0800)
Available since pkg-config-0.28 and pkgconf-0.8.10.

The removal of the AC_PATH_PROG is intentional. Use pkg-config.

Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
configure.ac

index 49cb28338d599fc5463bce6a81a5441577c88d41..7a89344bed79c298a861ebdca36eb4aaba7ad615 100644 (file)
@@ -2102,12 +2102,7 @@ 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_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
+PKG_CHECK_VAR([WAYLAND_SCANNER], [wayland-scanner], [wayland_scanner])
 
 # Do per-EGL platform setups and checks
 egl_platforms=`IFS=', '; echo $with_egl_platforms`