diff options
-rw-r--r-- | source3/wscript | 8 | ||||
-rw-r--r-- | source3/wscript_build | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/source3/wscript b/source3/wscript index 01d20d4848..9bbedeae79 100644 --- a/source3/wscript +++ b/source3/wscript @@ -49,6 +49,7 @@ def set_options(opt): opt.SAMBA3_ADD_OPTION('utmp') opt.SAMBA3_ADD_OPTION('pthreadpool', with_name="enable", without_name="disable") opt.SAMBA3_ADD_OPTION('avahi', with_name="enable", without_name="disable") + opt.SAMBA3_ADD_OPTION('iconv') def configure(conf): @@ -578,6 +579,13 @@ return 0; conf.SET_TARGET_TYPE('avahi-common', 'EMPTY') conf.SET_TARGET_TYPE('avahi-client', 'EMPTY') + if Options.options.with_iconv: + conf.env.with_iconv = True + if not conf.CHECK_FUNCS_IN('iconv_open', 'iconv', headers='iconv.h'): + conf.env.with_iconv = False + if conf.env.with_iconv: + conf.DEFINE('HAVE_ICONV', 1) + # FIXME: these should be tests for features, but the old build system just # checks for OSes. import sys diff --git a/source3/wscript_build b/source3/wscript_build index 47a330aa87..0915a6aa19 100644 --- a/source3/wscript_build +++ b/source3/wscript_build @@ -891,7 +891,7 @@ bld.SAMBA_SUBSYSTEM('KRBCLIENT', bld.SAMBA_SUBSYSTEM('LIBS', source=LIB_SRC, - deps='NSS_WRAPPER', + deps='NSS_WRAPPER iconv', vars=locals()) bld.SAMBA_SUBSYSTEM('LIB_NONSMBD', |