"Fossies" - the Fresh Open Source Software Archive

Member "ruby-2.7.4/tool/m4/ruby_cppoutfile.m4" (7 Jul 2021, 609 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_cppoutfile.m4": 2.7.3_vs_2.7.4.

    1 # -*- Autoconf -*-
    2 AC_DEFUN([RUBY_CPPOUTFILE],
    3 [AC_CACHE_CHECK(whether ${CPP} accepts -o, rb_cv_cppoutfile,
    4 [save_CPPFLAGS="$CPPFLAGS"
    5 CPPFLAGS='-o conftest-1.i'
    6 rb_cv_cppoutfile=no
    7 AC_PREPROC_IFELSE([AC_LANG_SOURCE([[test-for-cppout]])],
    8                   [grep test-for-cppout conftest-1.i > /dev/null && rb_cv_cppoutfile=yes])
    9 CPPFLAGS="$save_CPPFLAGS"
   10 rm -f conftest*])
   11 AS_IF([test "$rb_cv_cppoutfile" = yes], [
   12   CPPOUTFILE='-o conftest.i'
   13 ], [test "$rb_cv_cppoutfile" = no], [
   14   CPPOUTFILE='> conftest.i'
   15 ], [test -n "$rb_cv_cppoutfile"], [
   16   CPPOUTFILE="$rb_cv_cppoutfile"
   17 ])
   18 AC_SUBST(CPPOUTFILE)])dnl