mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
scanner: check for wayland-scanner.pc before using variables
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.
This commit is contained in:
parent
2b26edb877
commit
6dd0ba0e32
1 changed files with 2 additions and 0 deletions
|
|
@ -1,6 +1,8 @@
|
||||||
AC_DEFUN([WAYLAND_SCANNER_RULES], [
|
AC_DEFUN([WAYLAND_SCANNER_RULES], [
|
||||||
PKG_PROG_PKG_CONFIG
|
PKG_PROG_PKG_CONFIG
|
||||||
|
|
||||||
|
PKG_CHECK_MODULES([WAYLAND_SCANNER], [wayland-scanner])
|
||||||
|
|
||||||
wayland_scanner=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
|
wayland_scanner=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
|
||||||
AC_SUBST([wayland_scanner])
|
AC_SUBST([wayland_scanner])
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue