Lines Matching refs:iconv
1 PHP_ARG_WITH([iconv],
2 [for iconv support],
3 [AS_HELP_STRING([[--without-iconv[=DIR]]],
4 [Exclude iconv support])],
21 AC_MSG_CHECKING([if iconv is glibc's])
32 #include <iconv.h>
48 AC_MSG_CHECKING([if iconv is Konstantin Chuguev's])
49 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <iconv.h>]], [[iconv_ccs_init(NULL, NULL);]])],[
58 AC_MSG_CHECKING([if using IBM iconv])
59 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <iconv.h>]], [[cstoccsid("");]])],[
69 AC_DEFINE([PHP_ICONV_IMPL],["libiconv"],[Which iconv implementation to use])
74 AC_DEFINE([HAVE_BSD_ICONV],1,[Konstantin Chuguev's iconv implementation])
75 AC_DEFINE([PHP_ICONV_IMPL],["BSD iconv"],[Which iconv implementation to use])
79 AC_DEFINE([HAVE_GLIBC_ICONV],1,[glibc's iconv implementation])
80 AC_DEFINE([PHP_ICONV_IMPL],["glibc"],[Which iconv implementation to use])
83 AC_DEFINE([HAVE_IBM_ICONV],1,[IBM iconv implementation])
84 AC_DEFINE([PHP_ICONV_IMPL],["IBM iconv"],[Which iconv implementation to use])
88 AC_MSG_CHECKING([if iconv supports errno])
90 #include <iconv.h>
110 AC_MSG_ERROR(iconv does not support errno)
115 AC_MSG_CHECKING([if iconv supports //IGNORE])
117 #include <iconv.h>
129 size_t result = iconv(cd, (char **) &in_p, &in_left, (char **) &out_p, &out_left);
137 AC_DEFINE([ICONV_BROKEN_IGNORE],0,[Whether iconv supports IGNORE])
140 AC_DEFINE([ICONV_BROKEN_IGNORE],1,[Whether iconv supports IGNORE])
143 AC_DEFINE([ICONV_BROKEN_IGNORE],0,[Whether iconv supports IGNORE])
149 PHP_NEW_EXTENSION(iconv, iconv.c, $ext_shared,, [-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1])
151 PHP_INSTALL_HEADERS([ext/iconv/])
153 AC_MSG_ERROR(Please reinstall the iconv library.)