From 282de50be79718df79f338ed2c4788a0536fd015 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 23 Mar 2010 10:36:45 -0400 Subject: [PATCH] build: add additional libreplace conditional sources --- lib/replace/wscript | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/replace/wscript b/lib/replace/wscript index d8d690f5e14..63f96313dd9 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, -- 2.25.1