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

ruby-changes:29764

From: nobu <ko1@a...>
Date: Sun, 7 Jul 2013 11:01:40 +0900 (JST)
Subject: [ruby-changes:29764] nobu:r41816 (trunk): configure.in: check exit statuses

nobu	2013-07-07 11:01:27 +0900 (Sun, 07 Jul 2013)

  New Revision: 41816

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

  Log:
    configure.in: check exit statuses
    
    * configure.in (RUBY_DTRACE_POSTPROCESS): check exit statuses of
      commands.  [Bug #8606]

  Modified files:
    trunk/configure.in

Index: configure.in
===================================================================
--- configure.in	(revision 41815)
+++ configure.in	(revision 41816)
@@ -560,19 +560,21 @@ AC_DEFUN([RUBY_DTRACE_AVAILABLE], https://github.com/ruby/ruby/blob/trunk/configure.in#L560
 AC_DEFUN([RUBY_DTRACE_POSTPROCESS],
 [AC_CACHE_CHECK(whether $DTRACE needs post processing, rb_cv_prog_dtrace_g,
 [
- echo "provider conftest{ probe fire(); };" > conftest_provider.d
- dtrace -h -o conftest_provider.h -s conftest_provider.d >/dev/null 2>/dev/null
- cat >conftest.c <<_CONF
-   #include "conftest_provider.h"
-   int main(void){ CONFTEST_FIRE(); return 0; }
+  if {
+    echo "provider conftest{ probe fire(); };" > conftest_provider.d &&
+    dtrace -h -o conftest_provider.h -s conftest_provider.d >/dev/null 2>/dev/null &&
+    cat >conftest.c <<_CONF &&
+    @%:@include "conftest_provider.h"
+    int main(void){ CONFTEST_FIRE(); return 0; }
 _CONF
- $CC $CFLAGS -c -o conftest.o conftest.c
- if $DTRACE -G -s conftest_provider.d conftest.o 2>/dev/null; then
-   rb_cv_prog_dtrace_g=yes
- else
-   rb_cv_prog_dtrace_g=no
- fi
- rm -f conftest.[co] conftest_provider.[dho]
+    $CC $CFLAGS -c -o conftest.o conftest.c &&
+    $DTRACE -G -s conftest_provider.d conftest.o 2>/dev/null
+  }; then
+    rb_cv_prog_dtrace_g=yes
+  else
+    rb_cv_prog_dtrace_g=no
+  fi
+  rm -f conftest.[co] conftest_provider.[dho]
 ])
 ])
 

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

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