f076bc0680e57bf18a04afa568e5dc362e19674e
[nivanova/samba-autobuild/.git] / lib / util / charset / wscript_configure
1 conf.CHECK_HEADERS('iconv.h')
2
3 conf.CHECK_FUNCS_IN('iconv_open', 'iconv')
4
5 conf.CHECK_CODE('''
6                    iconv_t cd = iconv_open("ASCII","UCS-2LE");
7                    if (cd == 0 || cd == (iconv_t)-1) return -1;
8                 ''',
9                 define='HAVE_NATIVE_ICONV')
10