You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
499 B

  1. --- a/meson.build
  2. +++ b/meson.build
  3. @@ -380,12 +380,11 @@ if dl_dep.found()
  4. endif
  5. have_iconv = false
  6. -if cc.has_function('iconv_open')
  7. +iconv_dep = cc.find_library('iconv', required : false)
  8. +have_iconv = iconv_dep.found()
  9. +if not have_iconv and cc.has_function('iconv_open')
  10. iconv_dep = dependency('', required : false)
  11. have_iconv = true
  12. -else
  13. - iconv_dep = cc.find_library('iconv', required : false)
  14. - have_iconv = iconv_dep.found()
  15. endif
  16. if have_iconv
  17. cdata.set('HAVE_ICONV', 1)