From: foobar Date: Tue, 26 Mar 2002 00:15:34 +0000 (+0000) Subject: MFH fixes for the iconv stuff X-Git-Tag: php-4.2.0RC2~35 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a618edb5dd344c1993699a00c435f9832021301d;p=php MFH fixes for the iconv stuff --- diff --git a/ext/rpc/xmlrpc/config.m4 b/ext/rpc/xmlrpc/config.m4 index 6ade302cb3..bf032cfc24 100644 --- a/ext/rpc/xmlrpc/config.m4 +++ b/ext/rpc/xmlrpc/config.m4 @@ -33,6 +33,9 @@ if test "$PHP_XMLRPC" != "no"; then AC_MSG_ERROR(XML-RPC support requires libexpat. Use --with-expat-dir=) fi + if 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]) ]) diff --git a/ext/xmlrpc/config.m4 b/ext/xmlrpc/config.m4 index 6ade302cb3..bf032cfc24 100644 --- a/ext/xmlrpc/config.m4 +++ b/ext/xmlrpc/config.m4 @@ -33,6 +33,9 @@ if test "$PHP_XMLRPC" != "no"; then AC_MSG_ERROR(XML-RPC support requires libexpat. Use --with-expat-dir=) fi + if 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]) ]) diff --git a/ext/xslt/config.m4 b/ext/xslt/config.m4 index 92e574a919..0cfa426466 100644 --- a/ext/xslt/config.m4 +++ b/ext/xslt/config.m4 @@ -56,7 +56,7 @@ if test "$PHP_XSLT" != "no"; then if test "$PHP_XSLT_SABLOT" != "no"; then found_expat=no for i in $PHP_EXPAT_DIR $XSLT_DIR; do - if test -f $i/lib/libexpat.a -o -f $i/lib/libexpat.so; then + if test -f $i/lib/libexpat.a -o -f $i/lib/libexpat.$SHLIB_SUFFIX_NAME; then AC_DEFINE(HAVE_LIBEXPAT2, 1, [ ]) PHP_ADD_INCLUDE($i/include) PHP_ADD_LIBRARY_WITH_PATH(expat, $i/lib, XSLT_SHARED_LIBADD) @@ -69,6 +69,9 @@ if test "$PHP_XSLT" != "no"; then PHP_ADD_LIBRARY(xmltok) fi + if test "$PHP_ICONV" = "no"; then + PHP_ICONV=yes + fi PHP_SETUP_ICONV(XSLT_SHARED_LIBADD, [], [ AC_MSG_ERROR([iconv not found, in order to build sablotron you need the iconv library]) ])