This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Part 2 of a big cleanup action based on the upcoming dist-4.0
[metaconfig.git] / U / perl / d_fpos64_t.U
1 ?RCS: $Id$
2 ?RCS:
3 ?RCS: Copyright (c) 2000 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_fpos64_t: \
9         Inlibc Setvar Compile rm_try cat fpossize
10 ?MAKE:  -pick add $@ %<
11 ?S:d_fpos64_t:
12 ?S:     This symbol will be defined if the C compiler supports fpos64_t.
13 ?S:.
14 ?C:HAS_FPOS64_T:
15 ?C:     This symbol will be defined if the C compiler supports fpos64_t.
16 ?C:.
17 ?H:#$d_fpos64_t HAS_FPOS64_T            /**/
18 ?H:.
19 ?LINT:set d_fpos64_t
20
21 : check for fpos64_t
22 echo " "
23 echo "Checking to see if you have fpos64_t..." >&4
24 $cat >try.c <<EOCP
25 #include <stdio.h>
26 int main() { fpos64_t x = 7; }
27 EOCP
28 set try
29 if eval $compile; then
30         val="$define"
31         echo "You have fpos64_t."
32 else
33         val="$undef"
34         echo "You do not have fpos64_t."
35         case "$fpossize" in
36         8) echo "(Your fpos_t is 64 bits, so you could use that.)" ;;
37         esac
38 fi
39 $rm_try
40 set d_fpos64_t
41 eval $setvar
42