summaryrefslogtreecommitdiff
path: root/misc/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'misc/wscript')
-rw-r--r--misc/wscript7
1 files changed, 5 insertions, 2 deletions
diff --git a/misc/wscript b/misc/wscript
index 95c7bde..cd31091 100644
--- a/misc/wscript
+++ b/misc/wscript
@@ -33,8 +33,11 @@ def options(opt):
def configure(conf):
conf.load('compiler_c')
- conf.check_cc(function_name = 'strnlen', header_name="string.h",
- features = 'c', mandatory = False)
+ conf.check_cc(fragment = '''
+ #include <string.h>
+ int main() { size_t l = strnlen("string", 10); } ''',
+ cflags = '-Wall', define_name = 'HAVE_STRNLEN',
+ msg = 'Checking for strnlen', mandatory = False)
conf.write_config_header('config.h')
def build(bld):