xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/autoconf/autoconf/program_prefix.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1From f4f19a5c03e8ae3b9cc93d24b76694f4b7b2eb76 Mon Sep 17 00:00:00 2001
2From: Ross Burton <ross.burton@intel.com>
3Date: Thu, 12 Mar 2020 17:28:38 +0000
4Subject: [PATCH 3/7] program_prefix.patch
5
6Upstream-Status: Inappropriate [oe specific]
7Signed-off-by: Ross Burton <ross.burton@intel.com>
8---
9 lib/autoconf/general.m4 | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
11
12diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4
13index 16f0d074..4c5e0b36 100644
14--- a/lib/autoconf/general.m4
15+++ b/lib/autoconf/general.m4
16@@ -2070,7 +2070,7 @@ _AC_CANONICAL_SPLIT([target])
17
18 # The aliases save the names the user supplied, while $host etc.
19 # will get canonicalized.
20-test -n "$target_alias" &&
21+test -n "$target_alias" && test "$target_alias" != "$host_alias" &&
22   test "$program_prefix$program_suffix$program_transform_name" = \
23     NONENONEs,x,x, &&
24   program_prefix=${target_alias}-[]dnl
25--
262.25.1
27
28