Commit e1e365e1 authored by Max Kellermann's avatar Max Kellermann

configure.ac: add option to disable iconv()

parent 5b5a18db
......@@ -468,7 +468,17 @@ AC_ARG_ENABLE(icu,
MPD_AUTO_PKG(icu, ICU, [icu-i18n], [libicu], [libicu not found])
MPD_DEFINE_CONDITIONAL(enable_icu, HAVE_ICU, [libicu])
if test x$enable_icu != xyes; then
AC_ARG_ENABLE(iconv,
AS_HELP_STRING([--enable-iconv],
[enable iconv for character set conversion (default: auto)]),,
enable_iconv=yes)
if test x$enable_icu = xyes; then
dnl We don't need iconv() if we have libicu
enable_iconv=no
fi
if test x$enable_iconv = xyes; then
AC_CHECK_FUNCS(iconv)
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment