* Mark Wielaard ([email protected]) wrote: > On Tue, 2011-04-12 at 14:48 -0400, Mathieu Desnoyers wrote: > > * Frank Ch. Eigler ([email protected]) wrote: > > > How about just: > > > > > > > > > #define SDT_USE_VARIADIC > > > #include <sys/sdt.h> > > > > How should support systems that don't have sdt.h ? Is there a define we > > could check ? > > I have just been using the following configure check: > > AC_CHECK_HEADER([sys/sdt.h], [SDT_H_FOUND='yes'], > [SDT_H_FOUND='no'; > AC_MSG_ERROR([systemtap support needs sys/sdt.h header])]) > > Which you can adapt to your needs with/without error message, including > an test to see if it fully works for your environment.
Thanks for the hint, but adding this test in the UST build system don't really make sense, because both systemtap and UST don't have dependency on each other, and thus the build order between the two packages is not fixed. So the detection should be done when the UST header is being included into an application rather than at UST configuration time. And I don't want to require all applications that want to use tracepoint to use autoconf neither. Mathieu > > > _______________________________________________ > ltt-dev mailing list > [email protected] > http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev > -- Mathieu Desnoyers Operating System Efficiency R&D Consultant EfficiOS Inc. http://www.efficios.com _______________________________________________ ltt-dev mailing list [email protected] http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
