1 From 4588f4a0287787788eb86fb16f326cbaa7454e1d Mon Sep 17 00:00:00 2001
2 From: Zheng Junling <zhengjunling@huawei.com>
3 Date: Mon, 16 Jun 2014 12:51:25 +0000
4 Subject: [PATCH] slang: fix the iconv existence checking
6 When checking whether there is iconv, the configure file always check
9 Now we make it working properly by adding correct prefix for cross-
10 compiling environment.
12 When enabling iconv-module, we see a QA warning because rpaths hardcoded
13 into the build. And rpaths are not needed, so let's turn this off.
15 This patch is generated by referencing the existing "fix-check-pcre"
18 Upstream-Status: Inappropriate
20 Signed-off-by: Zheng Junling <zhengjunling@huawei.com>
22 configure | 72 +++++---------------------------------------------------------
23 1 file changed, 6 insertions(+), 66 deletions(-)
25 diff --git a/configure b/configure
26 index fa395ff..7fa769c 100755
29 @@ -8259,6 +8259,7 @@ $as_echo_n "checking for the iconv library and header files ... " >&6; }
30 /usr/include/iconv,/usr/lib \
31 /usr/iconv/include,/usr/iconv/lib \
32 /usr/include,/usr/lib \
33 + /usr/include,/usr/lib64 \
34 /opt/include/iconv,/opt/lib \
35 /opt/iconv/include,/opt/iconv/lib \
36 /opt/include,/opt/lib"
37 @@ -8289,14 +8290,14 @@ $as_echo_n "checking for the iconv library and header files ... " >&6; }
38 xincdir=`echo $include_and_lib | tr ',' ' ' | awk '{print $1}'`
39 xlibdir=`echo $include_and_lib | tr ',' ' ' | awk '{print $2}'`
41 - if test -r $xincdir/$xincfile
42 + if test -r $PKG_CONFIG_SYSROOT_DIR/$xincdir/$xincfile
46 - if test -r "$xlibdir/$xlibfile.$E"
47 + if test -r "$PKG_CONFIG_SYSROOT_DIR/$xlibdir/$xlibfile.$E"
49 - jd_iconv_include_dir="$xincdir"
50 - jd_iconv_library_dir="$xlibdir"
51 + jd_iconv_include_dir="$PKG_CONFIG_SYSROOT_DIR/$xincdir"
52 + jd_iconv_library_dir="$PKG_CONFIG_SYSROOT_DIR/$xlibdir"
53 jd_with_iconv_library="yes"
56 @@ -8201,68 +8201,7 @@ $as_echo "yes: $jd_iconv_library_dir and $jd_iconv_include_dir" >&6; }
61 -if test "X$jd_iconv_library_dir" != "X"
63 - if test "X$RPATH" = "X"
68 - if test "X$GCC" = Xyes
70 - if test "X$ac_R_nospace" = "Xno"
77 - if test "X$ac_R_nospace" = "Xno"
85 - *osf*|*openbsd*|*freebsd*)
86 - if test "X$GCC" = Xyes
94 - if test "X$GCC" = Xyes
101 - if test "X$RPATH" != "X"
103 - RPATH="$RPATH$jd_iconv_library_dir"
107 - for X in `echo $RPATH | sed 's/:/ /g'`
109 - if test "$X" = "$jd_iconv_library_dir"
115 - if test $_already_there = 0
117 - RPATH="$RPATH:$jd_iconv_library_dir"
125 ICONV_INC=-I$jd_iconv_include_dir