mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
build: add a dependency on lib iconv for lib intl if we are not able to find it
This is due that on some platform lib intl depend on lib iconv, failling to provide this library cause waf to be unable to link with lib intl and makes it think that the library doesn't exists !
This commit is contained in:
parent
097075c31f
commit
617871ee28
@ -210,7 +210,18 @@ def configure(conf):
|
||||
conf.CHECK_FUNCS_IN('res_search', 'resolv', checklibc=True,
|
||||
headers='netinet/in.h arpa/nameser.h resolv.h')
|
||||
|
||||
conf.CHECK_FUNCS_IN('gettext', 'intl', checklibc=True, headers='libintl.h')
|
||||
|
||||
if not conf.CHECK_FUNCS_IN('gettext', 'intl', checklibc=True, headers='libintl.h'):
|
||||
# Some hosts need lib iconv for linking with lib intl
|
||||
# So we try with flags just in case it helps.
|
||||
oldflags = conf.env['LDFLAGS_INTL']
|
||||
conf.env['LDFLAGS_INTL'] = "-liconv"
|
||||
if not conf.CHECK_LIB('intl'):
|
||||
conf.env['LDFLAGS_INTL'] = oldflags
|
||||
else:
|
||||
conf.CHECK_FUNCS_IN('gettext', 'intl', checklibc=True, headers='libintl.h')
|
||||
|
||||
conf.CHECK_FUNCS_IN('dgettext gettext', 'intl', headers='libintl.h')
|
||||
conf.CHECK_FUNCS_IN('pthread_create', 'pthread', checklibc=True, headers='pthread.h')
|
||||
|
||||
conf.CHECK_FUNCS_IN('crypt', 'crypt', checklibc=True)
|
||||
|
Loading…
Reference in New Issue
Block a user