cvs: php4 /ext/xslt config.m4

From: Date: Fri, 15 Mar 2002 13:56:32 +0000
Subject: cvs: php4 /ext/xslt config.m4
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-10157@lists.php.net to get a copy of this message
ssb Fri Mar 15 08:56:32 2002 EDT Modified files: /php4/ext/xslt config.m4 Log: * "new and improved" iconv test Index: php4/ext/xslt/config.m4 diff -u php4/ext/xslt/config.m4:1.16 php4/ext/xslt/config.m4:1.17 --- php4/ext/xslt/config.m4:1.16 Wed Mar 13 04:59:41 2002 +++ php4/ext/xslt/config.m4 Fri Mar 15 08:56:32 2002 @@ -1,5 +1,5 @@ dnl -dnl $Id: config.m4,v 1.16 2002/03/13 09:59:41 ssb Exp $ +dnl $Id: config.m4,v 1.17 2002/03/15 13:56:32 ssb Exp $ dnl dnl +------------------------------------------------------------------------------+ dnl | This is where the magic of the extension reallly is. Depending on what | @@ -70,14 +70,22 @@ fi found_iconv=no - AC_CHECK_LIB(c, iconv_open, found_iconv=yes) - if test "$found_iconv" = "no"; then - for i in /usr /usr/local $ICONV_DIR; do - if test -f $i/lib/libiconv.a -o -f $i/lib/libiconv.so; then - PHP_ADD_LIBRARY_WITH_PATH(iconv, $i/lib, XSLT_SHARED_LIBADD) - found_iconv=yes - fi - done + + if test -z "$ICONV_DIR"; then + AC_MSG_ERROR(Please specify the location of iconv with --with-iconv) + fi + + if test -f $ICONV_DIR/lib/lib${iconv_lib_name}.a || + test -f $ICONV_DIR/lib/lib${iconv_lib_name}.$SHLIB_SUFFIX_NAME + then + PHP_ADD_LIBRARY_WITH_PATH($iconv_lib_name, $ICONV_DIR/lib, XSLT_SHARED_LIBADD) + AC_CHECK_LIB($iconv_lib_name, libiconv_open, [ + found_iconv=yes + ]) + else + AC_CHECK_LIB(c, iconv_open, [ + found_iconv=yes + ]) fi if test "$found_iconv" = "no"; then

« previous php.cvs (#10157) next »