ruby-changes:25685
From: naruse <ko1@a...>
Date: Tue, 20 Nov 2012 11:21:28 +0900 (JST)
Subject: [ruby-changes:25685] naruse:r37742 (trunk): * configure.in (--enable-dtrace): always call RUBY_DTRACE_BSD_BROKEN
naruse 2012-11-20 11:21:17 +0900 (Tue, 20 Nov 2012) New Revision: 37742 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=37742 Log: * configure.in (--enable-dtrace): always call RUBY_DTRACE_BSD_BROKEN for portability. As the note, FreeBSD 8 has DTrace as the optional feature (it is enabled by the build option), but doesn't have USDT. FreeBSD 9 has USDT but they are still optional. FreeBSD 10 will enable them by default. The variable $rb_cv_prog_dtrace_g is "yes" only on FreeBSD 9 with optional DTrace or FreeBSD 10. If it is "no", you cannnot know whether it doesn't need -G or DTrace is disabled. (by cheking error code, you can know) * configure.in (--enable-dtrace): change help message Modified files: trunk/ChangeLog trunk/configure.in Index: configure.in =================================================================== --- configure.in (revision 37741) +++ configure.in (revision 37742) @@ -2731,20 +2731,14 @@ AC_ARG_ENABLE(dtrace, AS_HELP_STRING([--enable-dtrace], - [enable DTrace for tracing ruby's internal.]), - [enable_dtrace=$enableval], [enable_dtrace=auto]) + [enable DTrace for tracing ruby's internal. enabled by default on systems having dtrace]), + [enable_dtrace=$enableval], [enable_dtrace=auto]) if test "${enable_dtrace}" = "auto"; then if test x"$DTRACE" != x -a x"$cross_compiling" != xyes; then RUBY_DTRACE_POSTPROCESS() enable_dtrace=yes - if test "$rb_cv_prog_dtrace_g" = 'yes'; then - RUBY_DTRACE_BSD_BROKEN([enable_dtrace=no], [enable_dtrace=yes]) - else - AS_CASE(["$target_os"], - [freebsd*], [enable_dtrace=no] - ) - fi + RUBY_DTRACE_BSD_BROKEN([enable_dtrace=no], [enable_dtrace=yes]) else enable_dtrace=no fi Index: ChangeLog =================================================================== --- ChangeLog (revision 37741) +++ ChangeLog (revision 37742) @@ -1,3 +1,20 @@ +Tue Nov 20 11:14:33 2012 NARUSE, Yui <naruse@r...> + + * configure.in (--enable-dtrace): always call RUBY_DTRACE_BSD_BROKEN + for portability. + As the note, FreeBSD 8 has DTrace as the optional + feature (it is enabled by the build option), but doesn't have USDT. + FreeBSD 9 has USDT but they are still optional. FreeBSD 10 will + enable them by default. + The variable $rb_cv_prog_dtrace_g is "yes" only on FreeBSD 9 with + optional DTrace or FreeBSD 10. If it is "no", you cannnot know + whether it doesn't need -G or DTrace is disabled. (by cheking + error code, you can know) + +Mon Nov 19 22:55:48 2012 Naohisa Goto <ngotogenome@g...> + + * configure.in (--enable-dtrace): change help message + Tue Nov 20 11:05:00 2012 Zachary Scott <zachary@z...> * lib/tracer.rb (Tracer.trace_func): printf to stdout -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/