From 12049de467b52f1c8e4e16b53cb10182d06c6a51 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 14 Jul 2013 02:31:41 +0000 Subject: m4/systemtap: require stap for enabling systemtap build Only relying on dtrace leads to build problems on FreeBSD which I haven't had a chance to fix. --- m4/systemtap.m4 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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([ -- cgit v1.2.3-24-ge0c7