X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=m4%2Fpandora_enable_dtrace.m4;h=18c2d6483c4eccdc896277386c9fd590d4953c56;hb=04e03499f9070e87fee805a8430266757583a75c;hp=e1f82da088225eafbf4883d57285ba0d668441d4;hpb=ba35cd77a343901f61e4fc5279328b571e51604e;p=m6w6%2Flibmemcached diff --git a/m4/pandora_enable_dtrace.m4 b/m4/pandora_enable_dtrace.m4 index e1f82da0..18c2d648 100644 --- a/m4/pandora_enable_dtrace.m4 +++ b/m4/pandora_enable_dtrace.m4 @@ -17,6 +17,7 @@ AC_DEFUN([PANDORA_ENABLE_DTRACE],[ AC_CHECK_PROGS([DTRACE], [dtrace]) AS_IF([test "x$ac_cv_prog_DTRACE" = "xdtrace"],[ AC_DEFINE([HAVE_DTRACE], [1], [Enables DTRACE Support]) + AC_MSG_CHECKING([if dtrace should instrument object files]) dnl DTrace on MacOSX does not use -G option cat >conftest.d <<_ACEOF provider Example { @@ -24,9 +25,10 @@ provider Example { }; _ACEOF $DTRACE -G -o conftest.d.o -s conftest.d 2>/dev/zero - AS_IF([test $? -eq 0],[ac_cv_dtrace_needs_objects=yes]) + AS_IF([test $? -eq 0],[ac_cv_dtrace_needs_objects=yes], + [ac_cv_dtrace_needs_objects=no]) rm -f conftest.d.o conftest.d - + AC_MSG_RESULT($ac_cv_dtrace_needs_objects) AC_SUBST(DTRACEFLAGS) dnl TODO: test for -G on OSX ac_cv_have_dtrace=yes ])])