aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-12 07:54:27 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-12 07:54:27 +0000
commit54ba50918e6ebb38ce36a7cfce7751855d86c947 (patch)
tree0f645f05e1bcc600d880b5fb692984187816616f
parent7b109f17728f4a02a3cc7f3dd7de8a40c296ba09 (diff)
downloadruby-54ba50918e6ebb38ce36a7cfce7751855d86c947.tar.gz
* configure.in: support C level backtrace information on FreeBSD.
When devel/libexecinfo is installed on FreeBSD, now ruby can show C level backtrace information. http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/libexecinfo/ git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog7
-rw-r--r--configure.in9
2 files changed, 16 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 5d0a4a0797..f99dce0fde 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Fri Nov 12 16:35:31 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * configure.in: support C level backtrace information on FreeBSD.
+ When devel/libexecinfo is installed on FreeBSD, now ruby
+ can show C level backtrace information.
+ http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/libexecinfo/
+
Fri Nov 12 09:58:30 2010 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/setup.mak: use findstr.exe instead of find.exe, because all
diff --git a/configure.in b/configure.in
index 23b12dfb17..af5274dbc5 100644
--- a/configure.in
+++ b/configure.in
@@ -1800,6 +1800,15 @@ main(int argc, char *argv[])
test x$rb_cv_fork_with_pthread = xyes || AC_DEFINE(CANNOT_FORK_WITH_PTHREAD)
fi
+AS_CASE(["$target_os"],
+[freebsd*], [
+ AC_CHECK_HEADERS([/usr/local/include/execinfo.h])
+ if test "x$ac_cv_header__usr_local_include_execinfo_h" = xyes; then :
+ RUBY_APPEND_OPTION(CPPFLAGS, -I/usr/local/include)
+ LDFLAGS="${LDFLAGS:+$LDFLAGS }-L/usr/local/lib"
+ DLDFLAGS="${DLDFLAGS:+$DLDFLAGS }-L/usr/local/lib"
+ AC_CHECK_LIB([execinfo], [backtrace])
+ fi])
AC_CHECK_FUNCS(backtrace)
AC_ARG_WITH(valgrind,