mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
Drop iconv caching code
This was introduced for Solaris performance theoretically; we have never been able to use it on Linux/glibc because the UTF-16 BOM state isn't reset. We have no data about Solaris performance; were some to still exist, we could reintroduce the code with an explicit check for Solaris, not a check for glibc. https://bugzilla.gnome.org/show_bug.cgi?id=704999
This commit is contained in:
committed by
Matthias Clasen
parent
abbb225738
commit
331e93c3f1
27
configure.ac
27
configure.ac
@@ -434,33 +434,6 @@ AS_IF([ test x"$glib_native_win32" = xyes], [
|
||||
fi
|
||||
])
|
||||
|
||||
AC_ARG_ENABLE(iconv-cache,
|
||||
[AS_HELP_STRING([--enable-iconv-cache=@<:@yes/no/auto@:>@],
|
||||
[cache iconv descriptors [default=auto]])],,
|
||||
[enable_iconv_cache=auto])
|
||||
|
||||
AC_MSG_CHECKING([whether to cache iconv descriptors])
|
||||
case $enable_iconv_cache in
|
||||
auto)
|
||||
if test $ac_cv_gnu_library_2_1 = yes; then
|
||||
enable_iconv_cache=no
|
||||
else
|
||||
enable_iconv_cache=yes
|
||||
fi
|
||||
;;
|
||||
yes|no)
|
||||
;;
|
||||
*) AC_MSG_ERROR([Value given to --enable-iconv-cache must be one of yes, no or auto])
|
||||
;;
|
||||
esac
|
||||
|
||||
if test $enable_iconv_cache = yes; then
|
||||
AC_DEFINE(NEED_ICONV_CACHE,1,[Do we cache iconv descriptors])
|
||||
fi
|
||||
|
||||
AC_MSG_RESULT($enable_iconv_cache)
|
||||
|
||||
|
||||
dnl
|
||||
dnl zlib support
|
||||
dnl
|
||||
|
Reference in New Issue
Block a user