summaryrefslogtreecommitdiff
path: root/lib/replace/wscript
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-23 10:36:45 -0400
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:27:01 +1000
commit282de50be79718df79f338ed2c4788a0536fd015 (patch)
treed3aa5434ce3c62c5175bd5caf192d563892f7325 /lib/replace/wscript
parent3e84e10daf7282c61b6a557a8e97af84d8ab3e15 (diff)
downloadsamba-282de50be79718df79f338ed2c4788a0536fd015.tar.gz
samba-282de50be79718df79f338ed2c4788a0536fd015.tar.bz2
samba-282de50be79718df79f338ed2c4788a0536fd015.zip
build: add additional libreplace conditional sources
Diffstat (limited to 'lib/replace/wscript')
-rw-r--r--lib/replace/wscript9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript
index d8d690f5e1..63f96313dd 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -381,9 +381,12 @@ def build(bld):
REPLACE_SOURCE = 'replace.c snprintf.c'
-
- if bld.CONFIG_SET('REPLACE_STRPTIME'):
- REPLACE_SOURCE += ' strptime.c'
+ if bld.CONFIG_SET('REPLACE_STRPTIME'): REPLACE_SOURCE += ' strptime.c'
+ if not bld.CONFIG_SET('HAVE_TIMEGM'): REPLACE_SOURCE += ' timegm.c'
+ if not bld.CONFIG_SET('HAVE_GETIFADDRS'): REPLACE_SOURCE += ' getifaddrs.c'
+ if not bld.CONFIG_SET('HAVE_DLOPEN'): REPLACE_SOURCE += ' dlfcn.c'
+ if not bld.CONFIG_SET('HAVE_SOCKETPAIR'): REPLACE_SOURCE += ' socketpair.c'
+ if not bld.CONFIG_SET('HAVE_CONNECT'): REPLACE_SOURCE += ' socket.c'
bld.SAMBA_LIBRARY('replace',
source=REPLACE_SOURCE,