7 dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
8 dnl those with the standalone portable libiconv installed).
9 AC_CACHE_CHECK(for iconv, jm_cv_func_iconv, [
10 jm_cv_func_iconv="no, consider installing libiconv"
12 AC_TRY_LINK([#include <stdlib.h>
14 [iconv_t cd = iconv_open("","");
15 iconv(cd,NULL,NULL,NULL,NULL);
18 if test "$jm_cv_func_iconv" != yes; then
21 AC_TRY_LINK([#include <stdlib.h>
23 [iconv_t cd = iconv_open("","");
24 iconv(cd,NULL,NULL,NULL,NULL);
31 if test "$jm_cv_func_iconv" = yes; then
32 AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.])
35 if test "$jm_cv_lib_iconv" = yes; then