aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-06-30 11:08:21 -0400
committerDavid Robillard <d@drobilla.net>2017-06-30 11:09:01 -0400
commit76e9a6530fd52070ae5c1784dcbd5e2929c7972d (patch)
tree4d3d65c25458d78aab5e0b5d9bba35db32bcc043 /wscript
parent83e06e802c65bcc810483992838ac05fd173aae7 (diff)
downloadserd-76e9a6530fd52070ae5c1784dcbd5e2929c7972d.tar.gz
serd-76e9a6530fd52070ae5c1784dcbd5e2929c7972d.tar.bz2
serd-76e9a6530fd52070ae5c1784dcbd5e2929c7972d.zip
Clean up UTF-8 parsing and use CLZ if available
Diffstat (limited to 'wscript')
-rw-r--r--wscript5
1 files changed, 5 insertions, 0 deletions
diff --git a/wscript b/wscript
index b39e43a8..3d60859c 100644
--- a/wscript
+++ b/wscript
@@ -78,6 +78,11 @@ def configure(conf):
defines = ['_POSIX_C_SOURCE=200809L'],
mandatory = False)
+ conf.check(fragment = 'int main() { return __builtin_clz(1); }',
+ function_name = '__builtin_clz',
+ define_name = 'HAVE_BUILTIN_CLZ',
+ mandatory = False)
+
autowaf.define(conf, 'SERD_VERSION', SERD_VERSION)
autowaf.set_lib_env(conf, 'serd', SERD_VERSION)
conf.write_config_header('serd_config.h', remove=False)