>>>>> On Wed, 15 Sep 2004 09:36:16 -0400, Robert Story (Coders) <[EMAIL PROTECTED]> >>>>> said:
Robert> On Mon, 13 Sep 2004 6:51:30 -0400 [EMAIL PROTECTED] wrote: SN> When testing for CPP defines, in order to adjust test parameters, SN> the test scripts could do a better job of matching. SN> SN> [...] the tests search for SN> CPP define "HAVE_AES" , which always match this fragment SN> from acconfig.h, net-snmp-config.h.in: SN> SN> #if defined(USE_OPENSSL) && defined(HAVE_OPENSSL_AES_H) && \ SN> defined(HAVE_AES_CFB128_ENCRYPT) SN> #define HAVE_AES 1 SN> #endif Robert> The only way around that would be to actually use the C Robert> pre-processor, like configure does. Either that, or add a Robert> net-snmp-config.in option to report on on the availability of Robert> AES, and use net-snmp-config instead of grep. Agreed... We'll likely have to switch to that to make it "correct". Unfortunately, its also quite a bit more complex. You now have to do something like create a unique file for the thing you want to test like: #ifdef TEST_DEF 1 #endif and then pipe that through cpp to get the results. sigh. -- Wes Hardaker Sparta ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Net-snmp-coders mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
