"Fossies" - the Fresh Open Source Software Archive

Member "ruby-2.7.4/tool/m4/ruby_dtrace_postprocess.m4" (7 Jul 2021, 866 Bytes) of package /linux/misc/ruby-2.7.4.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "ruby_dtrace_postprocess.m4": 2.7.3_vs_2.7.4.

    1 # -*- Autoconf -*-
    2 AC_DEFUN([RUBY_DTRACE_POSTPROCESS],
    3 [AC_CACHE_CHECK(whether $DTRACE needs post processing, rb_cv_prog_dtrace_g,
    4 [
    5   rb_cv_prog_dtrace_g=no
    6   AS_IF([{
    7     cat >conftest_provider.d <<_PROBES &&
    8     provider conftest {
    9       probe fire();
   10     };
   11 _PROBES
   12     $DTRACE ${DTRACE_OPT} -h -o conftest_provider.h -s conftest_provider.d >/dev/null 2>/dev/null &&
   13     :
   14   }], [
   15     AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include "conftest_provider.h"]], [[CONFTEST_FIRE();]])],[
   16 	AS_IF([{
   17 	    cp -p conftest.${ac_objext} conftest.${ac_objext}.save &&
   18 	    $DTRACE ${DTRACE_OPT} -G -s conftest_provider.d conftest.${ac_objext} 2>/dev/null &&
   19 	    :
   20 	}], [
   21 	    AS_IF([cmp -s conftest.o conftest.${ac_objext}.save], [
   22 		rb_cv_prog_dtrace_g=yes
   23 	    ], [
   24 		rb_cv_prog_dtrace_g=rebuild
   25 	    ])
   26 	])])
   27   ])
   28   rm -f conftest.[co] conftest_provider.[dho]
   29 ])
   30 ])dnl