X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=m4%2Fpandora_enable_dtrace.m4;h=18c2d6483c4eccdc896277386c9fd590d4953c56;hb=d6db1d64eaa5644a4fe19d2accc4fb012f27ee0a;hp=e1f82da088225eafbf4883d57285ba0d668441d4;hpb=89608dc3370371a9fde46d6f60e9480fa576fc3a;p=awesomized%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 ])])