Commit | Line | Data |
---|---|---|
840deeaa JH |
1 | ?RCS: $Id$ |
2 | ?RCS: | |
3 | ?RCS: Copyright (c) 1998 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: | |
8 | ?MAKE:d_off64_t: \ | |
2cb64bf6 | 9 | Inlibc Setvar Compile rm_try cat lseeksize |
840deeaa JH |
10 | ?MAKE: -pick add $@ %< |
11 | ?S:d_off64_t: | |
12 | ?S: This symbol will be defined if the C compiler supports off64_t. | |
13 | ?S:. | |
14 | ?C:HAS_OFF64_T: | |
15 | ?C: This symbol will be defined if the C compiler supports off64_t. | |
16 | ?C:. | |
17 | ?H:#$d_off64_t HAS_OFF64_T /**/ | |
18 | ?H:. | |
19 | ?LINT:set d_off64_t | |
840deeaa JH |
20 | : check for off64_t |
21 | echo " " | |
22 | echo "Checking to see if you have off64_t..." >&4 | |
23 | $cat >try.c <<EOCP | |
24 | #include <sys/types.h> | |
25 | #include <unistd.h> | |
26 | int main() { off64_t x = 7; } | |
27 | EOCP | |
28 | set try | |
29 | if eval $compile; then | |
30 | val="$define" | |
31 | echo "You have off64_t." | |
32 | else | |
33 | val="$undef" | |
34 | echo "You do not have off64_t." | |
35 | case "$lseeksize" in | |
36 | 8) echo "(Your off_t is 64 bits, so you could use that.)" ;; | |
37 | esac | |
38 | fi | |
2cb64bf6 | 39 | $rm_try |
840deeaa JH |
40 | set d_off64_t |
41 | eval $setvar | |
42 |