com php-src: Remove giconv support: build/php.m4 ext/iconv/config.m4

From: Date: Fri, 07 Aug 2020 15:03:41 +0000
Subject: com php-src: Remove giconv support: build/php.m4 ext/iconv/config.m4
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-112614@lists.php.net to get a copy of this message
Commit: 2d359749a47f5e417364d8c410c8a6b06def2921 Author: Nikita Popov <nikita.ppv@gmail.com> Fri, 7 Aug 2020 16:05:24 +0200 Parents: 65592840f05ef1e96622b5b48a55928893617629 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2d359749a47f5e417364d8c410c8a6b06def2921 Log: Remove giconv support The best information I was able to find about this is this mail from 2009 which indicates that giconv is an old FreeBSD iconv implementation that has long since been superseded by libiconv. https://lists.samba.org/archive/samba-technical/2009-June/065177.html Changed paths: M build/php.m4 M ext/iconv/config.m4 Diff: diff --git a/build/php.m4 b/build/php.m4 index 70a7e34d933..b827679b3e6 100644 --- a/build/php.m4 +++ b/build/php.m4 @@ -1944,12 +1944,7 @@ AC_DEFUN([PHP_SETUP_ICONV], [ if test "$found_iconv" = "no"; then for i in $PHP_ICONV /usr/local /usr; do - if test -r $i/include/giconv.h; then - AC_DEFINE(HAVE_GICONV_H, 1, [ ]) - ICONV_DIR=$i - iconv_lib_name=giconv - break - elif test -r $i/include/iconv.h; then + if test -r $i/include/iconv.h; then ICONV_DIR=$i iconv_lib_name=iconv break diff --git a/ext/iconv/config.m4 b/ext/iconv/config.m4 index 59b89824bfb..0588f1ba310 100644 --- a/ext/iconv/config.m4 +++ b/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 - if test -f "$i/include/iconv.h" || test -f "$i/include/giconv.h"; then + if test -f "$i/include/iconv.h"; then PHP_ICONV_PREFIX="$i" break fi @@ -29,12 +29,7 @@ if test "$PHP_ICONV" != "no"; then CFLAGS="-I$PHP_ICONV_PREFIX/include $CFLAGS" LDFLAGS="-L$PHP_ICONV_PREFIX/$PHP_LIBDIR $LDFLAGS" - - if test -r "$PHP_ICONV_PREFIX/include/giconv.h"; then - PHP_ICONV_H_PATH="$PHP_ICONV_PREFIX/include/giconv.h" - else - PHP_ICONV_H_PATH="$PHP_ICONV_PREFIX/include/iconv.h" - fi + PHP_ICONV_H_PATH="$PHP_ICONV_PREFIX/include/iconv.h" AC_MSG_CHECKING([if iconv is glibc's]) AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <gnu/libc-version.h>]], [[gnu_get_libc_version();]])],[

« previous php.cvs (#112614) next »