From e1e365e16eea5f92bea8919bf1c81d6fc192eea3 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 27 Jun 2015 15:32:26 +0200 Subject: configure.ac: add option to disable iconv() --- configure.ac | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index a7113d405..e0d437dc6 100644 --- a/configure.ac +++ b/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 -- cgit v1.2.3