summaryrefslogtreecommitdiff
path: root/INSTALL
diff options
context:
space:
mode:
authorAndy Dougherty <doughera@lafayette.edu>1998-07-15 10:23:39 -0400
committerGurusamy Sarathy <gsar@cpan.org>1998-07-19 06:25:05 +0000
commit56cb0a1cdc8ec02cd8a47636454b897d7f8bb403 (patch)
treeebead2766b1a1781f57b8359a323914618954c7f /INSTALL
parent8202fd39354c88c225e4200fee9877f5a082eebe (diff)
downloadperl-56cb0a1cdc8ec02cd8a47636454b897d7f8bb403.tar.gz
Re: Configure s?rand support [PATCH 5.004_75] -- better patch
Message-Id: <Pine.SUN.3.96.980715135257.1310F-100000@newton.phys> p4raw-id: //depot/perl@1551
Diffstat (limited to 'INSTALL')
-rw-r--r--INSTALL18
1 files changed, 11 insertions, 7 deletions
diff --git a/INSTALL b/INSTALL
index aadf2c7c24..fe78b1b6b9 100644
--- a/INSTALL
+++ b/INSTALL
@@ -773,14 +773,18 @@ config.sh.
For example, you can replace the rand() and srand() functions in the
perl source by any other random number generator by a trick such as the
-following:
+following (this should all be on one line):
- sh Configure -Dccflags='-Drand=random -Dsrand=srandom'
+ sh Configure -Dccflags='-Dmy_rand=random -Dmy_srand=srandom' \
+ -Drandbits=31
-or by adding -Drand=random and -Dsrand=srandom to your ccflags
-at the appropriate Configure prompt. (Note: Although this worked for
-me, it might not work for you if your system's header files give
-different prototypes for rand() and random() or srand() and srandom().)
+or you can use the drand48 family of functions with
+
+ sh Configure -Dccflags='-Dmy_rand=lrand48 -Dmy_srand=srand48' \
+ -Drandbits=31
+
+or by adding the -D flags to your ccflags at the appropriate Configure
+prompt. (Read pp.c to see how this works.)
You should also run Configure interactively to verify that a hint file
doesn't inadvertently override your ccflags setting. (Hints files
@@ -1573,4 +1577,4 @@ the contact information to match your distribution.
=head1 LAST MODIFIED
-$Id: INSTALL,v 1.40 1998/07/06 14:49:02 doughera Released $
+$Id: INSTALL,v 1.42 1998/07/15 18:04:44 doughera Released $