зеркало из https://github.com/github/ruby.git
configure.in: check exit statuses
* configure.in (RUBY_DTRACE_POSTPROCESS): check exit statuses of commands. [Bug #8606] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
2b5f033cb5
Коммит
2114ad42da
26
configure.in
26
configure.in
|
@ -560,19 +560,21 @@ AC_DEFUN([RUBY_DTRACE_AVAILABLE],
|
|||
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]
|
||||
])
|
||||
])
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче