configure.ac: add option to disable iconv()
This commit is contained in:
parent
5b5a18db2a
commit
e1e365e16e
12
configure.ac
12
configure.ac
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user