From: Jarkko Hietaniemi Date: Thu, 3 Dec 1998 13:39:53 +0000 (+0000) Subject: Change#2441 aftermath. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ef4af2bec631b9236810b0b0f271e06119e370e6;p=p5sagit%2Fp5-mst-13.2.git Change#2441 aftermath. p4raw-id: //depot/cfgperl@2443 --- diff --git a/Configure b/Configure index bba0632..7070d4f 100755 --- a/Configure +++ b/Configure @@ -20,7 +20,7 @@ # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $ # -# Generated on Sun Nov 29 18:15:39 EET 1998 [metaconfig 3.0 PL70] +# Generated on Thu Dec 3 10:57:23 EET 1998 [metaconfig 3.0 PL70] # (with additional metaconfig patches by jhi@iki.fi) cat >/tmp/c1$$ <&2 - val="$undef" - set d_pthread_create_joinable + val="$undef" # Yes, undef. + set d_old_pthread_create_joinable eval $setvar - val=0 - set pthread_create_joinable + val="" + set old_pthread_create_joinable eval $setvar else set try -DJOINABLE=PTHREAD_CREATE_UNDETACHED if eval $compile; then echo "You seem to use PTHREAD_CREATE_UNDETACHED." >&2 val="$define" - set d_pthread_create_joinable + set d_old_pthread_create_joinable eval $setvar val=PTHREAD_CREATE_UNDETACHED - set pthread_create_joinable + set old_pthread_create_joinable eval $setvar else set try -DJOINABLE=__UNDETACHED if eval $compile; then echo "You seem to use __UNDETACHED." >&2 val="$define" - set d_pthread_create_joinable + set d_old_pthread_create_joinable eval $setvar val=__UNDETACHED - set pthread_create_joinable + set old_pthread_create_joinable eval $setvar else echo "Egads, nothing obvious found. Guessing that you use 0." >&2 val="$define" - set d_pthread_create_joinable + set d_old_pthread_create_joinable eval $setvar val=0 - set pthread_create_joinable + set old_pthread_create_joinable eval $setvar fi fi fi $rm -f try try.* else - d_pthread_create_joinable="$undef" - pthread_create_joinable=0 + d_old_pthread_create_joinable="$undef" + old_pthread_create_joinable="" fi +: see if pause exists +set pause d_pause +eval $inlibc + +: see if pipe exists +set pipe d_pipe +eval $inlibc + +: see if poll exists +set poll d_poll +eval $inlibc + : see whether the various POSIXish _yields exist $cat >try.c <config.h -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un- */ #$d_gethname HAS_GETHOSTNAME /**/ #$d_uname HAS_UNAME /**/ -#$d_phostname HAS_PHOSTNAME -#ifdef PHOSTNAME #$d_phostname PHOSTNAME "$aphostname" /* How to get the host name */ -#endif /* HAS_GETLOGIN: * This symbol, if defined, indicates that the getlogin routine is @@ -2395,17 +2392,15 @@ sed <config.h -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un- */ #define ARCHNAME "$archname" /**/ -/* PTHREAD_CREATE_JOINABLE: +/* OLD_PTHREAD_CREATE_JOINABLE: * This symbol, if defined, indicates how to create pthread - * in joinable (aka undetached) state. Not defined here if - * pthread.h already has defined PTHREAD_CREATE_JOINABLE. + * in joinable (aka undetached) state. NOTE: not defined + * if pthread.h already has defined PTHREAD_CREATE_JOINABLE + * (the new version of the constant). * If defined, possible values are PTHREAD_CREATE_UNDETACHED * and __UNDETACHED. */ -#$d_pthread_create_joinable HAS_PTHREAD_CREATE_JOINABLE -#ifdef HAS_PTHREAD_CREATE_JOINABLE -#$d_pthread_create_joinable PTHREAD_CREATE_JOINABLE $pthread_create_joinable /**/ -#endif +#$d_old_pthread_create_joinable OLD_PTHREAD_CREATE_JOINABLE $old_pthread_create_joinable /**/ /* HAS_PTHREAD_YIELD: * This symbol, if defined, indicates that the pthread_yield diff --git a/thread.h b/thread.h index 1455683..695f288 100644 --- a/thread.h +++ b/thread.h @@ -50,6 +50,14 @@ struct perl_thread *getTHR _((void)); # define PTHREAD_ATTR_SETDETACHSTATE(a,s) pthread_attr_setdetachstate(a,s) #endif +#ifndef PTHREAD_CREATE_JOINABLE +# ifdef OLD_PTHREAD_CREATE_JOINABLE +# define PTHREAD_CREATE_JOINABLE OLD_PTHREAD_CREATE_JOINABLE +# else +# define PTHREAD_CREATE_JOINABLE 0 /* Panic? No, guess. */ +# endif +#endif + #ifdef I_MACH_CTHREADS /* cthreads interface */