summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/wayland/wayland-protocols/dont-use-AC_CANONICAL.patch
blob: 6cc0f3bfc1d876c132de1b8ebdf1e2d8c4bf4252 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Check autoconfs $cross_compiling instead as AC_CANONICAL_HOST call
will fail if the host cpu is not recognised (which can happen when
e.g. Yocto builds for "allarch").

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Upstream-Status: Backport [cc276dfa41]

diff --git a/configure.ac b/configure.ac
index 5b48b1a..3d45a4b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -15,13 +15,10 @@ AC_CONFIG_MACRO_DIR([m4])
 
 AC_SUBST([WAYLAND_PROTOCOLS_VERSION], [wayland_protocols_version])
 
-AC_CANONICAL_HOST
-AC_CANONICAL_BUILD
-
 AC_ARG_VAR([wayland_scanner], [The wayland-scanner executable])
 AC_PATH_PROG([wayland_scanner], [wayland-scanner])
 if test x$wayland_scanner = x; then
-        if test x$host = x$build; then
+        if test "x$cross_compiling" != "xyes"; then
                 PKG_CHECK_MODULES(WAYLAND_SCANNER, [wayland-scanner])
                 wayland_scanner=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
         else
-- 
cgit v0.10.2