mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-30 20:33:08 +02:00
Merge branch 'meson-intl-iconv-lookup' into 'main'
meson: try iconv in libintl lookup See merge request GNOME/glib!3448
This commit is contained in:
commit
d3fbb6e0fc
@ -2117,6 +2117,10 @@ if libintl.found()
|
||||
# pthread, so we do this manually here.
|
||||
if cc.has_function('ngettext', dependencies : libintl, prefix: libintl_prefix)
|
||||
libintl_deps += [libintl]
|
||||
else
|
||||
libintl_iconv = cc.find_library('iconv', required : false)
|
||||
if libintl_iconv.found() and cc.has_function('ngettext', dependencies : [libintl, libintl_iconv])
|
||||
libintl_deps += [libintl, libintl_iconv]
|
||||
else
|
||||
libintl_pthread = cc.find_library('pthread', required : false)
|
||||
if libintl_pthread.found() and cc.has_function('ngettext', dependencies : [libintl, libintl_pthread], prefix: libintl_prefix)
|
||||
@ -2125,6 +2129,7 @@ if libintl.found()
|
||||
libintl = disabler()
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
if libintl.found()
|
||||
|
Loading…
x
Reference in New Issue
Block a user