Skip to content

Commit

Permalink
scanner: check for wayland-scanner.pc before using variables
Browse files Browse the repository at this point in the history
If wayland-scanner.pc can't be found the variables end up being set
irrespectively, leaving the user with odd compiler errors about missing
headers, etc.
  • Loading branch information
whot authored and krh committed Aug 7, 2013
1 parent 2b26edb commit 6dd0ba0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wayland-scanner.m4
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
AC_DEFUN([WAYLAND_SCANNER_RULES], [
PKG_PROG_PKG_CONFIG
PKG_CHECK_MODULES([WAYLAND_SCANNER], [wayland-scanner])
wayland_scanner=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
AC_SUBST([wayland_scanner])
Expand Down

0 comments on commit 6dd0ba0

Please sign in to comment.