From 83ad437a9cf9f0ed36ea0e72282020e9330f8c88 Mon Sep 17 00:00:00 2001 From: Kai Blin Date: Tue, 15 Jun 2010 06:53:11 +0200 Subject: s3-waf: Add check for iconv --- source3/wscript | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source3/wscript') 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 -- cgit