--- weechat-0.4.2.orig/configure.ac	2013-10-06 08:58:14.000000000 +0200
+++ weechat-0.4.2/configure.ac	2013-11-07 10:05:15.000000000 +0100
@@ -242,7 +242,7 @@ if test "x$ac_found_iconv_header" = "xye
       LIBS="$LIBS $ICONV_LFLAGS"
    fi
    AC_MSG_CHECKING(for iconv usability in programs)
-   AC_TRY_RUN([
+   AC_TRY_LINK([
         #include <iconv.h>
         int main(int argc, char **argv) {
             iconv_t conv = iconv_open("ISO8859-1", "UTF-8");
