On Wed, Jul 20, 2011 at 17:18, Jie Zhang wrote: > On Tue, Jul 19, 2011 at 2:16 PM, Mike Frysinger wrote: >> AC_CHECK_MEMBER([struct timespec.tv_sec]) >> AF_IF([test "x$ac_cv_member_struct_timespec_tv_sec" = "xyes"],[ >> AC_DEFINE([HAVE_STRUCT_TIMESPEC], [1], [We have struct timespec]) >> ]) > > AC_CHECK_TYPE is better. How would you like the attached new version > of the patch?
that is a better macro. i was thinking it didnt work for structs, but clearly that's not true. move the code down in configure.ac to where the other existing AC_CHECK_TYPE is (for wchar_t), line wrap it the same way as that check, and it should be good to go. -mike ------------------------------------------------------------------------------ 10 Tips for Better Web Security Learn 10 ways to better secure your business today. Topics covered include: Web security, SSL, hacker attacks & Denial of Service (DoS), private keys, security Microsoft Exchange, secure Instant Messaging, and much more. http://www.accelacomm.com/jaw/sfnl/114/51426210/ _______________________________________________ UrJTAG-development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/urjtag-development
