aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index cfacf35..545bb98 100644
--- a/configure.in
+++ b/configure.in
@@ -84,6 +84,17 @@ dnl now check for const char *msg argument in iconv(..)
84 [ AC_MSG_RESULT([yes (non const msg)])], 84 [ AC_MSG_RESULT([yes (non const msg)])],
85 [ AC_DEFINE(HAVE_CONST_ICONV, 1, "iconv") 85 [ AC_DEFINE(HAVE_CONST_ICONV, 1, "iconv")
86 AC_MSG_RESULT([yes (const msg)])]) 86 AC_MSG_RESULT([yes (const msg)])])
87
88dnl Check if iconv is part of libiconv
89 AC_CHECK_LIB(iconv, iconv_close,
90 AC_MSG_CHECKING([for iconv_close in libiconv])
91 AC_TRY_LINK(
92 #include <iconv.h>,
93 [int main() { return iconv_close((iconv_t)(-1)); }],
94 AC_MSG_RESULT([yes]),
95 LIBS="$LIBS -liconv"
96 )
97 )
87else 98else
88 AC_MSG_RESULT([no]) 99 AC_MSG_RESULT([no])
89fi 100fi