summaryrefslogtreecommitdiff
path: root/source3/build
diff options
context:
space:
mode:
authorChristian Ambach <ambi@samba.org>2013-12-04 22:50:11 +0100
committerChristian Ambach <ambi@samba.org>2014-01-03 05:04:44 +0100
commit15b2d1a658b3fc428c20a7a461168f464951f40f (patch)
treef961569da2cf69e2c6d37a1e1ff25cafd9f0d914 /source3/build
parentc20753ce7aea9562f3731e2e749d8267a526db4f (diff)
downloadsamba-15b2d1a658b3fc428c20a7a461168f464951f40f.tar.gz
waf: improve iconv checks
there are broken iconv implementations around (e.g. on AIX) that you can compile against but that refuse any mapping requests make sure we do the same as the autoconf-based build did and fall back to our own code Bug: https://bugzilla.samba.org/show_bug.cgi?id=10308 Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/build')
-rw-r--r--source3/build/charset.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/build/charset.py b/source3/build/charset.py
index 44852a6c52a..00335577361 100644
--- a/source3/build/charset.py
+++ b/source3/build/charset.py
@@ -33,6 +33,12 @@ def CHECK_SAMBA3_CHARSET(conf, crossbuild=False):
default_unix_charset="UTF-8"
# TODO: this used to warn about the set charset on cross builds
+ if default_dos_charset is False or default_unix_charset is False:
+ # we found iconv, but it failed to convert anything (e.g. on AIX)
+ conf.undefine('HAVE_NATIVE_ICONV');
+ default_dos_charset = "ASCII"
+ default_unix_charset = "UTF-8"
+
conf.DEFINE('DEFAULT_DOS_CHARSET', default_dos_charset, quote=True)
conf.DEFINE('DEFAULT_UNIX_CHARSET', default_unix_charset, quote=True)