From: Jarkko Hietaniemi Date: Wed, 13 Jun 2001 17:14:17 +0000 (+0000) Subject: Add Configure directive -Dusereentrant for Artur's ithreads work, X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9514c62b63b7afca8bfb22c2e26cd3413f1fa007;p=p5sagit%2Fp5-mst-13.2.git Add Configure directive -Dusereentrant for Artur's ithreads work, extremely experimental, not even prompted for. p4raw-id: //depot/perl@10569 --- diff --git a/Configure b/Configure index 075963f..62b7685 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 Tue Jun 12 02:31:11 EET DST 2001 [metaconfig 3.0 PL70] +# Generated on Wed Jun 13 21:10:05 EET DST 2001 [metaconfig 3.0 PL70] # (with additional metaconfig patches by perlbug@perl.org) cat >c1$$ <$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un * This symbol, if defined, indicates that Perl should * be built to use the old draft POSIX threads API. */ +/* USE_REENTRANT_API: + * This symbol, if defined, indicates that Perl should + * try to use the various _r versions of library functions. + * This is extremely experimental. + */ #$use5005threads USE_5005THREADS /**/ #$useithreads USE_ITHREADS /**/ #if defined(USE_5005THREADS) && !defined(USE_ITHREADS) #define USE_THREADS /* until src is revised*/ #endif #$d_oldpthreads OLD_PTHREADS_API /**/ +#$usereentrant USE_REENTRANT_API /**/ /* PERL_VENDORARCH: * If defined, this symbol contains the name of a private library. diff --git a/configure.com b/configure.com index 7b02485..1d09675 100644 --- a/configure.com +++ b/configure.com @@ -5573,6 +5573,7 @@ $ WC "usemultiplicity='" + usemultiplicity + "'" $ WC "usemymalloc='" + usemymalloc + "'" $ WC "useperlio='" + useperlio + "'" $ WC "useposix='false'" +$ WC "usereentrant='undef'" $ WC "usesocks='undef'" $ WC "usethreads='" + usethreads + "'" $ WC "usevfork='true'" diff --git a/epoc/config.sh b/epoc/config.sh index e9a5cd6..0e5549e 100644 --- a/epoc/config.sh +++ b/epoc/config.sh @@ -735,6 +735,7 @@ usenm='' useopcode='' useperlio='undef' useposix='' +usereentrant='undef' usesfio='' useshrplib='' usesocks='undef' diff --git a/perl.h b/perl.h index 457838f..ba0c5c7 100644 --- a/perl.h +++ b/perl.h @@ -3809,6 +3809,8 @@ extern void moncontrol(int); HAS_STRUCT_MSGHDR HAS_STRUCT_CMSGHDR + USE_REENTRANT_API + so that Configure picks them up. */ #endif /* Include guard */ diff --git a/uconfig.h b/uconfig.h index 7084a28..08799f2 100644 --- a/uconfig.h +++ b/uconfig.h @@ -3243,12 +3243,18 @@ * This symbol, if defined, indicates that Perl should * be built to use the old draft POSIX threads API. */ +/* USE_REENTRANT_API: + * This symbol, if defined, indicates that Perl should + * try to use the various _r versions of library functions. + * This is extremely experimental. + */ /*#define USE_5005THREADS / **/ /*#define USE_ITHREADS / **/ #if defined(USE_5005THREADS) && !defined(USE_ITHREADS) #define USE_THREADS /* until src is revised*/ #endif /*#define OLD_PTHREADS_API / **/ +/*#define USE_REENTRANT_API / **/ /* PERL_VENDORARCH: * If defined, this symbol contains the name of a private library. diff --git a/uconfig.sh b/uconfig.sh index 5fdadea..5ffccae 100755 --- a/uconfig.sh +++ b/uconfig.sh @@ -571,6 +571,7 @@ usenm='false' useopcode='true' useperlio='undef' useposix='true' +usereentrant='undef' usesfio='false' useshrplib='false' usesocks='undef' diff --git a/vos/config.alpha.def b/vos/config.alpha.def index 6b4b5a9..0fb92e3 100644 --- a/vos/config.alpha.def +++ b/vos/config.alpha.def @@ -510,6 +510,7 @@ $uselongdouble='define' $usemorebits='undef' $usemultiplicity='undef' $useperlio='undef' +$usereentrant='undef' $usesocks='undef' $uvoformat='"o"' $uvsize='4' diff --git a/vos/config.ga.def b/vos/config.ga.def index cfede44..ffcd3cf 100644 --- a/vos/config.ga.def +++ b/vos/config.ga.def @@ -510,6 +510,7 @@ $uselongdouble='define' $usemorebits='undef' $usemultiplicity='undef' $useperlio='undef' +$usereentrant='undef' $usesocks='undef' $uvoformat='"o"' $uvsize='4' diff --git a/win32/config.bc b/win32/config.bc index ee160fd..e1eeca8 100644 --- a/win32/config.bc +++ b/win32/config.bc @@ -794,6 +794,7 @@ usenm='false' useopcode='true' useperlio='~USE_PERLIO~' useposix='true' +usereentrant='undef' usesfio='false' useshrplib='yes' usesocks='undef' diff --git a/win32/config.gc b/win32/config.gc index 8adbe23..7085cd2 100644 --- a/win32/config.gc +++ b/win32/config.gc @@ -794,6 +794,7 @@ usenm='false' useopcode='true' useperlio='~USE_PERLIO~' useposix='true' +usereentrant='undef' usesfio='false' useshrplib='yes' usesocks='undef' diff --git a/win32/config.vc b/win32/config.vc index 5a7b20d..c01ce0c 100644 --- a/win32/config.vc +++ b/win32/config.vc @@ -794,6 +794,7 @@ usenm='false' useopcode='true' useperlio='~USE_PERLIO~' useposix='true' +usereentrant='undef' usesfio='false' useshrplib='yes' usesocks='undef'