mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b65dda51bd
commit
bd0931f7b9
2 changed files with 20 additions and 9 deletions
17
ChangeLog
17
ChangeLog
|
@ -1,3 +1,20 @@
|
|||
Tue Nov 20 11:14:33 2012 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* 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@gmail.com>
|
||||
|
||||
* configure.in (--enable-dtrace): change help message
|
||||
|
||||
Tue Nov 20 11:05:00 2012 Zachary Scott <zachary@zacharyscott.net>
|
||||
|
||||
* lib/tracer.rb (Tracer.trace_func): printf to stdout
|
||||
|
|
12
configure.in
12
configure.in
|
@ -2731,20 +2731,14 @@ fi
|
|||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue