Can't seem to figure out how to get HAVE_ZOOKEEPER into something like config.h
realrichardsharpe at gmail.com
Fri Jan 16 08:10:21 MST 2015
On Fri, Jan 16, 2015 at 12:26 AM, Michael Adam <obnox at samba.org> wrote:
> On 2015-01-15 at 19:31 -0800, Richard Sharpe wrote:
>> Hi folks,
>> I need to conditionalize some stuff on HAVE_ZOOKEEPER but cannot seem
>> to figure out how to handle that in the wscipt.
>> Can someone led me a clue?
> If I were looking for clues on somthing like that,
> I'd do "git grep HAVE_FOO" for some FOO that might
> be already treated similarly to what I want to do,
> e.g. HAVE_ADS or HAVE_GLUSTERFS or HAVE_DBUS or ...,
> and then most probably end up looking into source3/wscript
> what the code there does with HAVE_ADS (or ...)
> This shows that this usually amounts to doing
> conf.DEFINE('HAVE_ZOOKEPER', '1')
Yeah, I eventually found it ... thanks.
> if you want it set and you can also do
> if you want to unset it. If the wscript should do something
> conditional already and not only the C-code, then you can use
> if conf.CONFIG_SET('ZOO_KEEPER') ...
More information about the samba-technical