"Fossies" - the Fresh Open Source Software Archive

Member "gnuastro-0.8/bootstrapped/m4/yield.m4" (28 Dec 2018, 751 Bytes) of package /linux/privat/gnuastro-0.8.tar.lz:


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 last Fossies "Diffs" side-by-side code changes report for "yield.m4": 0.5_vs_0.6.

    1 # yield.m4 serial 2
    2 dnl Copyright (C) 2005-2018 Free Software Foundation, Inc.
    3 dnl This file is free software; the Free Software Foundation
    4 dnl gives unlimited permission to copy and/or distribute it,
    5 dnl with or without modifications, as long as this notice is preserved.
    6 
    7 AC_DEFUN([gl_YIELD],
    8 [
    9   AC_REQUIRE([gl_THREADLIB])
   10   dnl On some systems, sched_yield is in librt, rather than in libpthread.
   11   YIELD_LIB=
   12   if test $gl_threads_api = posix; then
   13     dnl Solaris has sched_yield in librt, not in libpthread or libc.
   14     AC_CHECK_LIB([rt], [sched_yield], [YIELD_LIB=-lrt],
   15       [dnl Solaris 2.5.1, 2.6 has sched_yield in libposix4, not librt.
   16        AC_CHECK_LIB([posix4], [sched_yield], [YIELD_LIB=-lposix4])])
   17   fi
   18   AC_SUBST([YIELD_LIB])
   19 ])