3 ?RCS: Copyright (c) 1999 Jarkko Hietaniemi
5 ?RCS: You may distribute under the terms of either the GNU General Public
6 ?RCS: License or the Artistic License, as specified in the README file.
8 ?MAKE:uselargefiles: Myread Oldconfig Setvar test lseeksize fpossize \
9 fpostype Compile echo n c cat lseektype rm
10 ?MAKE: -pick add $@ %<
13 ?S: This variable conditionally defines the USE_LARGE_FILES symbol,
14 ?S: and indicates that large file interfaces should be used when
15 ?S: available. The use64bits symbol will also be turned on if necessary.
18 ?C: This symbol, if defined, indicates that large file support
19 ?C: should be used when available. The USE_64_BITS symbol will
20 ?C: also be turned on if necessary.
22 ?H:?%<:#ifndef USE_LARGE_FILES
23 ?H:?%<:#$uselargefiles USE_LARGE_FILES /**/
28 ?LINT:set uselargefiles
29 ?LINT:extern use64bits
30 ?LINT:change use64bits
31 ?LINT:change lseeksize
34 case "$lseeksize:$fpossize" in
37 You can have files larger than 2 gigabytes.
42 Perl can be built to understand large files (files larger than 2 gigabytes)
43 on some systems. To do so, Configure must be run with -Duselargefiles.
45 If this doesn't make any sense to you, just accept the default 'y'.
47 case "$uselargefiles" in
48 "$undef"|false|[nN]*) dflt='n' ;;
51 rp='Try to understand large files, if available?'
61 case "$uselargefiles" in
63 : Look for a hint-file generated 'call-back-unit'. If the
64 : user has specified that a large files perl is to be built,
65 : we may need to set or change some other defaults.
66 if $test -f uselfs.cbu; then
67 echo "Your platform has some specific hints for large file builds, using them..."
70 $echo $n "Rechecking to see how big your file offsets are...$c" >&4
72 #include <sys/types.h>
76 printf("%d\n", (int)sizeof($lseektype));
81 if eval $compile_ok; then
83 $echo " $lseeksize bytes." >&4
87 echo "(I can't seem to compile the test program. Guessing...)"
88 rp="What is the size of your file offsets (in bytes)?"
93 *_t) zzz="$fpostype" ;;
96 $echo $n "Rechecking the size of $zzz...$c" >&4
98 #include <sys/types.h>
101 printf("%d\n", (int)sizeof($fpostype));
106 if eval $compile_ok; then
111 echo "(I can't execute the test program--guessing $fpossize.)" >&4
114 echo " $fpossize bytes."
120 echo "(I can't compile the test program. Guessing...)" >&4
121 rp="What is the size of your file positions (in bytes)?"