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

ruby-changes:36805

From: nobu <ko1@a...>
Date: Thu, 18 Dec 2014 17:45:38 +0900 (JST)
Subject: [ruby-changes:36805] nobu:r48886 (trunk): configure.in: fix fox BusyBox

nobu	2014-12-18 17:45:28 +0900 (Thu, 18 Dec 2014)

  New Revision: 48886

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

  Log:
    configure.in: fix fox BusyBox
    
    * configure.in (rb_cv_binary_elf): get rid of -e option of cat
      which is not available on BusyBox, use tr instead.
      [ruby-core:64824] [Bug #10210]

  Modified files:
    trunk/ChangeLog
    trunk/configure.in
Index: configure.in
===================================================================
--- configure.in	(revision 48885)
+++ configure.in	(revision 48886)
@@ -2812,8 +2812,8 @@ AC_ARG_WITH(dln-a-out, https://github.com/ruby/ruby/blob/trunk/configure.in#L2812
 
 AC_CACHE_CHECK(whether ELF binaries are produced, rb_cv_binary_elf,
 [AC_TRY_LINK([],[], [
-AS_CASE(["`head -1 conftest$EXEEXT | cat -e`"],
-['^?ELF'*], [rb_cv_binary_elf=yes], [rb_cv_binary_elf=no])],
+AS_CASE(["`head -1 conftest$EXEEXT | tr -dc '\177ELF' | tr '\177' .`"],
+[.ELF*], [rb_cv_binary_elf=yes], [rb_cv_binary_elf=no])],
 rb_cv_binary_elf=no)])
 
 if test "$rb_cv_binary_elf" = yes; then
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 48885)
+++ ChangeLog	(revision 48886)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Dec 18 17:45:26 2014  Nobuyoshi Nakada  <nobu@r...>
+
+	* configure.in (rb_cv_binary_elf): get rid of -e option of cat
+	  which is not available on BusyBox, use tr instead.
+	  [ruby-core:64824] [Bug #10210]
+
 Thu Dec 18 14:25:17 2014  NAKAMURA Usaku  <usa@r...>
 
 	* signal.c (ruby_signal): since SIGKILL is not supported by MSVCRT,

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

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