Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -11457,6 +11457,10 @@ fi
$as_echo "#define WITH_DTRACE 1" >>confdefs.h

DTRACE_HEADERS="Include/pydtrace_probes.h"
DTRACE_CMD="$DTRACE $DFLAGS"
if test "$ac_sys_system" = "Linux"; then
DTRACE_CMD="$DTRACE"
fi

# On OS X, DTrace providers do not need to be explicitly compiled and
# linked into the binary. Correspondingly, dtrace(1) is missing the ELF
Expand All @@ -11469,7 +11473,7 @@ if ${ac_cv_dtrace_link+:} false; then :
else
ac_cv_dtrace_link=no
echo 'BEGIN{}' > conftest.d
"$DTRACE" "$DFLAGS" -G -s conftest.d -o conftest.o > /dev/null 2>&1 && \
"$DTRACE_CMD" -G -s conftest.d -o conftest.o > /dev/null 2>&1 && \
ac_cv_dtrace_link=yes

fi
Expand Down
6 changes: 5 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -3517,6 +3517,10 @@ then
fi
AC_DEFINE(WITH_DTRACE, 1, [Define if you want to compile in DTrace support])
DTRACE_HEADERS="Include/pydtrace_probes.h"
DTRACE_CMD="$DTRACE $DFLAGS"
if test "$ac_sys_system" = "Linux"; then
DTRACE_CMD="$DTRACE"
fi

# On OS X, DTrace providers do not need to be explicitly compiled and
# linked into the binary. Correspondingly, dtrace(1) is missing the ELF
Expand All @@ -3526,7 +3530,7 @@ then
[ac_cv_dtrace_link], [dnl
ac_cv_dtrace_link=no
echo 'BEGIN{}' > conftest.d
"$DTRACE" "$DFLAGS" -G -s conftest.d -o conftest.o > /dev/null 2>&1 && \
"$DTRACE_CMD" -G -s conftest.d -o conftest.o > /dev/null 2>&1 && \
ac_cv_dtrace_link=yes
])
if test "$ac_cv_dtrace_link" = "yes"; then
Expand Down