This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
metaconfig: regen _r units.
[metaconfig.git] / U / threads / d_asctime_r.U
CommitLineData
569da30e 1?MAKE:d_asctime_r asctime_r_proto: Inlibc Protochk i_systypes i_time
46953654 2?MAKE: -pick add $@ %<
959f3c4c 3?S:d_asctime_r:
46953654
JH
4?S: This variable conditionally defines the HAS_ASCTIME_R symbol,
5?S: which indicates to the C program that the asctime_r()
6?S: routine is available.
959f3c4c 7?S:.
8e87a72a 8?S:asctime_r_proto:
46953654 9?S: This variable encodes the prototype of asctime_r.
8e87a72a 10?S:.
959f3c4c 11?C:HAS_ASCTIME_R:
46953654
JH
12?C: This symbol, if defined, indicates that the asctime_r routine
13?C: is available to asctime re-entrantly.
959f3c4c 14?C:.
8e87a72a 15?C:ASCTIME_R_PROTO:
46953654 16?C: This symbol encodes the prototype of asctime_r.
8e87a72a 17?C:.
46953654
JH
18?H:#$d_asctime_r HAS_ASCTIME_R /**/
19?H:#define ASCTIME_R_PROTO $asctime_r_proto /**/
959f3c4c 20?H:.
8e87a72a 21?T:try hdrs
959f3c4c 22?LINT:set d_asctime_r
46953654 23?LINT:set asctime_r_proto
959f3c4c
JH
24: see if asctime_r exists
25set asctime_r d_asctime_r
26eval $inlibc
8e87a72a
JH
27case "$d_asctime_r" in
28"$define")
569da30e 29 hdrs="$i_systypes sys/types.h $i_time time.h"
46953654
JH
30 case "$asctime_r_proto" in
31 '') try='extern char* asctime_r(const struct tm*, char*);'
32 ./protochk "$try" $hdrs && asctime_r_proto=B_SB;
33 ;;
34 esac
35 case "$asctime_r_proto" in
36 '') try='extern char* asctime_r(const struct tm*, char*, int);'
37 ./protochk "$try" $hdrs && asctime_r_proto=B_SBI;
38 ;;
39 esac
40 case "$asctime_r_proto" in
41 '') try='extern int asctime_r(const struct tm*, char*);'
42 ./protochk "$try" $hdrs && asctime_r_proto=I_SB;
43 ;;
44 esac
45 case "$asctime_r_proto" in
46 '') try='extern int asctime_r(const struct tm*, char*, int);'
47 ./protochk "$try" $hdrs && asctime_r_proto=I_SBI;
48 ;;
49 esac
50 case "$asctime_r_proto" in
51 '') d_asctime_r=undef ; echo "Disabling asctime_r, cannot find prototype." ;;
52 * ) asctime_r_proto="REENTRANT_$asctime_r_proto" ; echo "$try" ;;
53 esac
8e87a72a 54 ;;
8e87a72a 55esac
959f3c4c 56