2018-06-02 18:15:04 +02:00
|
|
|
From ef96bac7cbbb11b98606864ead0f731dd5b71d5a Mon Sep 17 00:00:00 2001
|
2016-11-17 20:41:25 +01:00
|
|
|
From: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
|
|
|
Date: Thu, 17 Nov 2016 15:36:54 -0300
|
|
|
|
Subject: [PATCH] configure.ac: invert order for wayland-scanner check
|
|
|
|
|
|
|
|
When cross-compiling the .pc file might point to the wrong
|
|
|
|
wayland-scanner binary (target rather than host) resulting in a
|
|
|
|
non-executable and wrong scanner.
|
|
|
|
Try searching the PATH first, and if that fails fall back into
|
|
|
|
pkg-config.
|
|
|
|
|
2017-06-10 13:53:46 +02:00
|
|
|
[Vincent: tweak patch for 17.1.1 version]
|
|
|
|
|
2016-11-17 20:41:25 +01:00
|
|
|
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
2017-06-10 13:53:46 +02:00
|
|
|
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
|
2018-06-02 18:15:04 +02:00
|
|
|
[Romain: rebase on 18.1]
|
2017-12-22 12:37:21 +01:00
|
|
|
Signed-off-by: Romain Naour <romain.naour@gmail.com>
|
2018-12-09 21:46:07 +01:00
|
|
|
[Bernd rebase on 18.3]
|
|
|
|
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
2016-11-17 20:41:25 +01:00
|
|
|
---
|
|
|
|
configure.ac | 8 ++++----
|
|
|
|
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/configure.ac b/configure.ac
|
2018-06-02 18:15:04 +02:00
|
|
|
index f1fbdcc6c7..dcf87e7dd6 100644
|
2016-11-17 20:41:25 +01:00
|
|
|
--- a/configure.ac
|
|
|
|
+++ b/configure.ac
|
2018-12-09 21:46:07 +01:00
|
|
|
@@ -1841,17 +1841,16 @@
|
|
|
|
fi
|
2018-06-02 18:15:04 +02:00
|
|
|
WAYLAND_PROTOCOLS_DATADIR=`$PKG_CONFIG --variable=pkgdatadir wayland-protocols`
|
2016-11-17 20:41:25 +01:00
|
|
|
|
2018-06-02 18:15:04 +02:00
|
|
|
- PKG_CHECK_MODULES([WAYLAND_SCANNER], [wayland-scanner],
|
2018-12-09 21:46:07 +01:00
|
|
|
+ AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner], [:])
|
|
|
|
+ if test "x$WAYLAND_SCANNER" = x; then
|
|
|
|
+ PKG_CHECK_MODULES([WAYLAND_SCANNER], [wayland-scanner],
|
|
|
|
WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`,
|
|
|
|
WAYLAND_SCANNER='')
|
|
|
|
+ fi
|
|
|
|
PKG_CHECK_EXISTS([wayland-scanner >= 1.15],
|
|
|
|
AC_SUBST(SCANNER_ARG, 'private-code'),
|
|
|
|
AC_SUBST(SCANNER_ARG, 'code'))
|
2016-11-17 20:41:25 +01:00
|
|
|
|
2018-12-09 21:46:07 +01:00
|
|
|
- if test "x$WAYLAND_SCANNER" = x; then
|
|
|
|
- AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner], [:])
|
|
|
|
- fi
|
|
|
|
-
|
2018-06-02 18:15:04 +02:00
|
|
|
if test "x$WAYLAND_SCANNER" = "x:"; then
|
2018-12-09 21:46:07 +01:00
|
|
|
AC_MSG_ERROR([wayland-scanner is needed to compile the wayland platform])
|
|
|
|
fi
|
2016-11-17 20:41:25 +01:00
|
|
|
--
|
2017-12-22 12:37:21 +01:00
|
|
|
2.14.3
|