diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-09-21 00:38:23 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:38:33 -0500 |
commit | 9d44a9a351e6c830ca18a0129bb11b3f99d53c4b (patch) | |
tree | 18d1d546248624f341ff2ba68a15bd1d2f7f8bce /source4/lib/socket_wrapper/SConscript | |
parent | b5521a818fb6b54e5e719fc28e51f402a94f3529 (diff) | |
download | samba-9d44a9a351e6c830ca18a0129bb11b3f99d53c4b.tar.gz samba-9d44a9a351e6c830ca18a0129bb11b3f99d53c4b.tar.bz2 samba-9d44a9a351e6c830ca18a0129bb11b3f99d53c4b.zip |
r10374: Add HAVE_* defines (on command-line or in config.h file) for scons +
some other minor updates
(This used to be commit f142c15de1afb2f13a5e23ceb40ce70f0115c8bf)
Diffstat (limited to 'source4/lib/socket_wrapper/SConscript')
-rw-r--r-- | source4/lib/socket_wrapper/SConscript | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/source4/lib/socket_wrapper/SConscript b/source4/lib/socket_wrapper/SConscript index ac9e0466b2..1c0253a0d4 100644 --- a/source4/lib/socket_wrapper/SConscript +++ b/source4/lib/socket_wrapper/SConscript @@ -1,7 +1,14 @@ Import('hostenv') -hostenv.StaticLibrary('socket_wrapper',['socket_wrapper.c']) opts = Options(None, ARGUMENTS) opts.AddOptions( - BoolOption('socket-wrapper','enable socket wrapper',0) + BoolOption('socket_wrapper','enable socket wrapper',0) ) + +opts.Update(hostenv) + +if hostenv['socket_wrapper']: + hostenv.Append(CPPDEFINES = {'HAVE_SOCKET_WRAPPER': 1}) + socket_wrapper = hostenv.StaticLibrary('socket_wrapper',['socket_wrapper.c']) +else: + socket_wrapper = [] |