summaryrefslogtreecommitdiff
path: root/source4/build/scons/iconv.py
diff options
context:
space:
mode:
Diffstat (limited to 'source4/build/scons/iconv.py')
-rw-r--r--source4/build/scons/iconv.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/source4/build/scons/iconv.py b/source4/build/scons/iconv.py
index ef82dc475d..940e2d814d 100644
--- a/source4/build/scons/iconv.py
+++ b/source4/build/scons/iconv.py
@@ -1,6 +1,12 @@
# Based on the M4 macro by Bruno Haible.
-def _CheckIconvPath(path):
+def exists(env):
+ return True
+
+def generate(env):
+ env['custom_tests']['CheckIconv'] = CheckIconv
+
+def _CheckIconvPath(context,path):
# Some systems have iconv in libc, some have it in libiconv (OSF/1 and
# those with the standalone portable libiconv installed).
context.Message("checking for iconv in " + path)
@@ -58,7 +64,7 @@ def CheckIconv(context):
look_dirs = ['/usr','/usr/local','/sw']
for p in look_dirs:
- _CheckIconvPath(p) #FIXME: Handle return value
+ _CheckIconvPath(context,p) #FIXME: Handle return value
if context.TryRun("""
#include <iconv.h>