Edit report at http://bugs.php.net/bug.php?id=53443&edit=1
ID: 53443
Comment by: poopsm at gmail dot com
Reported by: fransmeulenbroeks at gmail dot com
Summary: configure --with-iconv=/path/to/iconv picks up host
iconv
Status: Open
Type: Bug
Package: Compile Failure
Operating System: linux
PHP Version: 5.2SVN-2010-12-01 (snap)
Block user comment: N
Private report: N
New Comment:
I'm having this same problem with php 5.3.5, and this patch isn't fixing
it.
When using the options
--with-iconv --with-iconv-dir=/usr/local/iconv
I still get
checking if iconv is glibc's... yes
but it should be using libiconv
Previous Comments:
------------------------------------------------------------------------
[2010-12-01 22:58:12] fransmeulenbroeks at gmail dot com
Description:
------------
configure --with-iconv=/path/to/iconv picks up the host iconv
ext/iconv/config.m4 does not take the case that a dir is given into
account.
I fixed this by adding $PHP_ICONV to the for loop. This patch makes the
code identical to a similar snippet of code in acinclude.m4
The problem has been detected in 5.2.13 but I verified the 5.2 snap from
today and the problem is still there.
Attached patch fixes the problem
Index: php-5.2.13/ext/iconv/config.m4
===================================================================
--- php-5.2.13.orig/ext/iconv/config.m4
+++ php-5.2.13/ext/iconv/config.m4
@@ -15,7 +15,7 @@ if test "$PHP_ICONV" != "no"; then
if test "$iconv_avail" != "no"; then
if test -z "$ICONV_DIR"; then
- for i in /usr/local /usr; do
+ for i in $PHP_ICONV /usr/local /usr; do
if test -f "$i/include/iconv.h" || test -f
"$i/include/giconv.h"; then
PHP_ICONV_PREFIX="$i"
break
~
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=53443&edit=1