summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakir <akir>2004-09-02 16:51:54 (GMT)
committerakir <akir>2004-09-02 16:51:54 (GMT)
commit8d87514b90723e3a997f49afe21bd6c10afbdf12 (patch)
tree836419eff2017b5ac00be3da79693139b39da471
parent312828fdbe35796b0292a308d907bd22fcefd6a4 (diff)
downloadfluxbox_lack-8d87514b90723e3a997f49afe21bd6c10afbdf12.zip
fluxbox_lack-8d87514b90723e3a997f49afe21bd6c10afbdf12.tar.bz2
adds -liconv when iconv_close is in libiconv
-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