~yusiwen/mpd/trunk

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Max Kellermann
  • Date: 2015-06-27 13:32:26 UTC
  • Revision ID: max@duempel.org-20150627133226-5s8i0qz57j5a92eb
configure.ac: add option to disable iconv()

Show diffs side-by-side

added added

removed removed

Lines of Context:
468
468
MPD_AUTO_PKG(icu, ICU, [icu-i18n], [libicu], [libicu not found])
469
469
MPD_DEFINE_CONDITIONAL(enable_icu, HAVE_ICU, [libicu])
470
470
 
471
 
if test x$enable_icu != xyes; then
 
471
AC_ARG_ENABLE(iconv,
 
472
        AS_HELP_STRING([--enable-iconv],
 
473
                [enable iconv for character set conversion (default: auto)]),,
 
474
        enable_iconv=yes)
 
475
 
 
476
if test x$enable_icu = xyes; then
 
477
        dnl We don't need iconv() if we have libicu
 
478
        enable_iconv=no
 
479
fi
 
480
 
 
481
if test x$enable_iconv = xyes; then
472
482
        AC_CHECK_FUNCS(iconv)
473
483
fi
474
484