diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 1998-10-20 08:08:33 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 1998-10-20 08:08:33 +0000 |
commit | f1994c67466226ad5ce4a4d81f1da5b2830797fa (patch) | |
tree | 1a69e739d37007416ee2d8970191c058660f4cfc /Configure | |
parent | b7c992bac013028e310d923e5f7f1b1559c12f23 (diff) | |
download | perl-f1994c67466226ad5ce4a4d81f1da5b2830797fa.tar.gz |
Mumble about _yields() only when threaded.
p4raw-id: //depot/cfgperl@2023
Diffstat (limited to 'Configure')
-rwxr-xr-x | Configure | 23 |
1 files changed, 16 insertions, 7 deletions
@@ -20,7 +20,7 @@ # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $ # -# Generated on Wed Oct 14 17:00:29 EET DST 1998 [metaconfig 3.0 PL70] +# Generated on Tue Oct 20 11:18:44 EET DST 1998 [metaconfig 3.0 PL70] # (with additional metaconfig patches by jhi@iki.fi) cat >/tmp/c1$$ <<EOF @@ -10636,7 +10636,7 @@ fi $rm -f foo* bar* -: see whether the various POSIXish _yields exist within given cccmd +: see whether the various POSIXish _yields exist $cat >try.c <<EOP #include <pthread.h> #include <stdio.h> @@ -10658,12 +10658,17 @@ EOP set try -DSCHED_YIELD if eval $compile; then val="$define" - echo 'sched_yield() found.' >&4 sched_yield='sched_yield()' else val="$undef" - echo 'sched_yield() NOT found.' >&4 fi +case "$usethreads" in +$define) + case "$val" in + $define) echo 'sched_yield() found.' >&4 ;; + *) echo 'sched_yield() NOT found.' >&4 ;; + esac +esac set d_sched_yield eval $setvar @@ -10685,9 +10690,13 @@ else val="$undef" fi fi -case "$val" in -$define) echo 'pthread_yield() found.' >&4 ;; -*) echo 'pthread_yield() NOT found.' >&4 ;; +case "$usethreads" in +$define) + case "$val" in + $define) echo 'pthread_yield() found.' >&4 ;; + *) echo 'pthread_yield() NOT found.' >&4 ;; + esac + ;; esac set d_pthread_yield eval $setvar |