4 # Check for DTrace/Systemtap support
6 AC_DEFUN([lldp_SYSTEMTAP], [
7 # Enable systemtap support
8 lldp_ARG_ENABLE([dtrace], [systemtap/DTrace trace support], [no])
9 AM_CONDITIONAL([ENABLE_SYSTEMTAP], [test x"$enable_dtrace" = x"yes"])
10 if test x"$enable_dtrace" = x"yes"; then
11 AC_CHECK_PROGS(DTRACE, dtrace)
12 if test -z "$DTRACE"; then
13 AC_MSG_ERROR([*** dtrace command not found])
15 AC_CHECK_HEADER([sys/sdt.h],,[AC_MSG_ERROR([*** no sys/sdt.h header found])])