Bug #53443 [NEW]: configure --with-iconv=/path/to/iconv picks up host iconv

From: Date: Wed, 01 Dec 2010 21:58:12 +0000
Subject: Bug #53443 [NEW]: configure --with-iconv=/path/to/iconv picks up host iconv
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-156665@lists.php.net to get a copy of this message
From:             
Operating system: linux
PHP version:      5.2SVN-2010-12-01 (snap)
Package:          Compile Failure
Bug Type:         Bug
Bug description:configure --with-iconv=/path/to/iconv picks up host iconv

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 bug report at http://bugs.php.net/bug.php?id=53443&edit=1
-- 
Try a snapshot (PHP 5.2):            http://bugs.php.net/fix.php?id=53443&r=trysnapshot52
Try a snapshot (PHP 5.3):            http://bugs.php.net/fix.php?id=53443&r=trysnapshot53
Try a snapshot (trunk):              http://bugs.php.net/fix.php?id=53443&r=trysnapshottrunk
Fixed in SVN:                        http://bugs.php.net/fix.php?id=53443&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53443&r=needdocs
Fixed in release:                    http://bugs.php.net/fix.php?id=53443&r=alreadyfixed
Need backtrace:                      http://bugs.php.net/fix.php?id=53443&r=needtrace
Need Reproduce Script:               http://bugs.php.net/fix.php?id=53443&r=needscript
Try newer version:                   http://bugs.php.net/fix.php?id=53443&r=oldversion
Not developer issue:                 http://bugs.php.net/fix.php?id=53443&r=support
Expected behavior:                   http://bugs.php.net/fix.php?id=53443&r=notwrong
Not enough info:                     http://bugs.php.net/fix.php?id=53443&r=notenoughinfo
Submitted twice:                     http://bugs.php.net/fix.php?id=53443&r=submittedtwice
register_globals:                    http://bugs.php.net/fix.php?id=53443&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=53443&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=53443&r=dst
IIS Stability:                       http://bugs.php.net/fix.php?id=53443&r=isapi
Install GNU Sed:                     http://bugs.php.net/fix.php?id=53443&r=gnused
Floating point limitations:          http://bugs.php.net/fix.php?id=53443&r=float
No Zend Extensions:                  http://bugs.php.net/fix.php?id=53443&r=nozend
MySQL Configuration Error:           http://bugs.php.net/fix.php?id=53443&r=mysqlcfg



Thread (4 messages)

« previous php.bugs (#156665) next »