This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add the files from dist/meta to perl's repo
[metaconfig.git] / dist / U / d_tzmin.U
1 ?RCS: $Id: d_tzmin.U 1 2006-08-24 12:32:52Z rmanfredi $
2 ?RCS:
3 ?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
4 ?RCS: 
5 ?RCS: You may redistribute only under the terms of the Artistic Licence,
6 ?RCS: as specified in the README file that comes with the distribution.
7 ?RCS: You may reuse parts of this distribution only within the terms of
8 ?RCS: that same Artistic Licence; a copy of which may be found at the root
9 ?RCS: of the source tree for dist 4.0.
10 ?RCS:
11 ?RCS: $Log: d_tzmin.U,v $
12 ?RCS: Revision 3.0.1.1  1994/10/29  16:16:58  ram
13 ?RCS: patch36: call ./bsd explicitly instead of relying on PATH
14 ?RCS:
15 ?RCS: Revision 3.0  1993/08/18  12:07:49  ram
16 ?RCS: Baseline for dist 3.0 netwide release.
17 ?RCS:
18 ?MAKE:d_tzmin: contains cppstdin cppminus timeincl rm Setvar Guess
19 ?MAKE:  -pick add $@ %<
20 ?S:d_tzmin:
21 ?S:     This symbol conditionally defines TZ_MINUTESWEST if the system uses
22 ?S:     tz_minuteswest in time header instead of timezone.
23 ?S:.
24 ?C:TZ_MINUTESWEST:
25 ?C:     This symbol is defined if this system uses tz_minuteswest
26 ?C:     in time header instead of timezone.
27 ?C: If not defined, you may have to use struct timeb and ftime() rather
28 ?C:     than the new gettimeofday() system call.
29 ?C:.
30 ?H:#$d_tzmin TZ_MINUTESWEST             /**/
31 ?H:.
32 ?LINT:set d_tzmin
33 : see if tz_minuteswest is defined in time header
34 echo " "
35 val="$undef"
36 $cppstdin $cppminus < $timeincl > try 2>&1
37 if $contains 'tz_minuteswest' try >/dev/null 2>&1; then
38 echo "You have tz_minuteswest defined in $timeincl rather than timezone." >&4
39         val="$define"
40 elif $contains 'timezone' try >/dev/null 2>&1; then
41 echo "You have timezone defined in $timeincl rather than tz_minuteswest." >&4
42 else
43         echo "Your $timeincl file looks strange." >&4
44 fi
45 if ./bsd; then
46         case "$d_tzmin" in
47         "$undef") echo "(Maybe your system is an USG one after all?)";;
48         esac
49 fi
50 set d_tzmin
51 eval $setvar
52 $rm -f try
53