summaryrefslogtreecommitdiff
path: root/ext/xmlrpc
diff options
context:
space:
mode:
authorScott MacVicar <scottmac@php.net>2009-04-27 17:49:32 +0000
committerScott MacVicar <scottmac@php.net>2009-04-27 17:49:32 +0000
commit4ce599678f9d887c9ac09cfa5bcd89a2b581f34b (patch)
treebd4b430e732d96c16e1d64228315f1ab5df051bc /ext/xmlrpc
parentc848df3fbe6fd6da5a39da077768520f4bf3f043 (diff)
downloadphp-git-4ce599678f9d887c9ac09cfa5bcd89a2b581f34b.tar.gz
MFH Fix bug #47695 - xmlrpc --with-iconv-dir mangles --with-iconv if they use different iconv versions. Could also just add a dependency on iconv to fix this.
Diffstat (limited to 'ext/xmlrpc')
-rw-r--r--ext/xmlrpc/config.m422
1 files changed, 13 insertions, 9 deletions
diff --git a/ext/xmlrpc/config.m4 b/ext/xmlrpc/config.m4
index 7f7277d4df..389d4adaf0 100644
--- a/ext/xmlrpc/config.m4
+++ b/ext/xmlrpc/config.m4
@@ -61,17 +61,21 @@ if test "$PHP_XMLRPC" != "no"; then
fi
fi
- if test "$PHP_ICONV_DIR" != "no"; then
- PHP_ICONV=$PHP_ICONV_DIR
- fi
+ dnl if iconv is shared or missing then we should build iconv ourselves
+ if test "$PHP_ICONV_SHARED" = "yes" || test "$PHP_ICONV" = "no"; then
+
+ if test "$PHP_ICONV_DIR" != "no"; then
+ PHP_ICONV=$PHP_ICONV_DIR
+ fi
- if test -z "$PHP_ICONV" || test "$PHP_ICONV" = "no"; then
- PHP_ICONV=yes
- fi
+ if test -z "$PHP_ICONV" || test "$PHP_ICONV" = "no"; then
+ PHP_ICONV=yes
+ fi
- PHP_SETUP_ICONV(XMLRPC_SHARED_LIBADD, [], [
- AC_MSG_ERROR([iconv not found, in order to build xmlrpc you need the iconv library])
- ])
+ PHP_SETUP_ICONV(XMLRPC_SHARED_LIBADD, [], [
+ AC_MSG_ERROR([iconv not found, in order to build xmlrpc you need the iconv library])
+ ])
+ fi
fi
if test "$PHP_XMLRPC" = "yes"; then