[packages] weechat: fix autoreconf
[openwrt/svn-archive/archive.git] / net / weechat / patches / 001-cross_compiling.patch
1 --- a/configure
2 +++ b/configure
3 @@ -29625,8 +29625,7 @@ echo $ECHO_N "checking for iconv usabili
4 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5 See \`config.log' for more details." >&5
6 echo "$as_me: error: cannot run test program while cross compiling
7 -See \`config.log' for more details." >&2;}
8 - { (exit 1); exit 1; }; }
9 +See \`config.log' for more details." >&2;} }
10 else
11 cat >conftest.$ac_ext <<_ACEOF
12 /* confdefs.h. */
13 @@ -29683,7 +29682,6 @@ echo "${ECHO_T}no" >&6; }
14 echo "${ECHO_T}yes" >&6; }
15 fi
16 fi
17 -
18 if test "x$iconv_found" = "xno" ; then
19 { { echo "$as_me:$LINENO: error:
20 *** Iconv headers and/or libraries couldn't be found in your system.
21 @@ -29692,8 +29690,7 @@ if test "x$iconv_found" = "xno" ; then
22 echo "$as_me: error:
23 *** Iconv headers and/or libraries couldn't be found in your system.
24 *** Try to install them with your software package manager.
25 -*** WeeChat can't be built without Iconv support." >&2;}
26 - { (exit 1); exit 1; }; }
27 +*** WeeChat can't be built without Iconv support." >&2;} }
28 fi
29
30 # ------------------------------------------------------------------------------
31 --- a/configure.in
32 +++ b/configure.in
33 @@ -208,22 +208,8 @@ if test "x$ac_found_iconv_header" = "xye
34 if test "x$ac_found_iconv_lib" = "xyes" ; then
35 ICONV_LFLAGS="-liconv"
36 LIBS="$LIBS $ICONV_LFLAGS"
37 + iconv_found="yes"
38 fi
39 - AC_MSG_CHECKING(for iconv usability in programs)
40 - AC_TRY_RUN([
41 - #include <iconv.h>
42 - int main(int argc, char **argv) {
43 - iconv_t conv = iconv_open("ISO8859-1", "UTF-8");
44 - if (conv != (iconv_t) -1) {
45 - return 0;
46 - }
47 - return 1;
48 - }],iconv_found="yes")
49 - if test "x$iconv_found" = "xno" ; then
50 - AC_MSG_RESULT(no)
51 - else
52 - AC_MSG_RESULT(yes)
53 - fi
54 fi
55
56 if test "x$iconv_found" = "xno" ; then