aboutsummaryrefslogtreecommitdiffstats
path: root/main/znc/libiconv.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/znc/libiconv.patch')
-rw-r--r--main/znc/libiconv.patch33
1 files changed, 16 insertions, 17 deletions
diff --git a/main/znc/libiconv.patch b/main/znc/libiconv.patch
index 276fbcfd8c..1fd5838c21 100644
--- a/main/znc/libiconv.patch
+++ b/main/znc/libiconv.patch
@@ -1,18 +1,17 @@
-diff --git a/configure.ac b/configure.ac
-index 9131a01..47a2e37 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -458,7 +458,12 @@ fi
- if test x"$EXTRA" = "xyes"
+--- ./configure.ac.orig
++++ ./configure.ac
+@@ -504,7 +504,13 @@
+ fi
+
+ AC_CHECK_FUNC( iconv, CHARSET=1 )
+-AC_CHECK_LIB( iconv, iconv_open, LIBICONV=-liconv ; CHARSET=1 )
++dnl On some systems iconv is in a separate library, and may actually
++dnl be named libiconv.
++AC_CHECK_LIB( iconv, libiconv_open, LIBICONV=-liconv ; CHARSET=1 )
++if test $ac_cv_lib_iconv_libiconv = no; then
++ AC_CHECK_LIB( iconv, iconv_open, LIBICONV=-liconv ; CHARSET=1 )
++fi
++
+ if test "x$CHARSET" = "x1"
then
- AC_CHECK_FUNC( iconv, CHARSET=1 )
-- AC_CHECK_LIB( iconv, iconv_open, LIBICONV=-liconv ; CHARSET=1 )
-+ dnl On some systems iconv is in a separate library, and may actually
-+ dnl be named libiconv.
-+ AC_CHECK_LIB( iconv, libiconv_open, LIBICONV=-liconv ; CHARSET=1 )
-+ if test $ac_cv_lib_iconv_libiconv = no; then
-+ AC_CHECK_LIB( iconv, iconv_open, LIBICONV=-liconv ; CHARSET=1 )
-+ fi
- if test "x$CHARSET" = "x1"
- then
- AC_MSG_CHECKING([whether iconv expects a const second argument])
+ AC_MSG_CHECKING([whether iconv expects a const second argument])