1 ?MAKE:d_localtime_r localtime_r_proto: Inlibc Protochk i_systypes i_unistd
4 ?S: This variable conditionally defines the HAS_LOCALTIME_R symbol,
5 ?S: which indicates to the C program that the localtime_r()
6 ?S: routine is available.
9 ?S: This variable encodes the prototype of localtime_r.
12 ?C: This symbol, if defined, indicates that the localtime_r routine
13 ?C: is available to localtime re-entrantly.
16 ?C: This symbol encodes the prototype of localtime_r.
18 ?H:#$d_localtime_r HAS_LOCALTIME_R /**/
19 ?H:#define LOCALTIME_R_PROTO $localtime_r_proto /**/
22 ?LINT:set d_localtime_r
23 ?LINT:set localtime_r_proto
24 : see if localtime_r exists
25 set localtime_r d_localtime_r
27 case "$d_localtime_r" in
29 hdrs="$i_systypes sys/types.h $i_unistd unistd.h"
30 case "$localtime_r_proto" in
31 '') try='extern struct tm* localtime_r(const time_t*, struct tm*);'
32 ./protochk "$try" $hdrs && localtime_r_proto=S_TS;
35 case "$localtime_r_proto" in
36 '') try='extern int localtime_r(const time_t*, struct tm*);'
37 ./protochk "$try" $hdrs && localtime_r_proto=I_TS;
40 case "$localtime_r_proto" in
41 '') d_localtime_r=undef ; echo "Disabling localtime_r, cannot find prototype." ;;
42 * ) localtime_r_proto="REENTRANT_$localtime_r_proto" ; echo "$try" ;;