?RCS:
?RCS: Generated by the reentr.pl from the Perl 5.8 distribution.
?RCS:
-?MAKE:d_ctime_r ctime_r_proto: Inlibc Protochk i_systypes i_time
+?MAKE:d_ctime_r ctime_r_proto: Inlibc Protochk Hasproto i_systypes i_time
?MAKE: -pick add $@ %<
?S:d_ctime_r:
?S: This variable conditionally defines the HAS_CTIME_R symbol,
?H:#$d_ctime_r HAS_CTIME_R /**/
?H:#define CTIME_R_PROTO $ctime_r_proto /**/
?H:.
-?T:try hdrs
+?T:try hdrs d_ctime_r_proto
?LINT:set d_ctime_r
?LINT:set ctime_r_proto
: see if ctime_r exists
case "$d_ctime_r" in
"$define")
hdrs="$i_systypes sys/types.h define stdio.h $i_time time.h"
+ case "$d_ctime_r_proto" in
+ '') d_ctime_r_proto=define
+ set d_ctime_r_proto ctime_r $hdrs
+ eval $hasproto ;;
+ *) ;;
+ esac
+ case "$d_ctime_r_proto" in
+ define)
case "$ctime_r_proto" in
''|0) try='char* ctime_r(const time_t*, char*);'
./protochk "extern $try" $hdrs && ctime_r_proto=B_SB ;;
case "$ctime_r_proto" in
'') d_ctime_r=undef
ctime_r_proto=0
- echo "Disabling ctime_r, cannot determine prototype." ;;
+ echo "Disabling ctime_r, cannot determine prototype." >&4 ;;
* ) case "$ctime_r_proto" in
REENTRANT_PROTO*) ;;
*) ctime_r_proto="REENTRANT_PROTO_$ctime_r_proto" ;;
echo "Prototype: $try" ;;
esac
;;
+ *) echo "You have ctime_r but no prototype, not using it." >&4 ;;
+ esac
+ ;;
*) ctime_r_proto=0
;;
esac