[前][次][番号順一覧][スレッド一覧]

ruby-changes:17757

From: naruse <ko1@a...>
Date: Fri, 12 Nov 2010 16:54:59 +0900 (JST)
Subject: [ruby-changes:17757] Ruby:r29768 (trunk): * configure.in: support C level backtrace information on FreeBSD.

naruse	2010-11-12 16:54:27 +0900 (Fri, 12 Nov 2010)

  New Revision: 29768

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=29768

  Log:
    * 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/

  Modified files:
    trunk/ChangeLog
    trunk/configure.in

Index: configure.in
===================================================================
--- configure.in	(revision 29767)
+++ configure.in	(revision 29768)
@@ -1800,6 +1800,15 @@
     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,
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 29767)
+++ ChangeLog	(revision 29768)
@@ -1,3 +1,10 @@
+Fri Nov 12 16:35:31 2010  NARUSE, Yui  <naruse@r...>
+
+	* 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@r...>
 
 	* win32/setup.mak: use findstr.exe instead of find.exe, because all

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]