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.
9 ccflags_uselargefiles \
10 ldflags_uselargefiles \
11 libswanted_uselargefiles: \
12 Myread Oldconfig Setvar test lseeksize fpossize \
13 fpostype Compile echo n c cat lseektype rm_try run \
14 use64bitint use64bitall i_stdlib
15 ?MAKE: -pick add $@ %<
18 ?S: This variable conditionally defines the USE_LARGE_FILES symbol,
19 ?S: and indicates that large file interfaces should be used when
22 ?S:ccflags_uselargefiles:
23 ?S: This variable contains the compiler flags needed by large file builds
24 ?S: and added to ccflags by hints files.
26 ?S:ldflags_uselargefiles:
27 ?S: This variable contains the loader flags needed by large file builds
28 ?S: and added to ldflags by hints files.
30 ?S:libswanted_uselargefiles:
31 ?S: This variable contains the libraries needed by large file builds
32 ?S: and added to ldflags by hints files. It is a space separated list
33 ?S: of the library names without the "lib" prefix or any suffix, just
37 ?C: This symbol, if defined, indicates that large file support
38 ?C: should be used when available.
40 ?H:?%<:#ifndef USE_LARGE_FILES
41 ?H:?%<:#$uselargefiles USE_LARGE_FILES /**/
44 ?INIT:ccflags_uselargefiles=''
45 ?INIT:ldflags_uselargefiles=''
46 ?INIT:libswanted_uselargefiles=''
48 ?F:!uselargefiles.cbu !try
49 ?LINT:change lseeksize
54 : Check for large file support
55 # Backward compatibility (uselfs is deprecated).
60 *** Configure -Duselfs is deprecated, using -Duselargefiles instead.
62 uselargefiles="$define"
66 case "$lseeksize:$fpossize" in
69 You can have files larger than 2 gigabytes.
72 *) case "$uselargefiles" in
73 "$undef"|false|[nN]*) dflt='n' ;;
78 Perl can be built to understand large files (files larger than 2 gigabytes)
79 on some systems. To do so, Configure can be run with -Duselargefiles.
81 If this doesn't make any sense to you, just accept the default '$dflt'.
83 rp='Try to understand large files, if available?'
93 : Look for a hint-file generated 'call-back-unit'. If the
94 : user has specified that a large files perl is to be built,
95 : we may need to set or change some other defaults.
96 if $test -f uselargefiles.cbu; then
97 echo "Your platform has some specific hints regarding large file builds, using them..."
100 case "$uselargefiles" in
102 if $test -f uselargefiles.cbu; then
104 echo "Rechecking to see how big your file offsets are..." >&4
106 #include <sys/types.h>
110 printf("%d\n", (int)sizeof($lseektype));
115 if eval $compile_ok; then
116 lseeksize=`$run ./try`
117 $echo "Your file offsets are now $lseeksize bytes long."
121 echo "(I can't seem to compile the test program. Guessing...)"
122 rp="What is the size of your file offsets (in bytes)?"
127 *_t) zzz="$fpostype" ;;
130 $echo $n "Rechecking the size of $zzz...$c" >&4
132 #include <sys/types.h>
139 printf("%d\n", (int)sizeof($fpostype));
144 if eval $compile_ok; then
149 echo "(I can't execute the test program--guessing $fpossize.)" >&4
152 echo " $fpossize bytes." >&4
158 echo "(I can't compile the test program. Guessing...)" >&4
159 rp="What is the size of your file positions (in bytes)?"