lib/icu: fix build with iconv()

This commit is contained in:
Andre Heider
2019-09-29 20:57:04 +02:00
committed by Max Kellermann
parent dcc5ce6792
commit 96a9670c69
2 changed files with 2 additions and 1 deletions

View File

@@ -20,7 +20,7 @@ if icu_dep.found()
elif not get_option('iconv').disabled()
have_iconv = compiler.has_function('iconv')
conf.set('HAVE_ICONV', have_iconv)
if get_option('iconv').enabled()
if not have_iconv and get_option('iconv').enabled()
error('iconv() not available')
endif
endif