1 From b33a6a83687fc58cd5f662d44ba8819498cb80a4 Mon Sep 17 00:00:00 2001
2 From: Changqing Li <changqing.li@windriver.com>
3 Date: Thu, 9 Aug 2018 14:10:32 +0800
4 Subject: [PATCH] socket6-perl: fix configure error
6 only do IPv6_CHECK_INET_NTOP when not cross compile to fix below
7 error: checking for working inet_ntop..., configure: error:
8 cannot run test program while cross compiling
10 Upstream-Status: Inappropriate [oe specific]
12 Signed-off-by: Changqing Li <changqing.li@windriver.com>
15 1 file changed, 3 insertions(+), 1 deletion(-)
17 diff --git a/configure.in b/configure.in
18 index 1fe22e1..1a7cf94 100644
21 @@ -63,7 +63,9 @@ if test $ac_cv_lib_inet6_getaddrinfo = yes; then
22 INET6LIBS="-L$ipv6_cv_dir/lib -linet6"
25 -IPv6_CHECK_INET_NTOP()
26 +if test "$cross_compiling" != yes; then
27 + IPv6_CHECK_INET_NTOP()
30 IPv6_CHECK_SIN6_SCOPE_ID()
31 IPv6_CHECK_SOCKLEN_T()