summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2019-05-05 14:34:25 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2019-05-05 23:05:02 -0400
commit52c489837f511771a00be91ecf1b15d390d2980c (patch)
tree741e4bdb7c0818e96bae88009665effbfccaeff1 /SConstruct
parentec94594504f4eec3a91fe5a55153dedbe8535790 (diff)
downloadlighttpd-git-52c489837f511771a00be91ecf1b15d390d2980c.tar.gz
[build] detect FreeBSD elftc_copyfile()
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct6
1 files changed, 6 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 74f5358b..c286aed7 100644
--- a/SConstruct
+++ b/SConstruct
@@ -453,6 +453,12 @@ if 1:
if autoconf.CheckType('struct sockaddr_storage', '#include <sys/socket.h>\n'):
autoconf.env.Append(CPPFLAGS = [ '-DHAVE_STRUCT_SOCKADDR_STORAGE' ])
+ if autoconf.CheckLibWithHeader('elftc', 'libelftc.h', 'c', 'elftc_copyfile(0, 1);'):
+ autoconf.env.Append(
+ CPPFLAGS = [ '-DHAVE_ELFTC_COPYFILE' ],
+ LIBS = [ 'elftc' ],
+ )
+
if autoconf.CheckLibWithHeader('rt', 'time.h', 'c', 'clock_gettime(CLOCK_MONOTONIC, (struct timespec*)0);'):
autoconf.env.Append(
CPPFLAGS = [ '-DHAVE_CLOCK_GETTIME' ],