mirror of https://code.videolan.org/videolan/vlc
configure: make it possible to override wayland-scanner
When cross-compiling, PKG_CONFIG might pick up the wayland-scanner from the sysroot.
This commit is contained in:
parent
2955528c3b
commit
75e52f617b
10
configure.ac
10
configure.ac
|
@ -3437,10 +3437,12 @@ AS_IF([test "${enable_wayland}" != "no"], [
|
|||
PKG_CHECK_MODULES([WAYLAND_EGL], [wayland-egl],, [
|
||||
wl_err="$wl_err ${WAYLAND_EGL_PKG_ERRORS}."
|
||||
])
|
||||
PKG_CHECK_MODULES([WAYLAND_SCANNER], [wayland-scanner >= 1.15], [
|
||||
WAYLAND_SCANNER="$(${PKG_CONFIG} wayland-scanner --variable wayland_scanner)"
|
||||
], [
|
||||
wl_err="$wl_err ${WAYLAND_SCANNER_PKG_ERRORS}."
|
||||
AS_VAR_SET_IF(WAYLAND_SCANNER, [],[
|
||||
PKG_CHECK_MODULES([WAYLAND_SCANNER], [wayland-scanner >= 1.15], [
|
||||
WAYLAND_SCANNER="$(${PKG_CONFIG} wayland-scanner --variable wayland_scanner)"
|
||||
], [
|
||||
wl_err="$wl_err ${WAYLAND_SCANNER_PKG_ERRORS}."
|
||||
])
|
||||
])
|
||||
|
||||
dnl wayland-protocols
|
||||
|
|
Loading…
Reference in New Issue