summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2016-10-16 01:58:25 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2016-10-16 01:58:25 -0400
commit3d0dcdf6ab89d307d1d87c484237de5d3bc0e6ed (patch)
tree97df781d3cd20d4c0d8a2d47abf80497c3e75c38 /SConstruct
parent609e9a5050a0399eec690789ba0bb374ce3708c6 (diff)
downloadlighttpd1.4-3d0dcdf6ab89d307d1d87c484237de5d3bc0e6ed.tar.gz
lighttpd1.4-3d0dcdf6ab89d307d1d87c484237de5d3bc0e6ed.zip
fix SCons build
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct7
1 files changed, 6 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index e09fc6fe..bae825cc 100644
--- a/SConstruct
+++ b/SConstruct
@@ -16,6 +16,11 @@ def checkCHeaders(autoconf, hdrs):
if autoconf.CheckCHeader(_hdr):
autoconf.env.Append(CPPFLAGS = [ '-DHAVE_' + p.sub('_', _hdr[-1].upper()) ])
+def checkFunc(autoconf, func, header):
+ p = re.compile('[^A-Z0-9]')
+ if autoconf.CheckFunc(func, header):
+ autoconf.env.Append(CPPFLAGS = [ '-DHAVE_' + p.sub('_', func.upper()) ])
+
def checkFuncs(autoconf, funcs):
p = re.compile('[^A-Z0-9]')
for func in funcs:
@@ -216,7 +221,7 @@ if 1:
writev sigaction sendfile64 send_file kqueue port_create localtime_r posix_fadvise issetugid inet_pton \
memset_s explicit_bzero clock_gettime \
getentropy arc4random jrand48'))
- checkFunc(autoconf, getrandom, linux/random.h)
+ checkFunc(autoconf, 'getrandom', 'linux/random.h')
checkTypes(autoconf, Split('pid_t size_t off_t'))