about summary refs log tree commit homepage
path: root/m4/systemtap.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/systemtap.m4')
-rw-r--r--m4/systemtap.m45
1 files changed, 4 insertions, 1 deletions
diff --git a/m4/systemtap.m4 b/m4/systemtap.m4
index dccb9b3..3c62f08 100644
--- a/m4/systemtap.m4
+++ b/m4/systemtap.m4
@@ -2,8 +2,11 @@ dnl systemtap support
 dnl enable automatically if dtrace and sdt.h are available
 AC_DEFUN([CM_SYSTEMTAP],[
 AC_CHECK_PROGS(DTRACE, dtrace)
+dnl require stap for now, too, as there are compatibility issues with
+dnl dtrace under FreeBSD
+AC_CHECK_PROGS(STAP, stap)
 AC_CHECK_HEADER([sys/sdt.h], [SDT_H_FOUND='yes'], [SDT_H_FOUND='no'])
-AS_IF([test "x${DTRACE}" != x && test $SDT_H_FOUND = yes],
+AS_IF([test "x$STAP" != x && test "x$DTRACE" != x && test $SDT_H_FOUND = yes],
         AC_CACHE_CHECK([for sys/sdt.h usability],
                         [cm_cv_sdt_h_usable], [
                         AC_TRY_COMPILE([