[vsipl++] [patch] Check config at app build time

Stefan Seefeld stefan at codesourcery.com
Wed Jan 30 15:31:54 UTC 2008


Jules Bergmann wrote:
> This patch adds a app_config() function that returns a string for the 
> library's configuration at application build time.  It is identical in 
> format to library_config(), which is the library's configuration at 
> library build time.
> 
> By comparing the output of these two functions, you can check whether 
> you're using the same configuration as when the library was originally 
> built.  This should be useful for folks using eclipse to make sure 
> they've correctly cut-and-pasted the phalanx of options from the 
> pkg-config file into eclipse.

I think this is a great idea. Why don't you make the content of 
check_config_body.hpp into a function-like macro (passing the output 
stream as an argument) ? Then you could treat this as an ordinary header 
and just 'call' this 'function' at the appropriate place instead.
(In that case you presumably wouldn't need the new check_config_body.hpp
header at all.)

Thanks,
		Stefan

-- 
Stefan Seefeld
CodeSourcery
stefan at codesourcery.com
(650) 331-3385 x718



More information about the vsipl++ mailing list