1 dnl ---------------------------------------------------------------------------
3 dnl ---------------------------------------------------------------------------
5 [ --enable-dtrace Build with support for the DTRACE.],
7 AC_PATH_PROG([DTRACE], [dtrace], "no", [/usr/sbin:$PATH])
8 if test "x$DTRACE" != "xno"; then
9 AC_DEFINE([HAVE_DTRACE], [1], [Enables DTRACE Support])
10 DTRACE_HEADER=dtrace_probes.h
12 # DTrace on MacOSX does not use -G option
13 $DTRACE -G -o conftest.$$ -s libmemcached/libmemcached_probes.d 2>/dev/zero
16 DTRACE_OBJ=libmemcached_probes.lo
23 AC_MSG_ERROR([Need dtrace binary and OS support.])
32 AC_SUBST(DTRACE_HEADER)
34 AM_CONDITIONAL([HAVE_DTRACE], [ test "$ENABLE_DTRACE" = "yes" ])
35 dnl ---------------------------------------------------------------------------
36 dnl End Macro: DTRACE_TEST
37 dnl ---------------------------------------------------------------------------