From: Jarkko Hietaniemi Date: Tue, 23 Apr 2002 02:35:52 +0000 (+0000) Subject: Use UV (not long) for BYTEORDER. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=244120070b43c8b75f213eed19655d6f4e6e2513;p=p5sagit%2Fp5-mst-13.2.git Use UV (not long) for BYTEORDER. p4raw-id: //depot/perl@16099 --- diff --git a/Configure b/Configure index 7225e61..88492fd 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 Wed Apr 17 17:49:13 EET DST 2002 [metaconfig 3.0 PL70] +# Generated on Tue Apr 23 06:12:13 EET DST 2002 [metaconfig 3.0 PL70] # (with additional metaconfig patches by perlbug@perl.org) cat >c1$$ <try.c <<'EOCP' + $cat >try.c < +#include +typedef $uvtype UV; int main() { int i; union { - unsigned long l; - char c[sizeof(long)]; + UV l; + char c[$uvsize]; } u; - if (sizeof(long) > 4) + if ($uvsize > 4) u.l = (0x08070605L << 32) | 0x04030201L; else u.l = 0x04030201L; - for (i = 0; i < sizeof(long); i++) + for (i = 0; i < $uvsize; i++) printf("%c", u.c[i]+'0'); printf("\n"); exit(0); @@ -16194,7 +16196,7 @@ EOM fi case "$xxx_prompt" in y) - rp="What is the order of bytes in a long?" + rp="What is the order of bytes in $uvtype?" . ./myread byteorder="$ans" ;; diff --git a/Porting/Glossary b/Porting/Glossary index ade0295..80f05ed 100644 --- a/Porting/Glossary +++ b/Porting/Glossary @@ -2,7 +2,7 @@ This file contains a description of all the shell variables whose value is determined by the Configure script. Variables intended for use in C programs (e.g. I_UNISTD) are already described in config_h.SH. [`configpm' generates pod documentation for Config.pm from this file--please try to keep -the formatting regular and verify that its output looks as you intend.] +the formatting regular.] _a (Unix.U): This variable defines the extension used for ordinary library files. @@ -11,9 +11,9 @@ _a (Unix.U): _exe (Unix.U): This variable defines the extension used for executable files. - DJGPP, Cygwin and OS/2 use '.exe'. Stratus VOS uses '.pm'. On - operating systems which do not require a specific extension for - executable files, this variable is empty. + DJGPP, Cygwin and OS/2 use '.exe'. Stratus VOS uses '.pm'. + On operating systems which do not require a specific extension + for executable files, this variable is empty. _o (Unix.U): This variable defines the extension used for object files. @@ -160,10 +160,10 @@ byacc (Loc.U): the value is reset to a plain "byacc" and is not useful. byteorder (byteorder.U): - This variable holds the byte order. In the following, larger digits - indicate more significance. The variable byteorder is either 4321 - on a big-endian machine, or 1234 on a little-endian, or 87654321 - on a Cray ... or 3412 with weird order ! + This variable holds the byte order in a UV. In the following, + larger digits indicate more significance. The variable byteorder + is either 4321 on a big-endian machine, or 1234 on a little-endian, + or 87654321 on a Cray ... or 3412 with weird order ! c (n.U): This variable contains the \c string if that is what causes the echo @@ -3189,10 +3189,6 @@ make (Loc.U): full pathname (if any) of the make program. After Configure runs, the value is reset to a plain "make" and is not useful. - Both the directory and the command name can vary from system - to system; while most systems call the command 'make', other - values include 'gmake' and 'gnumake'. - make_set_make (make.U): Some versions of 'make' set the variable MAKE. Others do not. This variable contains the string to be included in Makefile.SH @@ -3483,11 +3479,6 @@ perl5 (perl5.U): installed perl5.005 or later suitable for running the script to determine inc_version_list. -perl5 (perl5.U): - This variable contains the full path (if any) to a previously - installed perl5.005 or later suitable for running the script - to determine inc_version_list. - perl (Loc.U): This variable is defined but not used by Configure. The value is a plain '' and is not useful. @@ -4450,6 +4441,10 @@ xs_apiversion (xs_apiversion.U): though in principle we could go snooping around in old Config.pm files. +yacc (yacc.U): + This variable holds the name of the compiler compiler we + want to use in the Makefile. It can be yacc, byacc, or bison -y. + yaccflags (yacc.U): This variable contains any additional yacc flags desired by the user. It is up to the Makefile to use this. diff --git a/Porting/config.sh b/Porting/config.sh index 42bcf44..778b427 100644 --- a/Porting/config.sh +++ b/Porting/config.sh @@ -8,7 +8,7 @@ # Package name : perl5 # Source directory : . -# Configuration time: Mon Apr 8 20:15:42 EET DST 2002 +# Configuration time: Tue Apr 23 06:32:48 EET DST 2002 # Configured by : jhi # Target system : osf1 alpha.hut.fi v4.0 878 alpha @@ -64,7 +64,7 @@ ccsymbols='__alpha=1 __LANGUAGE_C__=1 __osf__=1 __unix__=1 _LONGLONG=1 _SYSTYPE_ ccversion='V5.6-082' cf_by='jhi' cf_email='yourname@yourhost.yourplace.com' -cf_time='Mon Apr 8 20:15:42 EET DST 2002' +cf_time='Tue Apr 23 06:32:48 EET DST 2002' charsize='1' chgrp='' chmod='chmod' @@ -495,7 +495,7 @@ dlsrc='dl_dlopen.xs' doublesize='8' drand01='drand48()' drand48_r_proto='0' -dynamic_ext='B ByteLoader Cwd DB_File Data/Dumper Devel/DProf Devel/PPPort Devel/Peek Digest/MD5 Encode Fcntl File/Glob Filter/Util/Call I18N/Langinfo IO IPC/SysV List/Util MIME/Base64 NDBM_File ODBM_File Opcode POSIX PerlIO/Scalar PerlIO/Via SDBM_File Socket Storable Sys/Hostname Sys/Syslog Time/HiRes Unicode/Normalize XS/Typemap attrs re' +dynamic_ext='B ByteLoader Cwd DB_File Data/Dumper Devel/DProf Devel/PPPort Devel/Peek Digest/MD5 Encode Fcntl File/Glob Filter/Util/Call I18N/Langinfo IO IPC/SysV List/Util MIME/Base64 NDBM_File ODBM_File Opcode POSIX PerlIO/Scalar PerlIO/Via PerlIO/encoding SDBM_File Socket Storable Sys/Hostname Sys/Syslog Time/HiRes Unicode/Normalize XS/Typemap attrs re threads threads/shared' eagain='EAGAIN' ebcdic='undef' echo='echo' @@ -510,7 +510,7 @@ endservent_r_proto='0' eunicefix=':' exe_ext='' expr='expr' -extensions='B ByteLoader Cwd DB_File Data/Dumper Devel/DProf Devel/PPPort Devel/Peek Digest/MD5 Encode Fcntl File/Glob Filter/Util/Call I18N/Langinfo IO IPC/SysV List/Util MIME/Base64 NDBM_File ODBM_File Opcode POSIX PerlIO/Scalar PerlIO/Via SDBM_File Socket Storable Sys/Hostname Sys/Syslog Time/HiRes Unicode/Normalize XS/Typemap attrs re Errno' +extensions='B ByteLoader Cwd DB_File Data/Dumper Devel/DProf Devel/PPPort Devel/Peek Digest/MD5 Encode Fcntl File/Glob Filter/Util/Call I18N/Langinfo IO IPC/SysV List/Util MIME/Base64 NDBM_File ODBM_File Opcode POSIX PerlIO/Scalar PerlIO/Via PerlIO/encoding SDBM_File Socket Storable Sys/Hostname Sys/Syslog Time/HiRes Unicode/Normalize XS/Typemap attrs re threads threads/shared Errno' extras='' fflushNULL='define' fflushall='undef' @@ -677,7 +677,7 @@ issymlink='test -h' ivdformat='"ld"' ivsize='8' ivtype='long' -known_extensions='B ByteLoader Cwd DB_File Data/Dumper Devel/DProf Devel/PPPort Devel/Peek Digest/MD5 Encode Fcntl File/Glob Filter/Util/Call GDBM_File I18N/Langinfo IO IPC/SysV List/Util MIME/Base64 NDBM_File ODBM_File Opcode POSIX PerlIO/Scalar PerlIO/Via SDBM_File Socket Storable Sys/Hostname Sys/Syslog Thread Time/HiRes Unicode/Normalize XS/Typemap attrs re threads threads/shared' +known_extensions='B ByteLoader Cwd DB_File Data/Dumper Devel/DProf Devel/PPPort Devel/Peek Digest/MD5 Encode Fcntl File/Glob Filter/Util/Call GDBM_File I18N/Langinfo IO IPC/SysV List/Util MIME/Base64 NDBM_File ODBM_File Opcode POSIX PerlIO/Scalar PerlIO/Via PerlIO/encoding SDBM_File Socket Storable Sys/Hostname Sys/Syslog Thread Time/HiRes Unicode/Normalize XS/Typemap attrs re threads threads/shared' ksh='' ld='ld' lddlflags='-shared -expect_unresolved "*" -msym -std -s' @@ -771,7 +771,7 @@ patchlevel='7' path_sep=':' perl5='perl' perl='' -perl_patchlevel='15771' +perl_patchlevel='16080' perladmin='yourname@yourhost.yourplace.com' perllibs='-lm -lutil' perlpath='/opt/perl/bin/perl5.7.3' @@ -955,7 +955,7 @@ vendorlibexp='' vendorprefix='' vendorprefixexp='' version='5.7.3' -version_patchlevel_string='version 7 subversion 3 patch 15771' +version_patchlevel_string='version 7 subversion 3 patch 16080' versiononly='define' vi='' voidflags='15' @@ -985,7 +985,7 @@ PERL_SUBVERSION=3 PERL_API_REVISION=5 PERL_API_VERSION=5 PERL_API_SUBVERSION=0 -PERL_PATCHLEVEL=15771 +PERL_PATCHLEVEL=16080 PERL_CONFIG_SH=true # Variables propagated from previous config.sh file. pp_sys_cflags='ccflags="$ccflags -DNO_EFF_ONLY_OK"' diff --git a/Porting/config_H b/Porting/config_H index c26f80d..8a709c3 100644 --- a/Porting/config_H +++ b/Porting/config_H @@ -17,7 +17,7 @@ /* * Package name : perl5 * Source directory : . - * Configuration time: Mon Apr 8 20:15:42 EET DST 2002 + * Configuration time: Tue Apr 23 06:32:48 EET DST 2002 * Configured by : jhi * Target system : osf1 alpha.hut.fi v4.0 878 alpha */ @@ -1028,7 +1028,7 @@ /* BYTEORDER: * This symbol holds the hexadecimal constant defined in byteorder, - * i.e. 0x1234 or 0x4321, etc... + * in a UV, i.e. 0x1234 or 0x4321 or 0x12345678, etc... * If the compiler supports cross-compiling or multiple-architecture * binaries (eg. on NeXT systems), use compiler-defined macros to * determine the byte order. diff --git a/config_h.SH b/config_h.SH index 847d99f..508f8cd 100644 --- a/config_h.SH +++ b/config_h.SH @@ -1048,7 +1048,7 @@ sed <$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un /* BYTEORDER: * This symbol holds the hexadecimal constant defined in byteorder, - * i.e. 0x1234 or 0x4321, etc... + * in a UV, i.e. 0x1234 or 0x4321 or 0x12345678, etc... * If the compiler supports cross-compiling or multiple-architecture * binaries (eg. on NeXT systems), use compiler-defined macros to * determine the byte order.