Commit | Line | Data |
---|---|---|
70674189 JH |
1 | ?RCS: $Id$ |
2 | ?RCS: | |
3 | ?RCS: Copyright (c) 1999 Jarkko Hietaniemi | |
4 | ?RCS: | |
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. | |
7 | ?RCS: | |
313cb6b3 | 8 | ?MAKE:uselargefiles: Myread Oldconfig Setvar |
70674189 JH |
9 | ?MAKE: -pick add $@ %< |
10 | ?Y:TOP | |
313cb6b3 | 11 | ?S:uselargefiles: |
70674189 JH |
12 | ?S: This variable conditionally defines the USE_LARGE_FILES symbol, |
13 | ?S: and indicates that large file interfaces should be used when | |
bbe95cfb | 14 | ?S: available. The use64bits symbol will also be turned on if necessary. |
70674189 JH |
15 | ?S:. |
16 | ?C:USE_LARGE_FILES: | |
17 | ?C: This symbol, if defined, indicates that large file support | |
18 | ?C: should be used when available. The USE_64_BITS symbol will | |
bbe95cfb | 19 | ?C: also be turned on if necessary. |
70674189 | 20 | ?C:. |
a38738d1 JH |
21 | ?H:?%<:#ifndef USE_LARGE_FILES |
22 | ?H:?%<:#$uselargefiles USE_LARGE_FILES /**/ | |
23 | ?H:?%<:#endif | |
70674189 | 24 | ?H:. |
313cb6b3 | 25 | ?LINT:set uselargefiles |
70674189 JH |
26 | ?LINT:extern use64bits |
27 | ?LINT:change use64bits | |
28 | ||
bbe95cfb JH |
29 | cat <<EOM |
30 | ||
31 | Perl can be built to understand large files (files larger than 2 gigabytes) | |
313cb6b3 | 32 | on some systems. To do so, Configure must be run with -Duselargefiles. |
bbe95cfb JH |
33 | |
34 | If this doesn't make any sense to you, just accept the default. | |
35 | EOM | |
313cb6b3 | 36 | case "$uselargefiles" in |
bbe95cfb JH |
37 | "$define"|true|[yY]*) dflt='y' ;; |
38 | *) dflt='n' ;; | |
39 | esac | |
40 | rp='Try to understand large files?' | |
41 | . ./myread | |
42 | case "$ans" in | |
43 | y|Y) val="$define" ;; | |
44 | *) val="$undef" ;; | |
45 | esac | |
313cb6b3 | 46 | set uselargefiles |
bbe95cfb | 47 | eval $setvar |
313cb6b3 | 48 | case "$uselargefiles" in |
bbe95cfb | 49 | "$define") use64bits="$define" ;; |
70674189 JH |
50 | esac |
51 |