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

ruby-changes:25618

From: nobu <ko1@a...>
Date: Fri, 16 Nov 2012 16:25:36 +0900 (JST)
Subject: [ruby-changes:25618] nobu:r37675 (trunk): configure.in: cross-compiling fix

nobu	2012-11-16 16:24:45 +0900 (Fri, 16 Nov 2012)

  New Revision: 37675

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

  Log:
    configure.in: cross-compiling fix
    
    * configure.in (DTRACE): ignore non-prefixed version if
      cross-compiling.

  Modified files:
    trunk/ChangeLog
    trunk/configure.in

Index: configure.in
===================================================================
--- configure.in	(revision 37674)
+++ configure.in	(revision 37675)
@@ -373,7 +373,10 @@
   AC_CHECK_TOOL(CC, gcc)
 fi
 
-AC_CHECK_TOOL(DTRACE, dtrace)
+AC_CHECK_PROG([DTRACE], [${ac_tool_prefix}dtrace], [${ac_tool_prefix}dtrace])
+if test "$cross_compiling:$ac_cv_prog_DTRACE" = no: -a -n "$ac_tool_prefix"; then
+    AC_CHECK_PROG([DTRACE], [dtrace], [dtrace])
+fi
 AS_CASE(["$target_os"],
 [freebsd*], [DTRACE=]
 )
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 37674)
+++ ChangeLog	(revision 37675)
@@ -1,5 +1,8 @@
-Fri Nov 16 15:42:36 2012  Nobuyoshi Nakada  <nobu@r...>
+Fri Nov 16 16:24:42 2012  Nobuyoshi Nakada  <nobu@r...>
 
+	* configure.in (DTRACE): ignore non-prefixed version if
+	  cross-compiling.
+
 	* Makefile.in, win32/Makefile.sub (probes.h): fix copying dmyprobes.h
 	  path when outplace-build.
 

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

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