How can I set SAMBA_VERSION_VENDOR_FUNCTION in a waf build?

Richard Sharpe realrichardsharpe at gmail.com
Wed Feb 6 22:51:10 MST 2013


On Wed, Feb 6, 2013 at 9:42 PM, Andrew Bartlett <abartlet at samba.org> wrote:
> On Wed, 2013-02-06 at 15:03 -0800, Richard Sharpe wrote:
>> On Wed, Feb 6, 2013 at 1:56 PM, Andrew Bartlett <abartlet at samba.org> wrote:
>> > On Wed, 2013-02-06 at 13:13 -0800, Richard Sharpe wrote:
>> >> Hi folks,
>> >>
>> >> How do I set that particular macro?
>> >
>> > Perhaps (untested) set it using
>> > CFLAGS="-DSAMBA_VERSION_VENDOR_FUNCTION=richards_version_fn()" ./configure && make
>>
>> Nope. It used during configure but it is not passed through. That is,
>> it does not seem to be defined in the generate Makefile. Thus, waf
>> build does not seem to get this.
>
> Waf does not generate a Makefile, configure and make are just wrappers
> around waf for convenience.
>
> What does waf -v or waf -vv give when you use this?

Actually, I found the solution for the moment. VERSION in the root
directory contains what I need and it is parsed by the appropriate
python script.

-- 
Regards,
Richard Sharpe
(何以解憂?唯有杜康。--曹操)


More information about the samba-technical mailing list