]>
Commit | Line | Data |
---|---|---|
bdfe4193 VB |
1 | # |
2 | # lldp_SYSTEMTAP | |
3 | # | |
4 | # Check for DTrace/Systemtap support | |
5 | ||
6 | AC_DEFUN([lldp_SYSTEMTAP], [ | |
140e34f0 | 7 | # Enable systemtap support |
bdfe4193 VB |
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]) | |
14 | fi | |
15 | AC_CHECK_HEADER([sys/sdt.h],,[AC_MSG_ERROR([*** no sys/sdt.h header found])]) | |
16 | fi | |
17 | ]) |